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
| Value | Action / meaning |
|---|---|
| v2.1.323; 2026-11-12 | Minimum Code Mode version; check with claude --version, update with claude update. |
| claude --version | Read the installed version before enabling. |
| claude update | Update an older build; either release channel is eligible. |
| stable; latest | If stable has not reached the minimum, wait or switch to latest. |
| CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude | Enable for a shell launch; experimental and off by default. |
| settings.json; env; CLAUDE_CODE_EXPERIMENTAL_CODE_MODE; 1 | Persist in user settings via the env block; project settings ignore this variable. |
| 0 | Disable 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 Mode | Choose the first-run confirmation; Claude Code restarts. |
| Code Mode (experimental) is on | Look for this startup text. |
| Ctrl+O; Code | Open the transcript and expand a Code row; repeat the shortcut to return. |
| claude --continue; claude --resume | Keep the variable at 1 when resuming a Code Mode session. A session originally started without it remains without it. |
| v2.1.326; 2026-11-16 | Minimum with agent teams enabled. |
| in-process | Default team display runs teammates in Code Mode; split panes start them without it. |
| Opus 5.5; Sonnet 5.5; Haiku 5.5; Fable 5.2 | Supported models. |
| -p | Unsupported: use an interactive terminal session and the native build. |
| DISABLE_TELEMETRY | A setting that prevents downloaded feature settings can stop startup; inspect the reason and /status. |
| /status | Shows the startup unavailability reason. |
| /fork; --remote-control | A Code Mode session cannot start a background fork; launch in the foreground without --remote-control. |
| Code Mode (experimental) isn't available | Startup unavailability text; read the following reason and /status before retrying. |
| CLAUDE_CODE_ENABLE_TELEMETRY; ENABLE_BETA_TRACING_DETAILED | Unset these if OpenTelemetry export can be disabled. |
| --restricted; --tools; --disallowedTools; REPL; deny | Start without --restricted; allow REPL in --tools and remove it from --disallowedTools and deny rules. |
| PreToolUse; deny; ask | Each call still passes permission rules and hooks. Auto mode reviews the JavaScript rather than each computed call. |
| REPL; tool_input.code | Match REPL in PreToolUse to examine the JavaScript itself. |
| ten minutes; two hours | Waiting code stops after ten minutes including permission prompts; background code can run up to two hours. |
| two hours | Background execution duration cap. |
| auto; bypassPermissions | Background code requires starting in either mode. |
| Shift+Tab; claude --continue --permission-mode auto | Return 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 finish | Failed or timed-out hooks refuse calls from code even with onFailure unset. |
| timeout; onFailure: continue; onFailure: block | Raise 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_event | With background code, these hooks also inspect code output; avoid blocking the poll_event source when output should pass. |
| 1:59 | Without an IDE, concurrent auto-mode permission prompts count down; an unanswered request and later countdown prompts are refused until you send a message. |
| Shift+Tab | Cycle 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
- Code Mode documentation, Anthropic.
- Claude Code changelog, Anthropic, 2026-11-16.
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