Anthropic adds Code Mode to Claude Code for JavaScript tool chains
It lets developers write JavaScript that chains multiple tool calls—like Bash, Read, or Edit—into a single program. This cuts round-trips in multi-step tasks but requires opt-in via the environment variable CLAUDECODEEXPERIMENTALCODEMODE=1 or a settings file.
Key points
- Code Mode chains JavaScript tool calls in Claude Code v2.1.323, reducing round-trips for developers
- Opt-in via `CLAUDECODEEXPERIMENTALCODEMODE=1` or settings file; supports Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.2
- Background code runs for 2 hours, but waiting code stops after 10 minutes; unavailable on Bedrock or IDEs
Code Mode runs in an interactive terminal session (native build only) and supports Claude Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.2. Background code can execute for up to 2 hours, but waiting code stops after 10 minutes. Anthropic notes no benchmark savings but cites an independent test showing 11.1k tokens of system-tool context with Code Mode versus 24.6k without. The feature is unavailable on Bedrock, Google Cloud, or IDEs like VS Code. Auto mode reviews code as a whole, not individual calls, while other modes prompt for permission per tool call.
Model pages: Claude Opus 5.5 → · Fable 5.2 →
The story so far
2 episodes →- Anthropic adds Code Mode to Claude Code for JavaScript tool chainsthis story
Anthropic Adds Code Mode to Claude Code: Claude Now Chains Tool Calls in JavaScript
MarkTechPost · 18 November 2026
Loading the full article…
This text was published by MarkTechPost and written by Michal Sutter. It is reproduced here with attribution so you can read it in full; the rights remain with the publisher. Read it at the source ↗
Coverage and discussion
3sourcesThe headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Agents & Tools
All →- A thought on why Docker Sandboxes might be the only choice for safely letting Claude Code 'run autonomously'. · 1 src
- Apple reportedly hires manager to build AI agent rivaling OpenAI, Meta, Anthropic · 2 src
- Sarvam AI ships 105B checkpoint for on-premises enterprise agents at $0.15 per million tokens · 1 src
- Anthropic adds Code and Projects tabs to Claude mobile app · 1 src
- Visa CLI adds card verification for AI agents and OUSD payouts · 1 src
Comments
via GitHub Discussions