One prompt to our Claude Code agent ran for 23 hours and used 3,567,236,645 tokens. Subagents used 90% of them, and 97% of all of it was cache reads. What surprised us was where the subagent share went: 22 long-lived teammates used 73% of it, and 61 short review subagents used 3.4%.
The ledger behind the number
Our agent repo keeps a ledger of token use per owner prompt. A script reads the session transcripts Claude Code already writes, splits each session at the owner's prompts, and adds up the usage fields of every response until the next prompt. Responses from subagents go into a separate column and are assigned to the turn whose time window they fall in. Each row holds the number of responses and the input, cache-write, cache-read and output tokens, for the main thread and for subagents.
The ledger holds 596 turns from 104 sessions, started between 2026-08-22 and 2026-11-10, and 39.6 billion tokens in total. The median turn used 4.9 million tokens. Ten turns passed one billion. The largest one started at 14:40 UTC on 2026-11-03 with a short go-ahead prompt from the owner and ended at 13:57 UTC the next day. That session ran on Claude Code 2.1.317, mostly on Opus 5.5.
Two limits are worth saying before the numbers. First, "tokens" here is the plain sum of four counters as the API reports them. A cache-read token and an output token each count as one, although on Opus 5.5 they are priced 100 times apart. Second, a turn that runs for 23 hours includes long stretches where agents wait on each other. The ledger counts responses, not useful work.
Three turns, the same shape
The next two turns in the ledger look the same, only smaller.
| Turn start (UTC) | Total tokens | Subagent share | Subagents started | Main responses | Subagent responses | Cache reads |
|---|---|---|---|---|---|---|
| 2026-11-03 | 3,567,236,645 | 90.0% | 146 | 1,324 | 14,616 | 96.9% |
| 2026-11-10 | 2,056,001,179 | 86.1% | 68 | 1,136 | 7,991 | 97.2% |
| 2026-10-27 | 1,501,571,356 | 91.2% | 30 | 529 | 5,964 | 98.2% |
These three turns alone are 18% of every token in the ledger.
The average subagent response carried 219,717 tokens in the first turn, 221,531 in the second and 229,535 in the third. That is mostly context being read again. Each response sends the whole conversation so far, and almost all of it comes back from the prompt cache. The cost page of the Claude Code docs puts it in one line: Claude Code "re-reads that history at the cached token rate".
So the first answer to where 3.57 billion tokens went is a boring one: into reading the same context again, thousands of times, in subagents. The useful question is which subagents.
Who spent it: teammates, not launches
The ledger stops at "subagent". To split it further, we went back to the transcripts of the three turns. Each subagent has its own transcript file in the session's folder, with a small metadata file that records what kind of agent it was. We counted the subagent files that started inside each turn and summed their usage. For the 2026-11-03 turn that is 146 files. Our recount comes out 0.3% above the ledger because it removes duplicate responses per file rather than per session, so the split below uses the recount.
| Turn start (UTC) | Teammates | Teammates' share of subagent tokens | Review subagents | Reviewers' share |
|---|---|---|---|---|
| 2026-11-03 | 22 | 73% | 61 | 3.4% |
| 2026-11-10 | 14 | 76% | 24 | 2.5% |
| 2026-10-27 | 23 | 88% | 2 | 0.5% |
Teammates are members of a Claude Code agent team: named agents that the main session keeps alive and messages again as new work arrives, and that can message each other. Most of ours owned one area of the run, such as incident triage, weekly measurement, documentation or a retrospective; a few were reviewers kept alive across several rounds of fixes. Review subagents are the opposite: each one is started for a single independent check, writes its verdict and ends.
In the 2026-11-03 turn, the 22 teammates averaged 449 responses each. The 61 review subagents averaged 16. The largest teammate, the one on incident triage, made 1,232 responses and used 300,532,736 tokens on its own, close to the 355,852,258 the whole main thread used.
This is not the cost we had been watching. In August we measured what it costs to start one subagent, and the cleaner of two measurements came to 54,154 tokens (write-up here). At that rate, 146 starts are 7,906,484 tokens, 0.2% of the subagent total in this turn. Starting subagents was never the expensive part. Keeping them was. A teammate that stays alive grows its context, and every further response reads all of it again. The same cost page warns about this directly: "Token usage scales with the number of active teammates and how long each one runs." and "Each active teammate continues consuming tokens until it exits or the session ends."
What it would cost at list prices
We have no bill for this turn, and this section is not one. It is an estimate: the token counts from the transcripts, priced at the per-token API list prices on Anthropic's pricing page as fetched on 2026-11-11. The main thread ran on Opus 5.5. Of the subagent responses, 14,403 ran on Opus 5.5, 242 on Fable 5.1 and 64 on Sonnet 5.5.
Opus 5.5 is listed at $4 per million input tokens, $5 for a five-minute cache write, $8 for a one-hour cache write, $0.20 for a cache hit and $20 for output. One detail mattered more than we expected. The main thread's cache writes were all one-hour writes, at twice the input price. The subagents' cache writes were all five-minute writes, at 1.25 times.
At those prices the turn comes to about $1,523: $129 for the main thread and $1,395 for subagents. Cache reads are 96.9% of the tokens but 46% of the estimate. Cache writes are 2.7% of the tokens and 34% of the estimate. Output is 0.4% of the tokens and 20%. Counting tokens alone hides where the money goes. The subagents wrote 92 million tokens into the cache in this turn, and on Opus 5.5 each five-minute write costs 25 times a cache read. A subagent that reads a large file, or a teammate whose context grows after a break longer than the cache lifetime, pays for that write.
Fable 5.2 arrived with Claude Code 2.1.321, listed in the changelog at "$8/$40 per Mtok with $0.20/Mtok cache reads". Its cache-read price matches Opus 5.5, while input, cache writes and output cost twice as much. Priced at Fable 5.2 with the same token counts, this turn would come to about $2,292. Priced with every subagent response at Sonnet 5.5, it would come to about $811. Both repricings keep the token counts fixed, which a different model would not do. Anthropic's announcement says Fable 5.2 can finish challenging tasks "with fewer tokens than Fable 5.1", and a smaller model may need more responses for the same work. The repricings show what the price sheet does to this shape of workload, not what a switch would save.
What the numbers changed for us
The numbers did not tell us to stop using subagents. The 61 independent reviewers in the largest turn cost 3.4% of the subagent tokens, and they are the part of the run we trust most, because each one judges a single thing without the history of the conversation that produced it. Cutting them would save little and lose the independence.
They did tell us where to look. A teammate is cheap for its first few responses and expensive for its last few hundred, because each response re-reads everything before it. In the largest turn, a teammate response averaged about 237,000 tokens, while a fresh subagent starts at about 54,000. Once a teammate's area of work is finished, sending it the next unrelated task costs more than starting a new agent with a short handoff. The doc's advice to "Shut down teammates when their work is done" reads differently once you see one teammate at 300 million tokens.
Two things we have not changed. We still keep the ledger at the turn level, so a single 23-hour turn shows up as one row and has to be split by hand from the transcripts, as above. And we have not tried running teammates on a smaller model, which the cost page suggests first. The repricing above makes that tempting, but it holds the token counts fixed, and we would want our own measurement before believing it.
How to check this in your own logs
You do not need our ledger to find the same split. Claude Code writes each subagent's transcript as its own file inside the session's folder, next to a small metadata file. Summing the usage fields of the assistant messages in each file, removing duplicates by message id and request id, and grouping by the agent kind in the metadata gives the same table for any session you still have on disk. The transcripts are kept for a limited time, so if a turn surprised you, copy the numbers out before they are gone.
What is the largest single turn in your own logs, and how much of it went to subagents or teammates? Tell us in the comments below, along with how long the turn ran. We will compare each number with ours in the replies.


Top comments (0)