Anthropic Adds Code Mode to Claude Code: Claude Now Chains Tool

Anthropic Adds Code Mode to Claude Code: Claude Now Chains Tool Calls in JavaScript


Anthropic has introduced Code Mode to Claude Code as an experimental, opt-in feature. Claude Code Code Mode lets Claude write JavaScript that executes multiple tool calls in a single step. It shipped in Claude Code v2.1.323 last week. For developers, this changes how the agent spends round-trips on multi-step work.


TL;DR


  • Works with: Claude Opus 5.5, Sonnet 5.5, Haiku 5.5, and Fable 5.2.
  • Runs on: An interactive terminal session on the native build, v2.1.323 or later. Windows requires Git for Windows. Anthropic API or Claude subscription only.
  • Performance: Anthropic has not published a benchmark or token-saving figure for Code Mode.
  • Best case: Background code can run for up to 2 hours while you continue talking to Claude.
  • Limitations: Code that Claude waits on stops after 10 minutes. No support for Bedrock, Google Cloud, Foundry, -p, Agent SDK, VS Code, or Desktop.
  • Bottom line: The upside is that related tool calls run as a single program. The downside is narrow availability and coarser auto-mode review.

What Is Code Mode in Claude Code?


Code Mode is a new execution mode in which Claude generates JavaScript that orchestrates several tool calls in one pass, rather than issuing them one at a time. This reduces the number of round-trips the agent needs on multi-step tasks and shifts the coordination burden from prompt-level sequencing to code-level control flow.


Why It Matters for Developers


In conventional agentic workflows, chaining several tool calls often requires multiple model turnarounds, each adding latency and token overhead. Code Mode consolidates related calls into a single JavaScript program, which can make multi-step work more efficient and easier to reason about. It also aligns with the broader 2026 trend toward context engineering—structuring what the model sees and does—rather than relying solely on larger context windows.


Availability and Constraints


Code Mode is experimental and opt-in. It is available only in an interactive terminal session on the native build (v2.1.323 or later). Windows users need Git for Windows, and authentication is limited to the Anthropic API or a Claude subscription. Notably, it is not supported on Bedrock, Google Cloud, Foundry, -p, the Agent SDK, VS Code, or Desktop.


Runtime Behavior


Background code can run for up to two hours while you continue conversing with Claude. However, code that Claude actively waits on terminates after 10 minutes.


The Bottom Line


Code Mode turns related tool calls into a single program, which can streamline multi-step agentic work. The trade-off is narrow platform availability and coarser auto-mode review. Anthropic has not yet published benchmarks or token-saving figures, so teams evaluating the feature should test it against their own workloads.

via MarkTechPost

Related