Priberry research · Finding · November 2026

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

Re-reading cached context
97.5%
Writing new context to the cache
1.6%
Input outside the cache
0.5%
Output (thinking included)
0.4%

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.

Re-reading cached context
49.8%
Writing new context to the cache
25.8%
Input outside the cache
5.3%
Output (thinking included)
19.2%

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:

Launch Blockers
the leaks AI-built apps ship, checked in your codenpx launch-blockers check
Rolelock
users who can raise their own role, checked in your supabase/ foldernpx rolelock@0.1.1 ./my-app
Greenlit
what a stranger can see in your live appnpx greenlitlab
Crumple
a crash-test lab for AI coding agentsnpx crumplelab attack
Tare
where your coding agent's tokens gonpx tarelab
MarkOS
an AI exec team on your own computermarkos.priberry.com

How we did it

More studies: priberry.com/research · Launch Blockers, Rolelock, Greenlit, Crumple, Tare and MarkOS (priberry.com/#tools)