daily brief · Nov 15, 2026
Claude Code Code Mode: Claude Writes JavaScript to Batch Its Tool Calls
Claude Code v2.1.323 adds Code Mode, an opt-in where Claude writes JavaScript to run many tool calls at once. How to try it, and the 37% myth.
Claude Code v2.1.323, released November 12, adds Code Mode, an experimental, off-by-default option. Instead of calling tools like Read, Bash and Edit one at a time, Claude writes a short JavaScript program that makes the calls, runs some in parallel, and hands back only what it needs. Turn it on by starting Claude Code with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1.
Coding agents are chatty: read a file, think, run a command, think again, and every round trip resends the conversation. Code Mode is like sending one shopping list instead of making ten trips to the store. By the weekend X was buzzing with a “37% fewer tokens” claim. Careful, though: that figure comes from Anthropic’s 2025 API post on programmatic tool calling, and the Code Mode docs give no savings number. Independent tests still found real savings. One wmedia.es run cut input tokens from about 150,000 to 95,000, though it took 37 seconds instead of 15.
The catches: it needs an interactive terminal session on Anthropic’s API (no Bedrock, Google Cloud, Foundry or gateways) with Opus 5.5, Sonnet 5.5, Haiku 5.5 or Fable 5.2. Remote Control, Claude in Chrome and computer use are off while it’s on.
Quick answers
Is Code Mode safe with my permission rules?
Each tool call still goes through your deny/ask rules and PreToolUse hooks. In auto mode the classifier reviews the code, not each call.
Can my company block it?
Yes. Set the variable to 0 in managed settings.
Claude Code Code ModeAnthropicClaude Code 2.1.323AI coding agentstool callingtoken savingsprogrammatic tool callingCLAUDE_CODE_EXPERIMENTAL_CODE_MODEOpus 5.5
More on: Anthropic and Claude · AI agents · AI coding · All Agents briefings