Black Rainbow Labs

LabClaude Code30 October 2026

What Claude Code's agent summaries cost, and how to turn them off

By Jason McAffee and Eduardo Urias

21%of a session of Opus subagent work went to a 3 to 5 word status line

Every 30 seconds Claude Code sends each running subagent's whole conversation back to the model to get a 3 to 5 word status line for the agents panel. We measured it separately, on Windows and on macOS, with Claude Code 2.1.312. In a session that is mostly subagent work, the summaries were 12 to 21% of the cost, depending on the models. Over 30 days of real use on one of our machines they were about 6%, because most of that use was main sessions, which are never summarized. This summarization doesn't add much value, and can be easily removed so you can spend your tokens on more important things.

Claude Code
2.1.312
Test sessions
47
Share of a subagent session
12 to 21%

01Summary

We saw a report from Flamerix AI which claimed that Claude burns 15 to 20% of tokens on a 3 word status line, so we decided to run our own study to validate the claims.

We ran our own labs on both Windows and macOS, across Opus, Sonnet, and Haiku, and found that 12 to 21% of the cost of a subagent session went to this three word agent summary.

In everyday use the share is smaller, because most Claude Code work happens in main sessions, which are never summarized. On one of our machines it came to 6.4% over 30 days. What it costs in everyday use explains why.

ClaimWindowsmacOS
Every 30 seconds, each subagent's whole conversation is sent to the model for a 3 to 5 word status lineTrue. About 73,000 tokens sent each timeTrue. Every one of 84 summary requests carried the subagent's full conversation
The summary runs on the subagent's own modelTrue. Sonnet subagents got Sonnet summariesTrue for Haiku, Sonnet and Opus subagents
It is on by defaultTrue. 5 summaries in each 2.5 minute subagent runTrue. 4 in each run, which was a little shorter
Usage reports that read Claude Code's saved conversations miss itTrue. 17 requests were made, 12 were savedTrue. None of the 84 summary requests was saved
Turning it off removes every summaryTrue. 0 summaries in 7 sessionsTrue. 0 summaries in 11 sessions
It costs 15 to 20% of your tokens12 to 14% of a subagent session's cost, and 6.4% of 30 days of real use14 to 21% of a subagent session's cost

02What the summary is

Claude Code can hand work to subagents: separate agents that each work on one task while you keep talking to the main session. While a subagent works, the agents panel under the prompt shows a short line saying what it's doing.

That line is written by a model. Every 30 seconds, if the subagent has done anything new, Claude Code sends the subagent's entire conversation to the subagent's own model with one more instruction: "Describe the agent's most recent action in 3-5 words using present tense (-ing)." The answer only ever appears in that panel. It doesn't go back to the subagent or into your conversation.

So every 30 seconds, tens of thousands of tokens are read to produce a handful of words. The animation plays back the five summaries from one of our test sessions, with their real sizes and the words Claude Code wrote.

Summary calls
5 of 5
Tokens sent
366,726
Words shown
21
Five real summary calls from one Windows test session with a Sonnet subagent, played back at five times speed. Each call sent between 73,035 and 73,685 tokens and got 8 to 14 tokens back.

03What the summary looks like in the terminal

Here is the agents panel from two of our test sessions running the same subagent, captured at the same moment. With summaries on, the line changes every 30 seconds to say what the subagent is doing. With them off, it shows the task's name, "Run eight timers", for the whole run. Nothing else on the screen changes, and the subagent did the same work in both.

  • Summaries onThe agents panel with summaries on. The subagent line reads: general-purpose, Running sixth setTimeout node command.
  • Summaries offThe agents panel with summaries off. The subagent line reads: general-purpose, Run eight timers.
The agents panel at the bottom of Claude Code 2.1.312, 2 minutes 25 seconds into two recorded sessions.

04The two labs

We ran the same test on two machines. In each test, a main session handed one task to a subagent, and the subagent ran a command that waits 20 seconds, several times in a row. Because the subagent does exactly the same work every time, the only difference between runs is whether the summaries are on.

We counted every request from Claude Code's built in usage telemetry, which records what made each request, the model it ran on, how many tokens it used and what it cost. We ran each test with summaries on and with them turned off. As a check, we also loaded the off switch with it disabled, and the counts didn't change, so loading it has no effect by itself.

On macOS we ran 31 sessions with Haiku, Sonnet and Opus subagents, in a random order, following a test plan written down before the first run. That lab also compared the contents of every summary request with the subagent's own conversation, and timed every summary.

On Windows we ran 16 sessions with Sonnet subagents, including 8 in a row with a Sonnet main session, and replayed the summary timer over 30 days of real subagent conversations to estimate the cost in everyday use.

WindowsmacOS
Run byJason McAffeeEduardo Urias
PlatformWindows 11macOS 15
Main session modelHaiku 5.5 and Sonnet 5.5Haiku 5.5
Subagent modelSonnet 5.5Haiku 5.5, Sonnet 5.5 and Opus 5.5
Subagent workEight waits of 20 secondsSix waits of 20 seconds
Sessions1631
Also measured30 days of real use, script mode, terminal screenshotsRequest contents, summary timing

05When the summary runs

In a normal interactive Claude Code session, summaries are on by default. Every test session in both labs got a new summary about every 30 seconds while its subagent worked: 5 summaries on Windows, where the subagent worked for about two and a half minutes, and 4 on macOS, where it worked a little less.

When Claude Code runs a single prompt from a script (claude -p), summaries are off unless you switch them on with CLAUDE_CODE_AGENT_PROGRESS_SUMMARIES=1.

With summaries turned off, no session made a single summary call, in either lab.

Summaries in one subagent run
  • Windows: normal session5
  • Windows: normal session, summaries turned off0
  • Windows: script (claude -p)0
  • Windows: script, summaries switched on5
  • macOS: normal session4
  • macOS: normal session, summaries turned off0
How many summaries one subagent run produced. Every session in each row produced the same number. Turned off means Claude Code was started with the hook in How to turn it off.

06How much of a subagent's work goes to summaries

Each test session was one small task handed to a subagent, so nearly everything the session spent was the subagent's work. This is the share you'd see in a session that hands most of its work to subagents, like a code review, a search across a codebase, or any task you delegate.

The summaries took 12 to 21% of the cost of those sessions. The share grows with the subagent's model, because each summary is billed at that model's price: 20.6% with Opus, 14.2 to 18.4% with Sonnet, and 13.7% with Haiku. A more expensive main session lowers it, because the summaries stay the same while the rest of the session costs more. That's why the Windows sessions with a Sonnet main session came in at 11.7%.

Turning summaries off made those Windows sessions 13.2% cheaper, about what the summaries had cost in them.

Summaries, share of session cost, %
  • Opus subagent (macOS)20.6%
  • Sonnet subagent (macOS)18.4%
  • Sonnet subagent (Windows)14.2%
  • Haiku subagent (macOS)13.7%
  • Sonnet subagent, Sonnet main session (Windows)11.7%
Share of each session's estimated cost that went to summaries, averaged over 3 or 4 sessions, except the Windows row with a Haiku main session, which is one session. The main session was Haiku except in the last row. That last row is 13.0% without its first session, which also paid to fill the prompt cache.

07What it costs in everyday use

Real work isn't all subagents. Over 30 days on one of our Windows machines, 76% of Claude Code's cost was main sessions, the conversation you type into, and main sessions are never summarized. Counting everything, the summaries came to 6.4% of that machine's Claude Code use. For the subagents alone, they added about a third to what the subagents cost.

Claude Code doesn't save summary requests with its conversations, so we couldn't count them directly. Instead we took every subagent conversation from those 30 days, worked out when the 30 second timer would have fired, and priced each summary the way our test sessions showed they're billed.

How much a summary costs depends mostly on caching. A summary resends the subagent's whole conversation, but the subagent sent almost all of it moments before, so it's still in the prompt cache and is billed at about a tenth of the normal price. Only the newest part, a few hundred tokens, is billed in full.

That's where the two labs differed. On Windows, 99% of each summary came from the cache. On macOS it was about 90%. That sounds close, but it nearly doubles the price of each summary: if our summaries had been 90% cached, the same 30 days would have come to about 11% instead of 6.4%. Our summaries were large, about 73,000 tokens each, because every one of our sessions starts with a long set of instructions, so the few hundred uncached tokens were a smaller slice of each one.

Share of cost, %
  • Main sessions75.9%
  • Subagents doing their work17.7%
  • Agent summaries6.4%
Share of Claude Code's cost over 30 days on one of our Windows machines, weighted by each model's price. The summary share is our replay of the 30 second timer over 396 real subagent conversations, because Claude Code does not save summary requests.
Share of each summary from the cacheSummaries, share of 30 days
100%6.0%
99%, as on Windows6.4%
90%, as on macOS10.7 to 12.0%
The same 30 days, if summaries were cached differently

08Why usage tools miss it

Claude Code saves each conversation to a file on disk, and most tools that report token use read those files. In one Windows test, Claude Code made 17 requests: 3 from the main session, 9 from the subagent and 5 summaries. The files held 12. On macOS, none of the 84 summary requests appeared in the saved files.

So any report built from those files leaves this cost out. The only place the summaries show up is Claude Code's OpenTelemetry export, where each one is a request with query_source = agent_summary.

09How to turn it off

There's no setting for it. Flamerix AI published a small hook file that Claude Code loads when it starts. It stops the one timer that sends the summaries and leaves everything else alone. With it, the agents panel shows each subagent's task name instead of a live summary.

Have your agent turn this off

Turn off Claude Code's agent summaries on this machine, using the hook from https://gist.github.com/flamerix-ai/c3905705cc4205e5de3011fa2e74efce

1. Download https://gist.githubusercontent.com/flamerix-ai/c3905705cc4205e5de3011fa2e74efce/raw/no-agent-summary.js into a folder in my home directory that won't move, and read it before using it.
2. If this machine runs Windows, change two lines in isClaudeCode(): the Bun.main check becomes !String(Bun.main).endsWith("/root/cli"), and const p = process.execPath; becomes const p = process.execPath.split("\\").join("/");
3. Set BUN_OPTIONS as a permanent user environment variable to --preload= followed by the file's absolute path, written with forward slashes. Keep anything BUN_OPTIONS already contains.
4. Check it loaded: run claude --version with CC_AGENT_SUMMARY_LOG set to a temporary file, and confirm the file has a line containing "preload active mode=off".
5. Tell me to restart every Claude Code window, and the Claude Code daemon if one is running, so new sessions pick it up.

Manually turn it off

Linux and macOS

curl -fsSL https://gist.githubusercontent.com/flamerix-ai/c3905705cc4205e5de3011fa2e74efce/raw/no-agent-summary.js -o ~/.local/share/no-agent-summary.js
# add to ~/.profile, ~/.bashrc or ~/.zshrc, then restart Claude Code
export BUN_OPTIONS="${BUN_OPTIONS:+$BUN_OPTIONS }--preload=$HOME/.local/share/no-agent-summary.js"
claude daemon stop --any

Windows: change these two lines in no-agent-summary.js

-  if (typeof Bun === "undefined" || Bun.main !== CC_MAIN) return false;
-  const p = process.execPath;
+  if (typeof Bun === "undefined" || !String(Bun.main).endsWith("/root/cli")) return false;
+  const p = process.execPath.split("\\").join("/");

Windows, in PowerShell

$hook = "$env:USERPROFILE\.claude\no-agent-summary.js"
Invoke-WebRequest https://gist.githubusercontent.com/flamerix-ai/c3905705cc4205e5de3011fa2e74efce/raw/no-agent-summary.js -OutFile $hook
# make the two line change above, then use forward slashes in the path
[Environment]::SetEnvironmentVariable('BUN_OPTIONS', "--preload=$($hook -replace '\\','/')", 'User')

Check it loaded, after every Claude Code update

CC_AGENT_SUMMARY_LOG=/tmp/nas.log claude --version && cat /tmp/nas.log
# PowerShell: $env:CC_AGENT_SUMMARY_LOG = "$env:TEMP\nas.log"; claude --version; Get-Content $env:TEMP\nas.log
# expect a line ending: preload active mode=off bun=1.4.4 hooked=global.setTimeout

On Windows the published file loads but does nothing, because Bun.main is B:/~BUN/root/cli and process.execPath uses backslashes, so both of its checks fail. The two line change above fixes that. On Linux and macOS it works as published.

10What you give up, and the risks

With summaries off, the agents panel shows each subagent's task name instead of what it is doing right now, and the summary field of SDK task_progress events stays empty. The subagents themselves work the same. In every session with summaries turned off, in both labs, the subagent finished all of its work.

  • The hook is not supported by Anthropic. It recognises the timer by text inside Claude Code, so an update that renames or moves it brings the summaries back with no error. Claude Code shipped three releases in the week we tested, so check it after each one.
  • The only check that catches every way it can fail is Claude Code's OpenTelemetry export showing zero agent_summary requests. The log line above only proves the file loaded.
  • BUN_OPTIONS reaches every Bun program on the machine. The hook does nothing outside Claude Code, but setting it only in the environment that starts your agents keeps it narrower.
  • Flamerix AI's own disclaimer says that changing a client's behaviour may conflict with the terms of the service it is used with.

11What we recommend

If you run many subagents and rarely look at the agents panel, turn the summaries off. It gives back room under your limits for nothing you would miss: about 6% for the way one of us works, and up to a fifth of any session that is mostly subagent work. Check after every Claude Code update that the hook still loads.

If you watch subagents work in the panel, keep the summaries. They are the only place that line comes from.

12Limits of this lab

  • Each lab is one account, one machine and Claude Code 2.1.312, over one or two days. The 30 second interval is a server setting, so another account may see a different one.
  • The test subagents waited on a timer, so their conversations grew slowly. A subagent that reads large files costs more per summary. The 30 day replay covers that for one machine's real work.
  • Every cost is Claude Code's own estimate, or a replay weighted by each model's list price. Neither lab measured subscription limits directly.
  • Our explanation for why summaries were less cached on macOS has not been tested on that machine.

More from the labs