Field notes

Field notes, 1 of 5

Where $211 of tokens went

Five small stories, built by an AI coding agent, used $211 of tokens at API list prices. One of them, retiring some old tests, used $115.

I didn’t pay $211. I work on a subscription. My coding agent reports token use per session, which is useful. What it can’t tell me is what a story takes, or a point of work. On a subscription that matters as capacity: the week’s allotment runs out early, work stops until it resets, or overage arrives that nobody planned for.

The question

What does it take, in tokens, to get AI-written code from a prototype to shipped, and where is that spend worth it?

The code has always been reviewed. Until this month my workflow ended at “developer-ready”: a working prototype, handed over. I have since extended it through compliance, security, code review and QA, to shipped. Each of those steps runs as a separate reviewer agent. I wanted to know what the second half of that journey takes.

How I counted

  • One Build: five stories, 11 points, cut one evening and merged the next morning.
  • Every API response from the main session and from every agent it started, counted once.
  • Counted from the moment the Build’s branch was cut to the moment it merged: 2,287 calls.
  • Priced at the provider’s published API list rates. List price is not what I paid. It is the one yardstick that is the same for everyone, and it is what the same work costs on metered billing.

Where it went

Where $211 of tokens went: 12 builder agents on one story $92, 20 reviewer agents $58, the session re-reading its own conversation $42, everything else $19

PartTokens used, at list pricesShare
12 builder agents on one story$9244%
20 reviewer agents$5827%
The session re-reading its own conversation$4220%
Everything else$199%

Three things stood out.

  • One story took more than half. A 3-point story, retiring old tests, was split by the agent across 12 builder agents. With its reviewers, that story used $115. I had not asked for the split.
  • Every agent started heavy. The session’s first call carried about 118,000 tokens before it had done anything. Each reviewer started with about 96,000. Most of that was setup the reviewer never used.
  • The session kept re-reading itself. Its conversation grew to 965,000 tokens, and each new call reads what came before.

Review, the thing I set out to price, was one line of four. And I had never set the number of reviewers. The agent chose twenty.

What I had wrong

My first guess was the connected tools. I had eleven services connected to the agent, and their tool lists ride along on every call. Turning them off cut the session’s first call by about 15%, worth roughly $3 on a Build. Real, and nowhere near the problem.

Earlier in the month I had shipped five fixes aimed at the cost of a session. Cost per story did not move.

What changed

Three changes went after the overhead, not the review.

  • Reviewers start lean: about 10,000 tokens in place of 96,000.
  • The session compacts its conversation earlier, and now peaks near 270,000 tokens.
  • The session builds a story itself unless it is asked to split the work.

The next five Builds used $10 to $17 a story, against $42 on this one.

Limits

  • Seven Builds, one developer, one codebase. Most of those Builds were work on the measuring itself.
  • Dollar figures are list-price equivalents, not money paid.
  • I have not yet measured what matters most: whether automated review leaves the person who reviews next with less to catch.
  • The Builds run through DecisionGraph, the tool I use to take a story from spec to shipped.

The aim

The aim isn’t fewer tokens. It’s the balance between how much ships and how good it is. More tokens on review and rework are well used when they leave the person who reviews next with less to catch.

Next

How many reviewers does a story need?

Want this measured on your own team's work?