Claude Code stops calling tools one by one and bundles them in code: experimental 'Code Mode' arrives
First seen on X 40 hours ago@ClaudeDevs ♥ 2,96119 views
Anthropic has released Code Mode, an experimental Claude Code feature that changes how Claude uses tools. Instead of requesting one tool call, reading the result and deciding the next, Claude writes a piece of JavaScript that makes several tool calls in one step.
According to the Claude Code docs, one piece of code can run commands in parallel, feed one result into the next call and return only the part Claude needs to read. Anthropic suggests it for changes that repeat across many files, searches that need filtering, and independent commands that can run at once. Claude can also keep answering while long commands run. To try it, set `CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1` and start `claude`. The conversation shows the actual tool calls and diffs rather than the code; press `Ctrl+O` to see the code in the transcript viewer.
There are plenty of conditions. It requires Claude Code v2.1.323 or later, Opus 5.5, Sonnet 5.5, Haiku 5.5 or Fable 5.2, and an interactive terminal session. It does not work in the VS Code panel, the Desktop app, with `-p` or the Agent SDK, and it disables Remote Control, Claude in Chrome and computer use. Code that isn't backgrounded stops after ten minutes. Organizations on zero data retention or HIPAA configurations, and users going through Bedrock or Google Cloud, are excluded. As an experiment, it may change or disappear in any release.
The Claude developer account's announcement drew 3,100 likes. Replies ranged from "JS won" to "too much code sometimes" and "No, thank you." One asked whether it is essentially CodeAct, the 2024 paper on agents acting through executable code. Cloudflare shipped a similar approach under the same name last year, letting agents call MCP tools through code.
Comments 0
Select a sentence in the story (long-press on phones) to comment on it.
“Check out Code Mode, a new, experimental way for Claude Code to work with tools.”
