Claude Code has a new mode: Code Mode.

Free from Savage Automations

Code Mode

Claude Code's new experimental mode. Claude writes one small program that does many steps in one go, and reads back only what it needs. One line turns it on.

Start here

2 minutes

Check your version

claude --version

Too old? Update

claude update

1 Turn it on

One line

You start Claude Code with one setting in front of it. Paste the line in your terminal, in the folder of your project.

Mac, Linux or WSL

CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude

Windows PowerShell

$env:CLAUDE_CODE_EXPERIMENTAL_CODE_MODE = "1"
claude

What happens next

  1. Claude Code asks you to confirm the first time. Choose "Yes, turn on Code Mode".
  2. It restarts and shows this line near the top of the session:
Code Mode (experimental) is on · this session can be resumed only with Code Mode on

A different line, or none? See "If it does not start" at the bottom of this page.

Keep it on for every new session

Save this in the file ~/.claude/settings.json, then start claude as usual.

{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_CODE_MODE": "1"
  }
}

2 Try it

Give it a job with many steps

You still just describe the job. The difference is behind the scenes: instead of one step at a time, Claude writes a small piece of code that does the steps together.

The test prompt from the official docs

Read every Markdown file in this project and list the links that point to local files that don't exist.

Three jobs it suits

JobExample you can paste
A change that repeats across many filesRename the function getUser to fetchUser in every file that uses it, then run the tests.
A big searchFind every TODO comment in this project and give me one list, grouped by file.
Several commands at onceRun the linter, the tests and the build, and tell me only what failed.

See the code Claude wrote

  1. Press Ctrl+O to open the transcript.
  2. Open a row called "Code" to read it.
  3. Press Ctrl+O again to go back.

3 The limits

Know them before you rely on it

LimitWhat it means
Terminal onlyAn interactive claude session in a terminal. Not the Desktop app, the VS Code panel, cloud sessions, the -p flag or the Agent SDK.
ModelsClaude Opus 5.5, Sonnet 5.5, Haiku 5.5 or Fable 5.2.
AccountA Claude subscription or Console account. Not through Amazon Bedrock, Google Cloud, Microsoft Foundry or a gateway.
Missing featuresNo Remote Control, Claude in Chrome or computer use inside a Code Mode session.
ResumingA Code Mode session can only be resumed in the terminal, with Code Mode on.
Long jobsCode that Claude waits for stops after ten minutes.

4 Turn it off

Back to normal

Remove the setting, then start a new session. Nothing else to undo.

  1. If you used the one line: just start claude without it next time.
  2. If you saved it in ~/.claude/settings.json: delete that line, or change "1" to "0".
  3. Start a new session.

If it does not start

The session shows "Code Mode (experimental) isn't available" near the top, with the reason on the same line. The command /status shows it too. Most often the version is older than v2.1.323: run claude update and start again.

Code Mode is a feature of Claude Code by Anthropic. Everything here is from the official page, code.claude.com/docs/en/code-mode, read on 20 November 2026. It is experimental, so check that page if something here no longer matches.

Savage Automations · savageautomations.io@savage.automates