The review tax: a third of our Claude usage went to checking our own work
We sorted a week of agent-written pull requests by what each token was for. Writing the code was the cheap part. Reviewing it, and paying for the rounds a review missed, was where the bill lived. The arithmetic, and the four levers that actually moved it.
The short version
I expected the expensive part of an agent-written pull request to be the writing. When we sorted one week of usage by purpose, the writing turned out to be the bargain. About a third of all our Claude usage went to automated code review: roughly 350 /code-review runs, each one fanning out into several Opus subagents. Close behind it sat the review round. A finding caught after a PR opens buys another push, another CI run, another review, and another agent turn with the entire diff reloaded into context.
The levers that moved the bill:
- Review once, at the right depth. One review per PR,
mediumby default,highonly for auth, billing, migrations and secrets. - Put the checks in the prompt, before the code exists. A checklist the agent reads first gets cached. The finding it prevents would have cost a round.
- Right-size the narrow jobs. Our Slack bot moved from Opus to Haiku, with an eval proving it still passed.
- Keep the cache warm on purpose. One product now holds its prompt cache for a day, so a customer's second question doesn't pay full price for the same context.
Where the tokens were hiding
Most teams have the same first month with agents. A feature appears in four minutes, someone whistles, and then the invoice arrives. Everyone's eyes go straight to generation: the big model, the long session, the agent that opened eleven files to change one line.
For us that was the wrong drawer to search. Our path from idea to merge goes like this. An agent writes the change, an automated /code-review pass reads it, the PR opens, CI runs, and Greptile reviews it. Anything Greptile flags gets fixed and pushed again.
Sorted by what each session was for, the writing came out as a modest slice. Review was the elephant on the spreadsheet. Every /code-review run spins up several Opus subagents, and each of them reads the diff, the neighbouring files and the house conventions. Do that 350 times in a week and you have quietly hired a second engineering team whose whole job is rereading the first one's work, billed at Opus rates.
None of that was waste in the cynical sense. Review finds real bugs. The trouble was the habit around it. We ran it like a linter: after every fix, by reflex, at whatever depth was nearest to hand. A linter is close to free. A squad of frontier-model reviewers is not, and it doesn't get cheaper because you invoked it casually.
Price the round, not the fix
This is the bit that rearranged my mental model.
Say a reviewer flags something on an open PR and the fix is three lines. Those three lines are not what you pay for. You pay for the round they set off:
- An agent turn that reloads the PR, the finding and the relevant files into context.
- A push, which cancels and re-queues CI.
- A fresh review of the new head.
- Quite often, a fresh finding inside the fix. Of the 20 PRs we tracked that needed a second round, 7 drew new findings from the fix itself, which bought them a third.
So a finding's cost has almost nothing to do with its size and everything to do with the cycle it triggers. A one-character typo caught after the PR opens can outspend a thoughtful refactor done right the first time. The only finding that is truly cheap is the one the agent never produced.
Which is why our largest saving didn't come from a cheaper model. It came from a document.
The cheapest reviewer works before the code exists
We gathered every first-pass finding Greptile raised over a month, 1,299 of them, and sorted them by theme. Edge cases in the changed logic made up about 45% on their own. Behind them came counting mistakes, side doors to the same data, races between two reads, and failure paths that told the user something untrue. We wrote the lot down as a skill the agent loads before it writes code that will become a PR. (The cycle-time post covers how the list is built and kept current. Here I only care about what it costs.)
In token terms the trade is lopsided. The checklist runs to roughly twenty thousand tokens, which sounds like a lot until you notice what happens to it. Loaded at the start of a session, it gets cached and re-read at the cache rate on every turn after that. On the other side of the scale sits a round: an agent turn with the whole PR in context, a CI run, and a review. One avoided round pays for the checklist many times over, and the checklist keeps working on the next PR and the one after.
Review itself got the same treatment. The reflexive /code-review after every change is gone. Now:
- The agent first answers three questions about the diff in writing, covering side doors, what can change between two steps, and what happens on cancel, failure or timeout. Those covered about two-thirds of real first-pass findings, and they were precisely the ones a
mediumreview alone kept missing. - Then
/code-reviewruns once per PR, atmedium, or athighonly when the diff touches auth, billing, migrations or secrets. - It never runs again on a fix. The fix gets the same three questions instead.
The cheap thinking happens inside a session that already has the context paid for. The expensive fan-out happens once.
Shrink the model where the job is narrow
Not every call needs the biggest model, and the calls that don't are usually the dull, repetitive ones nobody ever opens up to inspect.
Our Slack "Ask the bot" feature reads a few small tool results and writes a few lines back. It ran on Opus for the most ordinary reason there is: Opus was the default. We moved it to Claude Haiku 5.5, and the method matters more than the move. Haiku had to pass the same real-model evaluation suite the Opus version passed, graded by judges that stayed on Opus, and we fixed the prompt wherever it slipped. Asked for a table, Haiku produced a Markdown table, which Slack doesn't render. Asked about regular users, it named them but forgot to say how many there were. Both were prompt problems, and both got prompt fixes.
My rule from this one: downgrade with an eval, never on vibes. A smaller model with a test suite behind it is a saving. Without the suite, it's a quality regression on a timer, and the timer goes off when a customer notices.
Decide how long the cache lives
Prompt caching is about as close to found money as this work gets, and plenty of teams leave it to luck. A cached read costs a fraction of a fresh one, but the default lifetime is short. If the user's next question lands after it lapses, you pay full price to load the same company context all over again.
In one of our products, customers ask about their own business: the same wiki, the same company data, in bursts scattered through a day. So the cache lifetime became a deliberate choice, and we now keep each answer's prompt cache for a day. A company's next question usually finds it still warm. Two details keep that honest. We retry only when the provider refuses the longer cache, falling back instead of failing. And each call is priced from what was actually sent, not from what we hoped would hit the cache, because otherwise the cost report flatters you.
A ledger of its own
The last line item is sneakier. When a PR needs another round after the session that opened it has moved on, a background babysitter picks it up and runs the fix. That runs on a separate Claude account with its own token, never on an engineer's own login. The side effect turned out to be the useful part: automated fix rounds land in their own ledger instead of dissolving into somebody's personal usage, and when that ledger starts to swell, it tells us first-pass quality slipped before anyone has to say so out loud.
That generalises. You can't manage tokens you can't attribute. "We spent X on Claude this month" is a finance fact. "A third of it was review, and the rounds after review came next" is an engineering fact, and only that one tells you which lever to pull. (If you want the longer argument, it's in what TokenOps is.)
Six things to try on your own bill
- Split usage by purpose, not by person. Writing, reviewing, fixing after review, background jobs. Expect the ratio to surprise you.
- Count rounds per PR. Every round past the first is a full cycle of tokens. Push that count toward zero and the bill follows it down.
- Write down your reviewer's greatest hits. Whatever your automated reviewer keeps flagging belongs in a checklist the agent reads before it writes.
- Review once, at the right depth. Save the expensive pass for the risky diffs.
- Downgrade narrow jobs with an eval. Keep the big model for judging and for the genuinely hard thinking.
- Set cache lifetimes on purpose wherever your users come back in bursts.
I went looking for a way to spend less on AI and found something more useful: a map of where the money was doing work and where it was just rereading. Writing was the bargain. Rereading was the tax.
Frequently asked questions
How much of a team's Claude usage can code review consume?
In our case, about a third. In the week of November 17, 2026 we ran roughly 350 automated /code-review passes, each of which starts several Opus subagents, and together they accounted for about a third of all our Claude usage. Your share depends on how often reviews run and on which model, but review is rarely the small line item people assume it is.Is it cheaper to review agent-written code with a smaller model?
Sometimes, but frequency is the bigger lever. A review that runs once per PR at the right effort level costs far less than one that runs after every fix, whatever model it uses. Keep the strongest model for the checks that are genuinely hard, and move narrow, well-specified jobs (a Slack bot reading a few tool results, say) to a smaller model, with an eval to prove it still passes.What is a review round, in token terms?
Each time a reviewer finds something after a PR is opened, the fix becomes a new push. That push re-runs CI, gets reviewed again, and usually triggers another agent turn with the whole PR loaded back into context. So one missed finding costs a full cycle of tokens, not just the few lines of the fix.