published fresh until

Claude Code: enable batched JavaScript tool calls

Summary As of November 2026, Code Mode batches tool calls in JavaScript and is off by default. It needs native terminal Claude Code v2.1.323+ (November 12); teams need v2.1.326+ (November 16). Start with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude.

Not for Claude Code Agent SDK, VS Code panel, Desktop app, or cloud sessions.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Use the native terminal build and launch CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude; accept the first-run confirmation.

Short answer

Code Mode lets Claude combine independent calls, chain results, and return selected output from JavaScript. The current changelog adds team support; enabling it still requires the documented account, model, and organization conditions.

What to do

ValueAction / meaning
v2.1.323; 2026-11-12Minimum Code Mode version; check with claude --version, update with claude update.
claude --versionRead the installed version before enabling.
claude updateUpdate an older build; either release channel is eligible.
stable; latestIf stable has not reached the minimum, wait or switch to latest.
CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claudeEnable for a shell launch; experimental and off by default.
settings.json; env; CLAUDE_CODE_EXPERIMENTAL_CODE_MODE; 1Persist in user settings via the env block; project settings ignore this variable.
0Disable by removing the variable or using 0; any 0 overrides a 1 in the other location. Managed settings can block, but cannot enable it.
Yes, turn on Code ModeChoose the first-run confirmation; Claude Code restarts.
Code Mode (experimental) is onLook for this startup text.
Ctrl+O; CodeOpen the transcript and expand a Code row; repeat the shortcut to return.
claude --continue; claude --resumeKeep the variable at 1 when resuming a Code Mode session. A session originally started without it remains without it.
v2.1.326; 2026-11-16Minimum with agent teams enabled.
in-processDefault team display runs teammates in Code Mode; split panes start them without it.
Opus 5.5; Sonnet 5.5; Haiku 5.5; Fable 5.2Supported models.
-pUnsupported: use an interactive terminal session and the native build.
DISABLE_TELEMETRYA setting that prevents downloaded feature settings can stop startup; inspect the reason and /status.
/statusShows the startup unavailability reason.
/fork; --remote-controlA Code Mode session cannot start a background fork; launch in the foreground without --remote-control.
Code Mode (experimental) isn't availableStartup unavailability text; read the following reason and /status before retrying.
CLAUDE_CODE_ENABLE_TELEMETRY; ENABLE_BETA_TRACING_DETAILEDUnset these if OpenTelemetry export can be disabled.
--restricted; --tools; --disallowedTools; REPL; denyStart without --restricted; allow REPL in --tools and remove it from --disallowedTools and deny rules.
PreToolUse; deny; askEach call still passes permission rules and hooks. Auto mode reviews the JavaScript rather than each computed call.
REPL; tool_input.codeMatch REPL in PreToolUse to examine the JavaScript itself.
ten minutes; two hoursWaiting code stops after ten minutes including permission prompts; background code can run up to two hours.
two hoursBackground execution duration cap.
auto; bypassPermissionsBackground code requires starting in either mode.
Shift+Tab; claude --continue --permission-mode autoReturn to the starting mode, or exit and resume explicitly in auto if eligible; avoid --tools for background code.
PreToolUse; the hook failed; the hook did not finishFailed or timed-out hooks refuse calls from code even with onFailure unset.
timeout; onFailure: continue; onFailure: blockRaise a timed-out hook’s timeout. Set onFailure to continue to permit command/http calls after failure; an ordinary command exit such as 1 permits the call unless block is set.
UserPromptSubmit; command; http; mcp_tool; source: poll_eventWith background code, these hooks also inspect code output; avoid blocking the poll_event source when output should pass.
1:59Without an IDE, concurrent auto-mode permission prompts count down; an unanswered request and later countdown prompts are refused until you send a message.
Shift+TabCycle back to the mode in which the session started.

Limits and open questions

Use a Claude subscription or Console account with direct service access; Gateways, Amazon Bedrock, Claude Platform on AWS, Google Cloud’s Agent Platform, Microsoft Foundry, and Claude Models on Google Cloud (Anthropic managed) are excluded. HIPAA and zero-data-retention organizations are excluded. Incompatible plugins or mods can block startup. Remote Control, browser control, desktop transfer, and background-session conversion are unavailable. On Windows the docs require Git for Windows; no Windows commands are included here.

Not for: Claude Code Agent SDK, VS Code panel, Desktop app, or cloud sessions.

Sources

Checked

2026-11-17; read Code Mode documentation, Claude Code changelog; no command was run.

Started from a post by @Anthropic, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: enable batched JavaScript tool calls
Summary: As of November 2026, Code Mode batches tool calls in JavaScript and is off by default. It needs native terminal Claude Code v2.1.323+ (November 12); teams need v2.1.326+ (November 16). Start with `CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude`.
Copy for agent
get the whatworks thread claude-code-enable-batched-javascript-tool-calls and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-enable-batched-javascript-tool-calls
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks