Blog
Claude Code mode vs normalClaude Code usage limitsClaude Code cached tokens

Claude Code Mode vs Normal Mode: Is the Trade-Off Worth It?

Claude Code mode used about 35% fewer input tokens in four tests but ran slower on three. Here is when it helps your usage limits and when to skip it.

Portrait of Luis Chavez-Mattos
Edited by Luis Chavez-Mattos, Director, Product··RSS

For Engineering

A stack of flat offset bars is gathered by one tall bar, with a small accent circle on the top bar.

Is Claude Code mode better than normal mode?

It depends on what you are optimizing for. In one creator's side-by-side tests on four small-business jobs, code mode gave the same correct answers as normal mode and used about 35% fewer input tokens. But it was slower on three of the four tasks, and once cached tokens were priced in, the real savings shrank to roughly 17%. If you keep hitting usage limits, it is worth trying. If you care most about speed, normal mode still wins in some cases.

TL;DR

  • Accuracy did not change. Every run in both modes produced the right answer, so code mode neither helped nor hurt quality in these tests.
  • Input tokens dropped about 35% across the five comparisons, mostly because each message carries a smaller built-in overhead (about 60,000 tokens down to about 38,000 in the tester's setup).
  • Cost-weighted savings were closer to 17%, because many of those tokens are cached and cached tokens are cheaper.
  • Speed was mixed. Code mode was faster on a quick one-file question and one of the order runs, slower on the other three tasks. A broken-link check took 3 minutes instead of 27 seconds.
  • It is experimental. Anthropic says it could change or be removed in any release, and it only works in the terminal version of Claude Code.
  • Best fit: long sessions where you watch your usage, repeated changes across many files, and searches that need filtering before Claude reads the results.

What is Claude Code mode?

Normally, Claude Code works one step at a time. It asks to read a file, reads what comes back, decides what to do next, then asks for the next file. Each step is a "tool call," and everything Claude reads gets added to the conversation and stays in its memory for the rest of the session.

Code mode changes the pattern. Instead of asking for tools one at a time, Claude writes a short JavaScript program that makes many of those calls at once. Claude Code runs the program inside your session. The program can run commands in parallel, use one result to decide the next step, and hand back only what Claude needs to see.

An analogy: normal mode is sending an assistant to the filing cabinet one folder at a time and having them read every page aloud. Code mode is handing them a note that says "pull all 40 folders, total each customer, and come back with the top three."

Despite the name, you do not write or read any code. You type prompts the same way you always do. The name describes how Claude uses its tools behind the scenes.

The idea is not new. Anthropic's own engineers tested it outside Claude Code about a year before this feature appeared. In their example, an agent pulled a meeting transcript from Google Drive and attached it to a lead in Salesforce. Writing code instead of calling tools directly cut that job from 150,000 tokens to 2,000.

How did code mode do in head-to-head tests?

The tester built a sandbox with four jobs a small business might hand to Claude, then ran each once with code mode off and once with it on. Same model, same effort setting, same prompt. The orders job was run twice, which makes five comparisons.

The four jobs:

  1. Find the top three customers across 40 days of order files.
  2. Find every broken link in a folder of 30 documents.
  3. Change a phone number and a price across a 25-page website.
  4. Answer one quick question about a single file.

Here is how the results broke down.

MeasureWhat happened
AccuracyRight answer in every run, both modes
Input tokensFewer with code mode in all five comparisons, about 35% fewer overall
Cost-weighted tokensAbout 17% savings once cached tokens were priced in
SpeedFaster on the quick question and one orders run, slower on the other three
Broken-link checkAbout 3 minutes with code mode vs 27 seconds without

The top-three-customers answer came back as Summit Roofing, Harbor Coffee Co., and Northwind Bakery, which was correct.

Why does code mode use fewer tokens?

Most of the savings came from setup, not from the job itself. Every message Claude sends carries its instructions and its full list of tools. In the tester's setup, that overhead was about 60,000 tokens per message with code mode off. With code mode on, all those separate tools get swapped for a single code tool, and the overhead fell to about 38,000.

That is why even the one-file question got cheaper. Each message is lighter before Claude reads a word of your prompt. It also means the saving compounds in a long session, where you send many messages.

Why are the real savings smaller than 35%?

Cached tokens. When Claude Code resends the same instructions over and over, a large share of those tokens are "cached," meaning the system has already seen them and charges less to process them again, as long as they are still in the cache. A cached token costs far less than a fresh one.

When the tester weighted tokens by what they actually cost, the savings came out closer to 17%. That is still meaningful if you regularly bump into usage limits, but it is far from the 98% reduction you might see in a headline (the Anthropic example above was a different setup, outside Claude Code).

One more caveat: these jobs were small. On bigger jobs, the same percentage would represent a larger number of tokens, though the tester presented that as a guess, not a measured result.

Why was code mode slower on some jobs?

The broken-link check is the clearest case. With code mode off, Claude ran the whole check in one command and finished in 27 seconds. With code mode on, it took about three minutes.

When the tester inspected the logs, the generated script had fired off more than 100 tiny separate shell commands, roughly one per link. On a Windows machine, each of those starts a fresh shell, and that startup time adds up. So the slowdown came from how this particular script ran on this particular machine, not from code mode being slow in general.

Two other points keep this in perspective:

  • Normal mode already writes scripts. In most of these jobs, Claude was writing its own small terminal scripts even with code mode off. The real difference between the modes was smaller than "40 reads versus one script" suggests.
  • One run proves little. The same job with code mode off took 12 seconds once and 36 seconds another time. Timing varies a lot between runs.

Treat the speed results as a warning to check your own workload, not as a verdict.

How do you turn on Claude Code mode?

There are a few requirements:

  • Terminal only. It works in Claude Code in your terminal, not the desktop app, the VS Code panel, or Claude sessions on the web.
  • Version 2.1.323 or later.
  • An account: a Claude subscription or a Console account.
  • A current model. The tester named Opus 5.5 as an example of a current model.

Then set an experimental environment variable to 1. As described in the video, it is called CLAUDE_CODE_EXPERIMENTAL_CODE_MODE, but confirm the exact name in Anthropic's documentation. You can set it in your terminal right before launching Claude Code, or put it in your settings file. A shortcut the tester uses: paste the code mode docs link into Claude Code and ask it to set things up for you.

On first launch you will see a screen explaining that Claude will write JavaScript that calls its tools, that the feature is experimental, and that Claude in Chrome and computer use are turned off while code mode is on. Choose yes, and you will see a line at the top saying code mode is on.

Can you see what code mode is doing?

Yes. The chat looks mostly normal. You still see the file reads and the step-by-step activity. The code itself is hidden by default. Press Control+O to open the full transcript, where each script appears as a row labeled "code" with its tool calls listed underneath.

In the customer test, Claude wrote three small programs: one read all 40 files, one checked the data for problems like duplicate orders or misspelled customer names, and one totaled the paid orders and returned only the ranking. If you rely on AI output for real decisions, this is how you check its work. Ideally, also ask it to show its proof as part of the deliverable.

When should you use code mode?

Anthropic suggests three kinds of jobs:

  1. A change that repeats across many files.
  2. A search where results need filtering before Claude reads them.
  3. Several separate commands that can run at the same time.

After testing, the creator adds a fourth: long sessions where you are watching your usage, since every message carries less overhead.

Stick with normal mode when speed matters more than usage, when you are doing quick one-off tasks where a few extra seconds is annoying, or when you need Claude in Chrome or computer use, which are off in code mode.

What does this mean for you?

If you use Claude Code in the terminal and hit your usage limits during long working sessions, code mode is a low-risk experiment. Turn it on for a few days, keep your usual tasks, and see whether you run out less often. Time a couple of your regular jobs both ways, since a single slow task can offset the savings.

If you are not a heavy user, or you work in the desktop app or VS Code, there is nothing to do yet. The feature is experimental. It launched November 12, 2026, and Anthropic shipped 61 code mode fixes and changes in the eight days after that. Some of the slowdowns seen in these tests may already be improved by the time you read this, so check your version and test on your own work.

Could you skip the token cost on repeat jobs entirely?

Some of the tester's jobs, like ranking top customers from daily order files, are things you might do every week. Paying for an AI agent to re-read the same files each time is the expensive way to do it. With Remy, you can describe that job in plain English and get a small deployed app instead: upload the order files, see the top customers in a dashboard, and flag duplicate orders or misspelled names. You own the result, and it does not use up a chat session's usage every time you need the answer.

Frequently Asked Questions

5 questions

Does Claude Code mode make answers less accurate?

Not in these tests. Every run in both modes returned the correct answer. The tester concluded that code mode did not make Claude smarter or dumber. It changes how Claude uses its tools, not how well it reasons about the results.

Will code mode save me 98% of my tokens?

No. That figure comes from an Anthropic engineering example outside Claude Code. In the Claude Code tests, input tokens fell about 35%, and the savings were about 17% once cheaper cached tokens were counted. Your results will depend on your tasks.

Does code mode work in the desktop app or VS Code?

Not at the time of the tests. It works only in Claude Code in the terminal, requires version 2.1.323 or later, and needs a Claude subscription or Console account plus a current model.

Is code mode safe to rely on?

It is labeled experimental. Anthropic says it could change or be removed in any release, and Claude in Chrome and computer use are disabled while it is on. Use it as an option you can switch off, not a setup your workflow depends on.

Why was the broken-link check so much slower?

The generated script ran over 100 tiny separate shell commands, one per link, and each one started a new shell on the tester's Windows machine. Normal mode ran the whole check in one command. Run-to-run timing also varied a lot, so test your own jobs.

How we source, write, and correct our articles. Editorial standards

Related articles

Straight to your inbox.
New pieces as they publish. No noise.