Claude Code adds experimental Code Mode: one JS script runs multiple tool calls in one step

Arindam_1729 · x · 2026-11-16

Anthropic shipped an experimental, opt-in Code Mode in Claude Code 2.1.323. Instead of requesting tools like Bash, Read, or Edit one at a time and reading each result before deciding the next step, Claude writes a piece of JavaScript that makes the tool calls, and Claude Code runs it in your session.

How it works

Best for: changes repeated across files, searches you want to filter before Claude reads the hits, or several independent commands that can run concurrently.

How to enable: requires Claude Code ≥2.1.323, the native build, and an interactive terminal; set CLAUDECODEEXPERIMENTALCODEMODE=1 in your shell or /.claude/settings.json. A cloned repo cannot enable it for you, and orgs can force it off via managed settings. Version 2.1.325 already fixes early bugs around worktrees, permission yes-text, and resume.

Related event: Claude Code Introduces Experimental Code Mode(2 posts)→

Original post →

More from coding & agent

coding & agent channel →