logoalt Hacker News

Claude Code burns ~15–20% of your tokens on a 3-word status line

179 points • by NikZaal • today at 3:33 AM • 39 comments • view on HN

Comments

dozerly • today at 5:44 AM

This is the harness’s job. Incentives are not aligned for inference providers to own the harnesses.

HeavenFox • today at 4:25 AM

If they are literally sending the entire transcript and asking for a summary, wouldn't almost all of the tokens be cache hit, and therefore fairly cheap?

➕ show 3 replies
gym • today at 4:27 AM

I was surprised the usage issue wasn't mentioned here before this based on my searching on hn.algolia.

I'm on pro. Two days ago, 100% 5 hour was using 25% of my weekly. Today, 100% 5 hour is like 13% so something was fixed.

➕ show 2 replies
jakozaur • today at 4:48 AM

I tested it, and it looks real but more nuanced. It is just for subagents; workflows do not seem affected. I guess many new users prefer workflows (ultracode), so the impact is less than the report suggested.

Moreover it is mostly cached reads, so subagents with short context cost little, while long-context ones cost much more.

In my Claude Code sessions, it looks more like ~8% at most.

➕ show 1 reply
creamyhorror • today at 4:40 AM

Background agents only have 5 minutes' cache TTL, but I'm guessing this doesn't help extend it (not that it would be too useful anyway, especially considering the extra burn).

Also, the claim "15-20% of your tokens" seems unclear; of all tokens, or of tokens spent on background agents? Poorly edited AI writing strikes again!

apt-apt-apt-apt • today at 4:32 AM

At least they seem to have fixed their free-revenue feature-bug, where they randomly invalidate your cache (~$8 a pop (turn))

➕ show 1 reply
_boffin_ • today at 5:13 AM

Just looked and we're burning around ~3%, but that's across everything / everyone.

messh • today at 4:17 AM

Bloat. I like Pi much better with it's minimalism

➕ show 1 reply
ab_wahab01 • today at 5:14 AM

Does this happen in the VS Code extension? or only in the terminal?

nullbio • today at 5:36 AM

Not good. Please fix.

rurban • today at 5:23 AM

That's why people are using pi, not Claude. What a waste of money

leroman • today at 5:19 AM

At the base there is a conflict of interests- what we pay for

quantbuilder • today at 4:20 AM

i think its not the status line at the bottom of the terminal, but actually the few words summary claude generates for each background agents in the agents panel. so if we mostly run one plain session we wont pay for this? i do run claude code with disableAgentView on in my settings. does anyone know if that helps to stop the summary calls or just hides the panel?

rsalus • today at 4:20 AM

does this happen for Claude Desktop too?

simianwords • today at 4:39 AM

Isn’t this prompt cached? Then it’s not that big of a deal

lostsock • today at 5:42 AM

[flagged]

vinaygundeti18 • today at 5:34 AM

[flagged]

NikZaal • today at 3:33 AM

Claude Code's (CC) status summaries used 16.4% of our token spend in a week! We have investigated a source of overhead in CC: it's an agent_summary query that calls your current session/subagent model approximately every 30 seconds for a few words in CC’s status line.

Our DRIM system flagged the anomaly in CC's OTEL traces. Grouping requests by query_source showed that over one measured week agent_summary accounted for: 16.4% of total estimated spend (versus 15.7% for the main conversation), and 19.7% of all API requests with approximately 9,000 input tokens per output token.

Most requests reuse the prompt cache, but repeatedly reading a large cached transcript still has a cost. Longer contexts and more concurrent agents increase the overhead.

We couldn’t find a supported setting that disables only these summaries while preserving background agents and forks. Disabling those capabilities also stops the summaries, but changes the workflow we want to keep.

Our workaround is a small Bun preload that intercepts the summary timer without modifying the CC binary. It identifies the timer callback by source-text anchors and leaves other timers alone.

In controlled tests on Linux (from ver 2.1.257 to 2.1.312), the same workload produced five summary calls without the hook and zero with suppression enabled. On our current production setup, agent_summary calls remained at zero with the hook enabled. Background agents and forks continued running. The only visible change was that their generated status summaries stopped updating.

The workaround depends on implementation details. An update can break the callback matching and silently restore the requests. macOS and Windows are untested. If someone could help us with testing there, it would be much appreciated.

If you want to try it - the script, full technical explanation, test results, and installation instructions are on GitHub: https://gist.github.com/flamerix-ai/c3905705cc4205e5de3011fa...

edwinarbus • today at 4:52 AM

I work on Claude Code. You've got the basic mechanism right, but to be super clear, this only applies to background agents that are actively working. They get a summary call about every 30 seconds, and idle background agents don't. These summaries are used for both you and Claude Code to track what each background agent is working on, without reading transcripts.

Your 16.4% sounds like it was for a team running mostly background agents, and doesn't seem like a typical session. (Feel free to send me the session ID at [email protected] and we can dig further.)

Last week, across Claude Code users who send us telemetry, agent_summary was about 2% of cost at API list prices and just under 4% of requests. In the terminal, where nearly all of these calls happen, it was about 6% of cost.

That said, we agree that's a lot for a status line. We just rolled out a fix for the most expensive case, summaries that miss the prompt cache (2.1.311+), and right now we're working on a much cheaper mode that sends short notes to a smaller model instead of the full transcript.

digitaltrees • today at 4:56 AM

It’s almost like they are trying to go public. Burn those tokens.

helsinki • today at 4:22 AM

I’m sure they release a decision model that alleviates this problem in due time.

hypfer • today at 5:25 AM

With the ever-increasing amount of paper cuts one gets from using their products, I wonder how long this will really go on?

After all, for most of the work people seem to be doing daily, Claude kinda isn't.. necessary? In fact, for a lot of tasks, not using it leads to better results in my experience.

There are things that only it can reasonably accomplish, but if every interaction with it hurts you in various ways (like this one), then, eventually, I do not see that working out for them anymore.

But perhaps this is just a way to push the numbers a bit further up for the IPO? That would make a lot of sense to me.

➕ show 1 reply