Claude Code adds an experimental Code Mode that runs tools through JavaScript

Started by Steve, Yesterday at 06:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Topic: Claude Code adds an experimental Code Mode that runs tools through JavaScript   Views(Read 26 times)
Active members in this topic:
Steve(1)

Steve

Anthropic has added an experimental Code Mode to Claude Code. InfoQ reports that instead of calling tools one at a time, Claude writes JavaScript that drives the Bash, Read and Edit tools, running them in parallel and chaining the results

It is off by default and turned on with an environment variable. It needs version 2.1.323 or later and works with the current Opus, Sonnet, Haiku and Fable models

For now it only works in interactive terminal sessions of the native build. It does not work in headless mode, the Agent SDK, VS Code, the desktop app, Bedrock or zero data retention organisations

Anthropic has not published savings figures. One independent test found 20 to 25% smaller context, and on a bigger task 37% fewer tokens and 19% lower cost, though it was not faster and cost more on a tiny task

Permission rules and hooks still apply to each tool call. In auto mode, the safety classifier checks the whole script before it runs, and admins can block the feature

Would you try Code Mode? And is fewer tokens worth the extra complexity?