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
- One script can run commands in parallel, pass one result into the next call, and return only the output Claude needs to read
- The chat still shows tool calls (e.g. an edit's diff); press Ctrl+O to expand a code row and read the script
- Every tool call still goes through deny/ask rules and pretooluse hooks
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)→
More from coding & agent
- shadcn boosts @uisdk: one-shot UI rebuild that's instantly E2E-testable by AI — shadcn · 2026-11-16
- AI agent deletes 43,599 lines of OpenClaw test code in one PR — vincent_koc · 2026-11-16
- JPMorgan shows Jarvis, its internal agent assembly line, at Interrupt NYC — LangChain · 2026-11-16
- Dev clarifies: Apple doesn't ban feature flags, only fooling App Review — talkaboutdesign · 2026-11-16
- Antigravity Matches Claude Cowork in Tests, While Gemini Tasks' Purpose Remains Unclear — sebajun2 · 2026-11-16
- One 16GB GPU runs songs, voice, images, 720p video and local RAG — all offline and open source — llama-of-death · 2026-11-16