Turn on Claude Code's experimental Code Mode to run tools in parallel

Chase AI shows how Code Mode lets Claude Code write and run one script that calls its tools in parallel and reads back only what it needs, saving context. Enabled with one environment variable.

Chase AI · YouTube · published Nov 19, 2026 · Software & DevOps

Turn on Claude Code's experimental Code Mode to run tools in parallel — video by Chase AI▶ Watch on YouTube
Prompt
Turn on Code Mode for me. Check that claude --version is 2.1.323 or later and run claude update if it isn't. Then add CLAUDE_CODE_EXPERIMENTAL_CODE_MODE set to "1" in the env block of ~/.claude/settings.json, keeping everything else in the file as it is. Tell me when it's done so I can restart Claude Code in a terminal.

Sponsored

Advertise here →

Visual breakdown

Claude Code's new experimental Code Mode makes Claude write and run a single script that calls all its tools in parallel and reads back only what it needs, saving a lot of context.

The problem: Normally Claude Code works one step at a time: run a command, read the result, think, repeat. That means many round trips and a context window that fills up the whole time.

How Code Mode changes the loop

  1. Your taskA request that needs several tool calls
  2. Claude writes one scriptInstead of one tool call at a time
  3. Script runs tools in parallelAll tools are called at once
  4. Keep only what's neededOnly the necessary results are read back
    Dropped: Unneeded tool output
  5. Cleaner contextFewer round trips and a lot of context saved
InputScript / setupAI agentResult

Turn it on

It is experimental and off by default. One environment variable enables it; the creator gives a setup prompt in the description.

  1. Check that claude --version is 2.1.323 or later; run claude update if not
  2. Add CLAUDE_CODE_EXPERIMENTAL_CODE_MODE set to "1" in the env block of ~/.claude/settings.json
  3. Keep everything else in the file as it is
  4. Restart Claude Code in a terminal

Things to know

  • Code Mode is experimental and off by default.
  • Normal mode means many round trips that fill your context window.
  • Parallel calls plus reading back only what's needed save a ton of context.
  • Docs are linked in the video description.

Distilled from the video’s captions

How to try it

  1. Open Claude Code.
  2. Copy the prompt and fill in the [placeholders].
  3. Watch Chase AI's video for the full walkthrough and setup.

Related use cases

Share