• Sources: primary
  • Summary: Ibrahim, who works on the Codex harness, says code mode gives the agent two tools, exec to run a JavaScript script and wait to check its progress. All built-in and MCP tools are deferred into a tools object, so the agent filters the list by description and calls tools as async functions, chaining results through variables in one call. Scripts run in a V8 sandbox with no file, network or console access, get a cell ID, and survive between turns so a started server keeps running.
  • Why it matters: Harness builders can cut inference round trips and context use by letting agents script tool calls instead of reading every intermediate result.