Skip to content
ViqusViqus
Navigate
Company
Blog
About Us
Contact
System Status
Enter Viqus Hub

Claude Code Adds Experimental Code Mode for Scripted Tool Orchestration

Claude Code Code Mode Tool Calling Model Context Protocol Agent Permissions Token Efficiency Anthropic
November 23, 2026
Source: InfoQ AI

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.

Viqus Verdict Logo Viqus Verdict Logo 4
Useful Plumbing, Not a Revolution
Media Hype 3/10
Real Impact 4/10

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.


You might also be interested in