Anthropic Adds Experimental Code Mode to Claude Code
Anthropic has added an experimental Code Mode to Claude Code. In this mode, the model writes JavaScript to drive its tools instead of requesting each Bash, Read, or Edit call separately. The feature first appeared in a release dated November 12, 2026, and has drawn more developer attention in the weeks since. BlockVision reported on it on December 5.
What Code Mode Does
In a normal Claude Code session, Claude asks for one tool call, reads the full result, and decides the next step. With Code Mode, Claude writes JavaScript that calls the tools, and Claude Code runs it in the session.
According to Anthropic’s documentation as described by outside coverage, the generated script can run commands in parallel, pass one result into the next call, and return only the output it needs. One summary of the feature says that a task needing ten tool calls normally costs ten round trips, with each full output landing in the context window, whereas written as code the loop runs once and only the answer comes back.
Release Timing and Availability
The Claude Code changelog entry for version 2.1.323 is dated November 12, 2026. Anthropic added Code Mode quietly, with one line in the changelog and a new documentation page. The page is titled “Run tool calls from code with Code Mode.”
Requirements and limits reported so far:
- Off by default. It requires Claude Code v2.1.323 or later and is enabled with the CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 environment variable.
- Experimental status. Anthropic warns it may change or be removed in any release.
- Supported surfaces. One report says it works only in interactive terminal sessions of the native build, on Opus 5.5, Sonnet 5.5, Haiku 5.5 or Fable 5.2, through a Claude subscription or Console account.
- Confirmation and admin controls. The first session asks users to confirm the experimental feature, but an organization-managed value of 0 blocks Code Mode even when another setting enables it.
Permissions, Hooks and Review
Much of the coverage focuses on how Code Mode interacts with Claude Code’s safety controls. The conversation still shows each tool call and diff, while the generated code sits in the transcript viewer. Users can inspect the generated JavaScript by pressing Ctrl+O and expanding the collapsed Code row.
The checks happen at two points, according to a walkthrough of the documentation:
| Stage | What is checked | Mechanism |
|---|---|---|
| Before execution | The JavaScript Claude generates | Auto mode classifier |
| During execution | Individual tool calls such as Bash and Edit | Deny and ask permission rules and PreToolUse hooks |
This table is based on XenoSpectrum’s analysis. In auto mode, the classifier reviews the whole script before it runs rather than each call, and it cannot see values computed at run time.
Hooks may also see commands in a different form. InfoQ notes that a git push can now reach a hook as cd ‘app’ && git push, so hooks must check every part of a command. It adds that a hook matching the REPL tool can read the JavaScript from tool_input.code.
Caveats on Claims About Savings
Some social media discussion cited large token savings. One report says that by the weekend, developers on X were calling it the end of chatty agents, and a “37% fewer tokens” figure was everywhere. The headline of that same report says the 37% figure comes from elsewhere, not from Anthropic’s Code Mode documentation. Readers should treat specific efficiency numbers cautiously until they are measured in their own workflows.
Commentators have also raised governance questions. One report says Code Mode changes how much context reaches the model, but one MCP-focused developer argues it leaves authentication, authorization and audit layers unchanged.
Other Recent Claude Code Updates
Code Mode is one of several recent changes to Claude Code:
- Plugins. Claude Code v2.1.337 introduced direct plugin installation through /plugin install, according to iCreat AI News. The command supports Git SSH addresses, HTTPS URLs, and repository shorthand.
- Desktop app. AI Tracker reports that recent updates include assistance with drafting CLAUDE.md files, improved memory and settings editing, interactive subagent steering, image diffs, and faster Windows worktree creation.
Key Facts
- Feature: Experimental Code Mode in Claude Code, where Claude writes JavaScript to coordinate tool calls such as Bash, Read, and Edit.
- First shipped: Claude Code v2.1.323, dated November 12, 2026.
- Status: Opt-in and off by default. Enabled with the CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 environment variable.
- Anthropic’s warning: The feature may change or be removed in any release.
- Oversight: Auto mode reviews the generated script before it runs. Permission rules and PreToolUse hooks apply to the tool calls inside it.
- Feedback: Anthropic collects feedback through /feedback.
Sources
- BlockVision: Claude Code’s experimental Code Mode uses JavaScript to coordinate tool calls
- InfoQ: Claude Code Adds Experimental Code Mode to Orchestrate Tool Calls with JavaScript
- iCreat AI News: Claude Code v2.1.337 supports installing plugins in the terminal
- AI Tracker: Claude Code desktop app gets CLAUDE.md drafting, subagent steering and image diffs
Sources
- Claude Code Adds Experimental Code Mode to Orchestrate Tool Calls with JavaScript – InfoQ
- Claude Code’s Experimental Code Mode Batches Tool Calls in JavaScript. The Viral 37% Figure Is From Elsewhere
- Claude Code adds experimental Code Mode for scripting tool calls
- Claude Code Adds Code Mode, Writing JS to Call Its Tools
- Claude Code Code Mode: Setup, Requirements, and Limits





