Claude Code introduces experimental Code Mode, letting Claude write scripts that chain tool calls

Anthropic has introduced Code Mode, an experimental way for Claude Code to use tools: Claude writes a script that chains several tool calls together, and it can answer while long commands are still running. It is off by default and opt-in.

AnthropicTool Updates
Official Source(opens in a new tab)· AI assisted

Anthropic's developer account, ClaudeDevs, introduced Code Mode for Claude Code at 21:18 UTC on November 17, 2026. It is a new, experimental way for Claude Code to work with tools.

What changes: According to the documentation, without Code Mode Claude requests tool calls such as Bash, Read or Edit one at a time and reads each result before deciding what to do next. With Code Mode, Claude writes a piece of JavaScript that makes the tool calls, and Claude Code runs that code in your session. One piece of code can run commands in parallel, feed one result into the next call, and return only the output Claude needs to read. Anthropic also says Claude can answer you while long commands are still running.

When to use it: The documentation suggests trying it on tasks with many related tool calls, such as a change repeated across many files, a search whose results need filtering before Claude reads them, or several independent commands that can run at the same time.

How to turn it on: Code Mode is off by default; opt in by setting CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1. Anthropic notes that it is experimental and may change or be removed in any release, and lists limitations to check before turning it on.