The fixed cost is the review round, not the pull request
ai
agents
autonomous-agents
unit-economics
code-review
ci-cd
pull-requests
datacrash
In the post on the price of one verified change one of the principles was that fixed overhead is a property of how work is cut: every change, however small, pays for a plan, a sandbox, a review and a CI run. This post puts numbers on that principle. They come from the merged pull requests on datacrash.io since mid-October, roughly 3,900 of them, and in more detail from the platform’s busiest repository over the 30 days to 28 November, about 2,100 merged changes.
The short version: the unit that costs money is not the pull request, it is the review round. A small pull request does get fewer rounds. Per line of change, it gets many more.
What a round is
On datacrash.io every new version of a pull request goes through the same chain, in series:
- CI runs the full set of checks on that version (a median of about 7 minutes, longer with a queue in front of it).
- Once CI is green, an automated review reads the change, which takes 2 to 3 minutes.
- If the review asks for changes, an agent run fixes the findings and pushes a new version.
- The new version starts at step 1 again.
The review itself is cheap: a few minutes and around ten cents of model time. What a round really costs is everything it sets in motion: a full CI run, a fix run, and the waiting in between. Over those 30 days, the agent runs that fixed review findings cost about a third as much as the feature work itself.
Most pull requests are small, most code is not
Lines here are added plus deleted, with generated files left out:
- pull requests under 50 changed lines are 27% of all pull requests and under 2% of all changed lines;
- under 200 lines, it is 56% of pull requests and 12% of lines.
So more than half of everything that goes through CI and review carries about an eighth of the code.
Rounds by size
The table counts every reviewed version of each pull request merged in those 30 days in that repository:
| Size (changed lines) | Mean review rounds | Three or more rounds | Rounds per 1,000 lines |
|---|---|---|---|
| under 50 | 1.1 | 2% | 46 |
| 50 to 199 | 1.4 | 10% | 12 |
| 200 to 599 | 2.0 | 22% | 6 |
| 600 to 1,499 | 3.9 | 61% | 5 |
Read per pull request, small is better: a tiny change almost always goes through in one round. Read per amount of change, it is the opposite. The same thousand lines delivered as tiny pull requests cost about eight times as many rounds as the same lines in medium-sized ones, and each of those rounds is a full CI run and a review.
CI shows the same shape. Its time per pull request grows much more slowly than the size of the change, so per thousand changed lines, tiny pull requests use about five times the CI runner time of medium ones, and those between 50 and 199 lines almost twice as much.
The agent cost per line is a different story, and it is worth being precise about it. It is about two cents per changed line for tiny and small pull requests and a little over one cent for medium ones: less than a factor of two, against eight for review rounds. It only drops clearly for large changes. The case for bigger pull requests is not that agents write cheaper code in big batches. It is that every round has a fixed price, and the rounds don’t shrink with the change.
Why work gets cut small
Small pull requests are not an accident. Two things push towards them, and both are reasonable on their own:
- Bounded runs. An agent run has a budget of time and tokens, so planning splits a large card into phases that each fit in one run. That keeps every run predictable and every diff readable.
- Many small cards. A lot of real work arrives as small, separate tasks: a fix here, a follow-up there.
What phasing does not do is make each pull request smaller in a useful way. Cards that end up as several pull requests are the large ones, and per line of change they don’t pay more review rounds than cards delivered in one. The extra cost sits in the thin slices: the fixed price of a round, paid on a change too small to be worth it.
The rule that follows
Cut work by what is worth one review, not by what fits one step of a plan. Related work belongs in one card, and a card’s small pieces belong in one pull request, unless a part is independently risky or needs a different reviewer.
datacrash.io already shows this per repository: what a pull request costs by size, what the smallest ones cost no matter what they change, and how many review rounds pull requests need. Review is built to converge, with a cap on automatic rounds per pull request, so a change can’t circle forever. The numbers above are what that view is for: to tell when work is arriving in slices too thin to be economical, and to change how it is planned.
If you’re building or investing in this space, or want to see what these numbers look like on your own repositories, write to me at 3h4x@datacrash.io.