Developers

Claude Code adds an experimental Code Mode that runs tool calls from JavaScript

Anthropic has added an experimental Code Mode to Claude Code, in which Claude writes JavaScript that makes several tool calls in one step instead of asking for each Bash, Read or Edit call separately. It is off by default, needs v2.1.323 or later and the CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 variable, and works only in interactive terminal sessions with the current Opus, Sonnet, Haiku and Fable models, not through Bedrock, gateways or zero data retention organizations. Permission rules and PreToolUse hooks still apply to each call inside the script, auto mode has its classifier judge the script as a whole, and administrators can turn the feature off in managed settings.