ACN · Presented by Levr
ACN WIRE

Coding tools

Claude Code now writes scripts to run its tools

Experimental Code Mode reaches Amazon, Google and Microsoft clouds

Written with AI assistance, reviewed by the ACN desk.

Why it matters

Teams that run Claude Code in auto mode will rely on their own permission rules and hooks to control what an agent-written script does.

The quick hit

  • Anthropic has added an experimental Code Mode to Claude Code, where Claude writes JavaScript to call its tools.
  • Code Mode reached Amazon Bedrock, Google Cloud and Microsoft Foundry on Monday, November 23.
  • InfoQ reports that Anthropic has published no token or latency figures for the feature.

Anthropic has added an experimental Code Mode to Claude Code, its coding agent. The release notes for version 2.1.323, published on Thursday, November 12, 2026, describe it as an opt-in in which Claude writes JavaScript to call its tools.

Anthropic’s documentation explains the change. Without Code Mode, Claude asks for each tool call, such as a command, a file read or an edit, 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 the developer’s session. One piece of code can run commands in parallel, use one result in the next call, and return only the part of the output Claude needs to read. The documentation says Code Mode is off by default and may change or be removed in any release.

On Monday, November 23, version 2.1.331 extended Code Mode to terminal sessions on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry and Claude Platform on AWS. Two days later, version 2.1.332 fixed cases where Code Mode silently skipped a tool call or froze on a very large input.

The mode changes how an agent’s actions are reviewed. In auto mode, the documentation says, the classifier reviews each piece of code before it runs, not each tool call, and does not see values computed at run time. It advises keeping permission rules or hooks for calls that must be controlled.

InfoQ reported on November 23 that Anthropic has published no token or latency figures for Code Mode. It cited one developer’s comparison across eight interactive runs, which found context 20 to 25 percent smaller and, on a bigger task, 37 percent fewer tokens and 19 percent lower cost. The same developer wrote that Code Mode was not faster and that a tiny task cost more. InfoQ also quoted Ravi Madabhushi, who builds agent auth infrastructure, pushing back on claims that the feature makes MCP obsolete. He said an agent still makes the same MCP calls with the same auth tokens, and what changes is how much context reaches the model.

InfoQ noted that the idea and the name predate Anthropic’s release. Cloudflare introduced Code Mode for MCP in September 2025, writing that “LLMs are better at writing code to call MCP, than at calling MCP directly.” In November 2025, Anthropic’s engineers wrote that loading all tool definitions upfront and passing intermediate results through the context window slows agents and increases costs. They reported one workflow falling from 150,000 tokens to 2,000 when the agent wrote code instead. They also cautioned that running agent-generated code requires sandboxing, resource limits and monitoring, overhead that direct tool calls avoid.

For teams that run Claude Code in auto mode, control over what an agent-written script does rests on their own permission rules and hooks.

Sponsor

Sources

  1. Claude Code releases (GitHub) · Nov 12, 2026
  2. Claude Code changelog (2.1.331) · Nov 23, 2026
  3. Claude Code changelog (2.1.332) · Nov 25, 2026
  4. Claude Code docs (Code Mode) · Nov 26, 2026
  5. InfoQ · Nov 23, 2026
  6. Anthropic Engineering (code execution with MCP) · Nov 4, 2025
  7. Cloudflare (Code Mode) · Sep 26, 2025

Spot an error? Email corrections@aicodingnews.si. Fixes are logged on the corrections page.

From our sponsors

Sponsor

Sponsor

Sponsor

Sponsor