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

Impact 7 MarkTechPost

Summary

  • Anthropic introduced Code Mode as an experimental feature in Claude Code v2.1.323, allowing Claude to write JavaScript that chains multiple tool calls in a single step.
  • The feature works locally in interactive terminal sessions using Anthropic API or Claude subscriptions, but is unavailable on cloud providers like Amazon Bedrock or Google Cloud.
  • Code Mode executes related tool calls—such as Bash, Read, and Edit—as a single program, helping reduce round-trips for multi-step engineering tasks.
  • Waiting code execution stops after 10 minutes, while background code can run for up to 2 hours during active chat sessions.
  • Developers can enable the experimental mode by setting the environment variable CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 in their shell or configuration settings.

Why it matters

Code Mode significantly changes how AI coding agents interact with development environments by batching multiple tool operations into single programmatic steps, reducing context overhead and round-trips for complex engineering workflows.

Who should care

manager 60