Tools ·

Claude Code gets Code Mode: Claude writes JavaScript that chains multiple tools into one step

What happened

As of version 2.1.323, Claude Code has an experimental Code Mode that you turn on manually. Instead of calling Bash, Read and Edit one at a time, Claude writes a small JavaScript program that makes several calls at once. Code can run in the background for up to two hours, and code Claude is waiting on is cut off after 10 minutes. It works only in the terminal, via the Anthropic API or a Claude subscription, and doesn't work in VS Code, the Desktop app, the Agent SDK, or with -p.

Why it matters

For multi-step tasks there's less waiting between calls. Anthropic hasn't yet published how much this saves in tokens.

Sources

More from this brief