Video walkthroughs · Claude Code Club
TL;DR
Code Mode is an experimental, off-by-default setting in Claude Code (version 2.1.323 or newer, terminal only). Instead of making every tool call one at a time and reading every result, Claude writes a short JavaScript program that makes the calls and reports back. Anthropic's own guide gives no savings number, and the big percentages you may have seen belong to other products, so the only number that counts is yours. This guide gives you the exact launch commands, a copy-paste test task, a results sheet to fill in, and the real limits to know before you switch.
Anthropic added a setting to Claude Code called Code Mode, and it is off by default, so most people never see it. The pitch is that it can make your usage limits go further on long sessions. The honest version is that nobody has proven how much it saves on your kind of work, and that is exactly why this guide is built around a test you run yourself. Ten minutes, one task, two sessions, and you have your own answer.
This is the written companion to the video. You get the plain-English explanation, the exact commands, the test, a sheet for your results, and the limits that matter. If you have never touched the terminal version of Claude Code, you can still follow every step.
Watch the video: Claude Code Just Dropped Code Mode (Master it in 7 Minutes)
Normally, Claude Code works one step at a time. It reads a file, and the whole file lands in its working memory, which is called the context window. It runs a command, and the full output lands there too. It uses a connector to an app like Notion or Google Drive (the technical name for those connectors is MCP), and every result lands there as well. Then it decides what to do next.
Anthropic's engineering team gave an example of why that gets expensive. Say you ask Claude to download a meeting transcript from Google Drive and attach it to a lead in your CRM, the app where you track customers. Claude pulls the whole transcript into its memory, then has to write the whole transcript back out again to save it. The same transcript passes through its memory twice. That is a big part of why long sessions burn through limits.
With Code Mode on, Claude writes a small JavaScript program instead. The program grabs the transcript, drops it into the CRM, and reports back with a short note saying it is done. The heavy material never has to pass through Claude's memory.
Two details are worth knowing. First, it covers all of Claude's tools, not only connectors: your files, your commands and the web too. Second, you do not see the code by default. In the conversation you still see the tool calls, such as the diff of an edit, but not the program behind them. If you are curious, press Ctrl+O to open the transcript viewer and read exactly what Claude wrote. Each piece of code shows up there as a collapsed row.
The idea is not new. Cloudflare named it Code Mode in September 2025, arguing that AI models have read a huge amount of real code and far fewer examples of tool calls, so they are better at writing a small program than at calling tools one by one. Anthropic's engineers wrote about the same approach for connectors in November 2025. Other coding tools, including Goose, Pi, OpenCode and Codex, have their own versions.
What is new is that it now ships inside Claude Code. Anthropic added it in version 2.1.323 on November 12, 2026, as an experimental opt-in, and the changelog shows fixes and improvements to it in every release since. Treat it as a feature that is actively being worked on, which is a good sign and also a warning that details can change.
Code Mode is a bet that your work involves a lot of tool results that Claude does not need to read in full. That bet pays off for some people and not for others. Use these tells.
If you are on the fence, the test below costs you about ten minutes, which is cheaper than arguing about it.
Code Mode needs Claude Code version 2.1.323 or newer, on either release channel. Open your terminal and run this.
bashclaude --version
If the number is older than 2.1.323, update, then check again.
bashclaude update
You also need a Claude subscription or an Anthropic Console account. Code Mode only works in an interactive Claude Code session in a terminal.
Code Mode is switched on with an environment variable, which is just a setting you hand to a program when it starts. Pick the line for your computer.
On a Mac, Linux, or Windows Subsystem for Linux (WSL), one line:
bashCLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude
On Windows in PowerShell, two lines, one after the other:
powershell$env:CLAUDE_CODE_EXPERIMENTAL_CODE_MODE = "1"
claude
The first time you do this, Claude Code asks you to confirm. Pick Yes, turn on Code Mode. It restarts, and near the top of the session you will see this line, which is how you know it worked:
textCode Mode (experimental) is on · this session can be resumed only with Code Mode on
If you want Code Mode every time, put the same setting in your user settings file, which lives at ~/.claude/settings.json. If the file already has other settings in it, add the env block next to them and keep everything that is already there.
json{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_CODE_MODE": "1"
}
}
Not comfortable editing a settings file? Open Claude Code the normal way and ask it to do the edit for you: "Add CLAUDE_CODE_EXPERIMENTAL_CODE_MODE set to 1 in the env section of my user settings file at ~/.claude/settings.json, and keep every other setting exactly as it is." Then read what it changed before you accept it.
It has to be your user file. According to the docs, Claude Code ignores this variable in a project's settings files, so a repository you clone cannot turn Code Mode on for you.
To turn it off, remove CLAUDE_CODE_EXPERIMENTAL_CODE_MODE from your shell and from ~/.claude/settings.json if you added it there, then start a new session. If you only used the launch line, starting Claude the normal way is enough.
Pick a task that touches a lot of files or apps at once, because that is where Code Mode has the best chance of helping. Anthropic's own guide uses a simple one, and it works well because you can verify the answer. Point it at a folder of notes or documents with at least a couple dozen files and a few links you know are broken.
The test task, copy and paste it exactly:
textRead every Markdown file in this project and list the links that point to local files that don't exist.
Run it as two sessions, and keep everything else identical.
Fill in this sheet as you go. Copy it into a note or a spreadsheet.
textRESULTS SHEET CODE MODE OFF CODE MODE ON
------------------------------------------------------------------
Task (same both times): ______________ ______________
Model and effort: ______________ ______________
Time to finish: ______________ ______________
/context after finishing: ______________ ______________
/usage after finishing: ______________ ______________
Broken links found: ______________ ______________
Answers match? (yes / no / which
was right): ______________
My verdict (keep on / turn off / test a bigger task):
______________________________________________________________
Look at three things: how much it used, how long it took, and whether the answer was just as good. A saving that comes with a worse answer is not a saving.
There is no official threshold, so decide your own rule before you look at the numbers. Here is a reasonable one.
One public write-up shows why the time column matters. Someone who ran the same task with and without Code Mode measured total input tokens falling from 150,364 to 94,659, and the time going from 15 seconds to 37 seconds. That is one person on one task, and it is the reason the guide asks you to time it. Savings can come with a slower run.
These are all from Anthropic's own docs. None of them are reasons to avoid the test, but you should know them first.
This is the part that gets mixed up online, so here it is straight. Anthropic's Code Mode guide does not give a saving number at all. The big figures floating around belong to other products and other features.
None of these are proof that Code Mode will save you money, and none are proof it will not. They show the approach can work in the right setup. Whether Claude Code's version saves you anything on your work is the one question only your test can answer.
If you want a second pair of eyes on your results, or you want to see how other members are using the terminal version of Claude Code day to day, that is what the Claude Code Club is for. Everything above is enough to run on your own today.
Anthropic's own page: requirements, launch commands, limits and how auto mode treats scripts.
Version 2.1.323 (November 12, 2026) added Code Mode, and later releases keep improving it.
The meeting transcript example and why tool results cost so much memory.
Where the name Code Mode came from, September 2025.
The 2,500 endpoints and the 99.9% input token reduction, February 2026.
25 tasks, 73% fewer input tokens, 90% correct versus 74%.
One code tool instead of 24 actions, with the caveat that the release changed other things too.
Where the 37% token reduction figure actually comes from.
One public side-by-side: 150,364 to 94,659 input tokens, 15 s to 37 s.
What is Claude Code's Code Mode?
It is an experimental, off-by-default setting in Claude Code. With it on, Claude writes a short JavaScript program that makes its tool calls and reports back, instead of making each call one at a time and reading every result into its working memory.
How do I turn on Code Mode in Claude Code?
Update to version 2.1.323 or newer, then start Claude with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE set to 1. On a Mac or Linux that is one line, CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude. In Windows PowerShell it is two lines, setting $env:CLAUDE_CODE_EXPERIMENTAL_CODE_MODE to "1" and then running claude. Confirm Yes, turn on Code Mode when asked.
Does Code Mode save tokens?
Anthropic's Code Mode guide does not give a saving number. Other companies report large savings with their own code-based tools, and one public Claude Code test showed fewer tokens but a slower task, so the only reliable answer is to run the 10-minute test on your own work.
Does Code Mode work in the desktop app or the VS Code panel?
No. It works only in an interactive Claude Code session in a terminal. It does not work in the VS Code panel, the Desktop app or cloud sessions.
How do I turn Code Mode off?
Remove CLAUDE_CODE_EXPERIMENTAL_CODE_MODE from your shell, and from ~/.claude/settings.json if you added it there, then start a new session.
Is the 37% fewer tokens figure about Code Mode?
No. That number comes from Anthropic's programmatic tool calling on the API, announced in November 2025. It is a different feature from Code Mode in Claude Code.
Can I see the code Claude writes in Code Mode?
Yes. By default you see the tool calls and results, not the code. Press Ctrl+O to open the transcript viewer, where each piece of code appears as a collapsed row you can expand.
The framework is yours. The exact copy-paste prompts, the skills, and the plugins that run it live inside the Claude Code Club, with 7,000+ members shipping the same systems. $9/mo, cancel anytime.
Join the Club — $9/moclaudecodeclub.ai