Measurements
What unattended Claude Code costs per merged PR
Published · 7 min read· Anton Shubin

In short
- Over 859 merged PRs (6 Nov to 1 Dec 2026), unattended Claude Code on Opus 5.5 cost a median $5.59 per PR at API list prices; 90% cost under $14.76.
- Size and review rounds move the cost: one needs-fix verdict from the reviewer agent nearly doubles the median, from $4.19 to $8.00.
- Runs on issues that merged nothing cost another $385.55, 5.7% of all lead-run spend, which makes $7.88 per merged PR fully loaded.
- A Claude subscription paid for the runs, so these are API-equivalent prices. The raw data is a CSV you can download.
Unattended Claude Code cost me a median of $5.59 per merged pull request at API list prices, measured over 859 merged PRs from 6 November to 1 December 2026, all on Opus 5.5. Nine in ten cost under $14.76, the cheapest $0.56 and the worst $65.29. Two things moved the price: how big the change was, and how many times the reviewer agent sent the work back.
That is $6,383 of list-price work in under four weeks, which sounds like a lot until you divide it by 859. Then it sounds like a sandwich per PR. A nice sandwich, with the good cheese.
What does one merged PR cost?
| Measure | Cost per merged PR |
|---|---|
| Median | $5.59 |
| 90th percentile | $14.76 |
| Mean | $7.43 |
| Cheapest | $0.56 |
| Most expensive | $65.29 |
| All 859 PRs, together | $6,383 |
The mean sits above the median because of a long tail: a handful of PRs cost five to ten times the typical one. Here is the whole spread.
How are the costs spread?
| Cost per merged PR | Merged PRs |
|---|---|
| Under $1 | 22 |
| $1 to $2 | 100 |
| $2 to $5 | 270 |
| $5 to $10 | 254 |
| $10 to $20 | 172 |
| $20 to $50 | 40 |
| $50 or more | 1 |
So "most PRs cost under $10" holds: 646 of 859, or 75%. "Most cost under $5" does not: 392, or 46%. Test your own favourite claim below. The chart counts the same CSV the tables come from.
Interactive
What one merged PR cost
Pick the review rounds, then move the line.
| Under $1 | 22 | |
|---|---|---|
| $1 to $2 | 100 | |
| $2 to $5 | 270 | |
| $5 to $10 | 254 | |
| $10 to $20 | 172 | |
| $20 to $50 | 40 | |
| $50 or more | 1 |
646 of 859 merged PRs (75%) cost under $10.
The median merged PR also took 30.7 minutes of run time. I spent none of those minutes looking at it, which was the whole idea.
How did I count?
The setup. Issuemill runs Claude Code headless on my own machine. Plain code picks the next GitHub issue from 11 of my projects and starts one lead run on it: a top-level Claude Code session that reads the issue, spawns subagents (an implementer, a reviewer, a design reviewer) and opens a PR. Code merges the PR when CI is green and the reviewer agent passed it. The longer story of that loop is in Running Claude Code unattended on GitHub issues.
The cost of a run is the total_cost_usd that Claude Code itself reports at the end of a
headless run, which covers the run and all its subagents. It is priced at API list prices. As a
cross-check I priced every API call in the run transcripts with Anthropic's list price for Opus 5.5
($4 per million input tokens, $20 per million output tokens, $0.20 per million cache hits,
Anthropic's pricing page, checked
2026-12-01). The two totals agree within 1%.
From runs to PRs. I added up every lead run on an issue, including the ones that failed, timed out or parked to wait for me, and split that total evenly over the PRs the issue merged. A PR that closed several issues gets a share from each. A PR counts only if GitHub says it merged.
The model and versions. Every lead run and every subagent ran Claude Opus 5.5. Across all my Claude Code transcripts since 6 November, Opus 5.5 made 270,367 of 276,269 API calls, and Haiku and Sonnet together came to $7.32 of $13,853 priced. I did not pin a Claude Code version: the transcripts of the period show 2.1.299 through 2.1.331.
The period. PRs merged from 6 November 11:45 UTC to 1 December 07:00 UTC 2026. I rebuilt the engine in the middle of it (the new one took over on 19 November), and both engines' runs are in.
The raw data. One row per merged PR: cost, review rounds, model, merge date and run minutes. Download the CSV. It rounds each cost to the cent, so a PR sitting right on a bucket edge can land one bucket over from my unrounded query; every table in this post is counted from the CSV, so you get the numbers I print.
I will measure this again once the data has grown. If you want that next measurement, the email list on this page sends it.
Do review rounds change the cost?
A lot. The CSV's fix_rounds column counts how many times the code reviewer agent answered
"needs-fix" on the PR's issue. It counts per issue, so an issue that merged two PRs gives both the
same number.
| Needs-fix verdicts on the issue | Merged PRs | Median | Mean | 90th percentile |
|---|---|---|---|---|
| 0 | 488 | $4.19 | $5.44 | $11.39 |
| 1 | 244 | $8.00 | $9.42 | $17.76 |
| 2 | 87 | $8.33 | $10.39 | $18.90 |
| 3 or more | 40 | $10.69 | $13.19 | $22.96 |
One "needs-fix" almost doubles the median. A second one barely moves it, which surprised me: I expected every round to cost about as much as the first. My guess is that the first verdict catches the big misunderstanding, and the later ones are small fixes on top. What the reviewer checks is on the reviewer page.
Does the size of the change matter?
Size moves it even more, as you would expect. From GitHub's line counts (added plus deleted):
| Lines changed | Merged PRs | Median |
|---|---|---|
| Fewer than 100 | 289 | $2.40 |
| 100 to 499 | 290 | $5.06 |
| 500 to 1,999 | 217 | $10.38 |
| 2,000 or more | 63 | $15.10 |
Line counts are not in the CSV; the review rounds are. The two are tangled anyway: a big change gives the reviewer more to send back.
What do runs that merged nothing add?
$385.55. That is what lead runs cost on issues that had merged no PR by 1 December. It is 5.7% of the $6,769 all lead runs cost.
Those dollars are not spread over the 859 PRs above. For the fully loaded number, divide $6,769 by 859: $7.88 per merged PR. Failed and parked runs on issues that did merge are already inside the per-PR cost.
Planning runs and read-only runs are in neither figure, because they do no lead work on an issue.
Which PRs cost the most, and why?
| Cost | Run minutes | Needs-fix verdicts on the issue |
|---|---|---|
| $65.29 | 347 | 1 |
| $45.16 | 125 | 4 |
| $45.08 | 254 | 1 |
| $40.96 | 216 | 2 |
| $37.17 | 186 | 5 |
All five are in private repositories, so I describe them by numbers only. The top three changed 7,983, 3,418 and 11,059 lines, and each issue took three to five runs. The pattern is plain: thousands of lines, several runs on one issue and long sessions. My guess at the mechanism: a run that parks hands off to the next one, and the next one has to read its way back into a big change, so an issue that needs five runs pays for some of that reading five times.
The most expensive public one is spy4x/seed#1047: an import screen with its admin module and website pages, +5,410 lines, 4 runs, 110 minutes, no needs-fix verdict, $34.45. One feature across three apps, tests included, while I slept. I would pay that again before my morning coffee is even cold.
The lesson I took: an issue that will touch thousands of lines gets split before a run starts. Splitting is cheap. The fifth run on a giant issue is not.
What did I actually pay?
Not $6,383. A Claude subscription paid for the runs, with Claude Code signed in to two Claude accounts, so every dollar in this post is what the same work would cost at API list prices. My records do not hold which plan each account was on for the whole period, so I will not put a real-money number per PR here. It would be a guess, and this post has enough numbers without an invented one.
What I can point to is the public price list. Today Max costs $100 a month and Ultra $200 a month (claude.com/pricing, checked 2026-12-01). Plans also have a weekly quota, so a subscription does not buy unlimited list-price work; how I spread runs across the week is on the limits page.
What do these numbers not show?
- Quality. A merged PR passed CI and the reviewer agent. This data does not say how many of those PRs I later reverted or rewrote. What the reviewer caught, and what I can and can't say about what it missed, is in An AI reviewer as my merge gate.
- My time. I answered the questions runs parked on and read what merged. None of that is priced here.
- Exact fix rounds per PR. The
fix_roundscolumn counts needs-fix verdicts per issue. An issue that merged three PRs gives all three the same count and the same split cost, which is why some rows in the CSV look like twins. - Which subagent spent what. The cost is per lead run. I cannot say how much went to the implementer and how much to the reviewer.
- Your codebase. This is 11 projects of one person, almost four weeks, one model. A PR here is often small: a third of them changed fewer than 100 lines. Your median could be half of mine or double it.
- Another model. Every run was Opus 5.5. A cheaper model might cost less per call and more per merge, if the reviewer sends its work back more often. I have not measured that, and I would like to know before you do.


