Trusence Every claim has a source
Last updated 24 November 2026 Search Türkçe
Products

Claude Code adds experimental Code Mode for running tool calls as JavaScript

Auto mode now reviews a whole script before it runs, so hooks need to inspect every part of a command rather than each call alone.

A brass clockwork automaton beside a bundle of tangled cords, with a magnifying glass laid over the whole bundle.
AI-generated illustration

Anthropic has added an experimental Code Mode to Claude Code that lets the model write JavaScript to run several tool calls in one script rather than issuing each call separately; it is off by default, requires v2.1.323 or later, and is enabled via an environment variable. Under auto mode the classifier reviews the whole script before it runs rather than each call, so developers should make their hooks inspect every part of a command. Code Mode works only in interactive terminal sessions of the native build with supported models, and is unavailable through -p, the Agent SDK, the VS Code panel, Desktop, Bedrock and zero-data-retention organizations. One early comparison reported similar results, a 20-25% smaller context and 37% fewer tokens on a larger task, but no speed gain and higher cost on a tiny one. Separately, Anthropic launched Claude Ship in beta for Team and Enterprise customers on GitHub, pairing PR Steward, which fixes failing CI, merge conflicts and review feedback, with Claude Approvals, which can approve routine changes under a team's written policy; the approval agent is recommended to start in observe-only mode.

Why it matters

For people who follow AI coding tools, the change is a move toward letting a model batch several actions into one script instead of issuing them one at a time. The gains reported so far are mixed: a large task used 37% fewer tokens and 19% lower cost, while a tiny task was not faster and cost more. The feature is off by default and limited to interactive terminal sessions, so its reach is narrow for now. Separately, Anthropic's Claude Ship beta for Team and Enterprise customers on GitHub points toward agents that both fix pull requests and approve routine changes under a written team policy.

Sources · 3