97.5% of our coding agent's tokens were re-reading, and 50% of the cost at API list prices
We added up every API call recorded in Claude Code's logs on one of our own machines from 28 October to 26 November 2026 (UTC): 107,597 calls in 354 sessions, 24.2 billion tokens. 97.5% of those tokens were context read back from the prompt cache. Output, the part the model writes, was 0.4%.
This is our own machine, totals only. Priberry makes Tare, an open-source tool that shows where a coding agent's tokens go.
Share of tokens
Share of cost, at API list prices
A token read from the cache costs far less than a new one, so the picture changes when each kind is priced. Re-reading is still the largest single part.
What to take from it
Each call in a long session sends the conversation so far again. The cache makes that cheaper per token, but the same context is counted on every later call until the session is compacted or ends. So whatever enters the context early, such as a long command output, is paid for repeatedly. These totals don't show how much of the re-reading could be avoided, and we make no claim about that here.
Check your own
npx tarelab
It runs on your machine and uploads nothing. Priberry makes six free, open-source tools:
the leaks AI-built apps ship, checked in your code
npx launch-blockers checkusers who can raise their own role, checked in your supabase/ folder
npx rolelock@0.1.1 ./my-appwhat a stranger can see in your live app
npx greenlitlaba crash-test lab for AI coding agents
npx crumplelab attackwhere your coding agent's tokens go
npx tarelaban AI exec team on your own computer
markos.priberry.comHow we did it
- A script read every Claude Code log file on the machine. The figures on this page use only token counts, model ids and dates. Each API message is counted once, even when resumed or copied sessions record it in several files. Where copies differ, we kept the one with the most output tokens.
- A second parser, written separately and sharing no code with the first, recounted the totals. Calls, input, cache-write, cache-read and output tokens matched exactly. A third script, with its own price table, recounted the cost for the same window and matched to the dollar.
- Costs are API-equivalent: each call priced with Tare 0.2.4's table of Anthropic list prices, as published on 27 November 2026. It is not a bill; a subscription costs a flat fee.
- This is not a sample. It is one machine, one team and one agent, over 30 days of heavy use. Short sessions, other agents or other working habits can give very different shares. Calls the agent doesn't record in its logs aren't counted.
- No prompt, code, file name, project name or session id is stored or shown.
More studies: priberry.com/research · Launch Blockers, Rolelock, Greenlit, Crumple, Tare and MarkOS (priberry.com/#tools)