Claude Code Adds Experimental Code Mode for Scripted Tool Orchestration
This summary and analysis were generated by AI from the original article at InfoQ AI and may contain errors (how Viqus works). Read the source for full details.
4
What is the Viqus Verdict?
We evaluate each news story based on its real impact versus its media hype to offer a clear and objective perspective.
AI Analysis:
The headline frames a practical, opt-in experiment as a notable agent advance, while the evidence is a single informal benchmark with mixed results and no official metrics.
Article Summary
Anthropic has added an experimental Code Mode to Claude Code. Instead of requesting each Bash, Read, or Edit call one at a time, the model writes a JavaScript script that drives the tools, can run commands in parallel, pipe one result into the next call, and return only the output it needs. The feature is off by default, requires Claude Code v2.1.323 or later, and is enabled with an environment variable. Anthropic recommends it for repeated multi-file edits, filtered searches, and independent commands. Permission controls still apply to each call inside a script, but in auto mode the classifier reviews the whole script before execution rather than each call, which architects should weigh carefully. Project settings cannot enable it, and administrators can block it. It runs only in interactive terminal sessions on select models and account types. In one informal comparison of eight Sonnet 5.5 runs, results matched normal mode, context was 20-25% smaller, and the larger task used 37% fewer tokens, though the feature was not faster and cost more on a tiny task. The concept builds on Cloudflare's Code Mode for MCP and Anthropic's earlier code-execution work.
Key Points
- Code Mode lets Claude Code write one JavaScript script that runs multiple tool calls, chains results, and returns only the needed output.
- The feature is opt-in and experimental, and in auto mode the permission classifier reviews the whole script rather than each individual call.
- An early informal test showed smaller context and lower token use on larger tasks, but no speed gains and higher cost on small ones.
Why It Matters
This is a useful workflow improvement for developers running agentic coding sessions, particularly on large multi-file tasks where context bloat matters. It is not a paradigm shift: the benefits are modest, Anthropic has published no official token or latency figures, and the feature may change or be removed. For architects, the more important point is the security model change, since permission review happens at the script level and hooks must now inspect full command chains and JavaScript code. Teams should evaluate it cautiously before enabling it.

