# Checking What Claude Code's Agent Status Labels Cost Me

> A simulation on three months of my own subagent logs, next to the figures from Flamerix and Anthropic.

Date: 2026-10-29

On 28 October, Flamerix AI published [a gist](https://gist.github.com/flamerix-ai/c3905705cc4205e5de3011fa2e74efce) with an 80-line Bun preload that switches off one feature of Claude Code: the short status label shown next to each background agent in the terminal. The label is three to five words long, and to write it Claude Code sends the agent's whole transcript to a model about every 30 seconds while the agent works. In Flamerix's OpenTelemetry export for one week, those calls were 16.4% of the estimated spend, a bit more than the main conversation at 15.7%, and about one API request in five.

Anthropic answered [on Hacker News](https://news.ycombinator.com/item?id=50284699) the same day. edwinarbus, who works on Claude Code, confirmed the mechanism and added that it only fires for background agents that are actively working. Over all the users who send telemetry, the labels came to about 2% of cost at API list prices, and about 6% for terminal use. A fix for the most expensive case, labels that miss the prompt cache, shipped in 2.1.311, and a cheaper mode that sends short notes to a smaller model is being worked on.

So the mechanism is agreed on and the size isn't, which makes sense: Flamerix runs mostly background agents, and the average user doesn't. Since most of my own work goes through background agents too, I wanted my own number.

## What I could and couldn't measure

The catch is that the label calls aren't written to the session logs on disk. Flamerix only found them because the OpenTelemetry export tags every request with its query source. I don't export telemetry, so I can't count the calls directly. What I do have is three months of session logs with a timestamp, a model name and token counts for every turn of every subagent, and that's enough to simulate what the labels would have cost.

The simulation walks through each subagent's turns, and for every 30 seconds of activity it adds one label call that sends the agent's context at that point (the input, cache-write and cache-read tokens of the last turn) and gets 12 tokens back. A gap of more than two minutes between two turns counts as idle, so no label is added and the timer resets. Each label is priced on the model of its own agent, at today's public prices, which gives three scenarios: every label at the full input price, as the worst case for before 2.1.311; every label at the cache-read price, for since 2.1.311; and Haiku 5.5 with its own cache, for the smaller-model mode that was announced.

Two things make this an upper bound. Every subagent in my logs counts as a background agent, which isn't true of all of them, and the "before" scenario assumes that every label missed the cache, which Anthropic described as the most expensive case, not the usual one. The script reads token counts, model names and timestamps only, never the message text.

## The numbers

From 1 August to 29 October I ran 5,360 subagents, of which 4,760 ran long enough to trigger at least one label, for 48,486 simulated label calls in total. At API prices the main conversations cost $3,889 and the subagents' own work $3,653, so $7,542 for everything that is actually in the logs.

| Scenario | Label cost | Share of the total bill |
|---|---|---|
| Every label at full input price (worst case before 2.1.311) | $14,690 | 66% |
| Labels read the agent's cache (since 2.1.311) | $742 | 8.9% |
| Smaller model, Haiku 5.5 with its own cache | $284 | 3.6% |

![Simulated label cost on top of my real Claude Code cost, three scenarios](/images/articles/agent-status-labels/share_of_bill.png)

I don't read the 66% as a real figure. It's what the labels would have cost if none of them had ever hit the cache, and the real pre-fix number sits somewhere between that and the 8.9%. The 8.9% I trust more, because the cache-read case is the one that runs now, and it lands between Anthropic's 6% for terminal users and Flamerix's 16.4%, which is about where I'd expect to be: more background agents than the average user, fewer than a team that runs them all day.

The split by run time is the more useful view, since the cost of the labels grows with the length of the history they resend. An agent that works for a minute sends a short transcript a couple of times, while one that works for half an hour sends a long transcript sixty times.

| Agent run time | Agents | Labels as a share of the agent's own cost (since 2.1.311) |
|---|---|---|
| Under 2 min | 1,802 | 5.5% |
| 2 to 5 min | 1,762 | 11% |
| 5 to 15 min | 1,259 | 18% |
| 15 to 60 min | 481 | 25% |
| Over 1 hour | 56 | 28% |

My leads run for anything between 15 minutes and two hours (I only capped them at 35 minutes this week), so for the agents that do most of the work, the labels add a quarter or more on top at the cache-read price. In the worst-case scenario the same group came out at five times the agent's own cost.

Spread over the weeks, the same cost follows which model the agents ran on: a few dollars a week in August, when nearly everything ran on Sonnet, then over $100 a week from late September once most leads ran on Opus.

![Simulated weekly label cost at the cache-read price, stacked by the agent's model](/images/articles/agent-status-labels/weekly_by_model.png)

## What I take from it

The three published figures don't really contradict each other; they describe three ways of using the tool. Anthropic's 2% is the average over everyone who sends telemetry, and most of those people run one conversation in the foreground with a background agent now and then. Flamerix's 16.4% comes from a week where background agents on Opus did most of the work. Mine lands in between, and even that hides a spread: I run up to six subagents at once, the leads among them go for half an hour to two hours, and the short helpers barely register, so the labels add a quarter to the agents that do the real work and 5% to the rest. There is no single answer to what the labels cost, because the answer depends on how long your agents run, how many run at once and which model they're on, far more than on anything fixed in the harness.

That's also why I wouldn't have found this on my own. If I'd gone looking for the expensive part of my setup, I'd have started with the system prompt, the tool outputs and the size of my CLAUDE.md files, because those are the things I can see in the logs. The labels come from a UI timer, not from the agent's work, the calls don't appear in the files that cost tools read, and the cost depends on a cache setting that was fixed server-side without anything changing on my end. The only way to see your real number is to export telemetry and group the requests by query source, which is what Flamerix did.

I've updated past 2.1.311 and I'm not running the script. It finds the summary timer by matching text inside the timer's callback, so when an update changes that text the summaries come back and nothing tells you, which means checking it again after every release. It's also untested on Windows, and an upper bound of 8.9% isn't worth a fragile patch to me. The smaller-model mode is the thing to watch for.
