What it does
code-mode switches on Code Mode in Claude Code, an experimental feature in which Claude writes JavaScript that makes several tool calls in one step. Instead of calling Bash, Read or Edit one at a time, Claude can run parallel commands, chain the results of one call into the next, and filter output before it returns.
The setting is relevant when a user works in Claude Code on tasks that involve many sequential tool calls, such as running several commands together or processing command output before deciding on the next step. The first session asks the user to confirm before Code Mode runs, and Ctrl+O displays the generated code.
The variable goes in the user-level Claude Code settings file, because Claude Code ignores it in project and local settings. Once a session has started in Code Mode, it can only be resumed with the setting still enabled.
Limitations and requirements
Experimental feature. Must be set in user-level settings; project and local settings are ignored. Works only in interactive terminal sessions and only on the native build of Claude Code. Supported models are Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2. The first session requires user confirmation. Sessions started in Code Mode can only be resumed with the setting enabled.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
Sources
- AI Templates (aitmpl) first seen 15 Nov 2026 · last seen 17 Nov 2026 · its page on the source · figures reported by the source: aitmpl downloads 311
code-mode
Install in User settings (~/.claude/settings.json): Claude Code ignores this variable in project and local settings. Turns on Code Mode (experimental, Claude Code 2.1.323+), where Claude writes JavaScript that makes several tool calls in one step (parallel commands, chained results, filtered output) instead of calling Bash, Read or Edit one at a time. Interactive terminal sessions only, on the native build, with Opus 5.5, Sonnet 5.5, Haiku 5.5 or Fable 5.2; the first session asks you to confirm and Ctrl+O shows the code. Sessions started in Code Mode resume only with it on. Docs: https://code.
As shown on www.aitmpl.com when we last read it