Five narrow reviewers beat one broad reviewer

I spent a few weeks building an automated code reviewer that reads a pull request and leaves inline comments. It worked. It was also not good enough to leave switched on, and the reason was not what I assumed.

The first version was one model, one pass, one long prompt. That prompt asked it to check correctness, then security and data handling, then API and schema compatibility, then anything that would go wrong during rollout, then whether the tests actually pin the behaviour the change claims to add. A sensible checklist. I wrote it the way I would brief a careful human reviewer.

I graded it against a benchmark of real pull requests we had already merged, each one annotated with the defects that a human reviewer or a later bug fix had turned up. A separate model judges whether a given finding is useful to the author. Against that benchmark, the single reviewer produced 3.4 findings per pull request and recovered 24% of the known defects. Of the things it did say, 90% were judged useful.

That combination is the whole story. Nearly everything it said was worth saying, and it said very little. It stopped early.

Two knobs, and neither one was enough

My first hypothesis was that the model needed more room to think, or better instructions about where to look. Both are the normal levers, so I pulled both.

Telling it to explore more of the diff before committing to findings made recall worse, where recall is the share of the benchmark's known defects that the review actually caught. I still do not have a fully satisfying account of why. The reviews that came back read like the model had spent its attention on a tour of the code and then summarised the tour.

Raising reasoning effort helped, and bought about six points of recall. That is real, but not the kind of jump that turns an advisory toy into something a team would leave running.

What made me stop tuning was the budget. I had set a cost ceiling per pull request, expecting to bump against it. A single pass was spending roughly 8% of it. There was an enormous amount of unspent headroom and no obvious way to convert money into recall by making one pass smarter.

That is when the shape of the problem changed for me. A ceiling that does not respond to instructions, and does not respond much to thinking harder, is probably not a prompt problem. The model was not failing to find the security issue because it could not see it. It was finding three good things, deciding it had done a review, and writing the review.

Splitting the checklist instead of rewriting it

Running several reviewers in parallel was on the plan, but late. The sequencing was to ship a single-pass advisory version first, watch it in the wild, then look at multi-agent work in a later phase. I built a split version early only as a probe, to find out how much was on the table before committing to the order.

On the small set of pull requests I had graded at that point, the probe recovered 36% of the known defects against 14% for the single pass. That gap made the plan indefensible. You cannot ship the version you know is less than half as good because it happened to be scheduled first. The split moved onto the critical path that afternoon.

Here is the measurement on the fuller benchmark, once that was properly built rather than probed:

Findings per PRRecallUseful
One general reviewer3.424%90%
Five specialists8.038%89%

The usefulness number is the one I care about. The standard objection to panels of agents is that you get five shallow general reviews and a pile of noise. If that were happening, the useful share would have collapsed as volume rose. It moved by one point.

The design detail that I think does the work is that the five briefs carve up the original checklist instead of overlapping. They are correctness, security and data safety, contracts and downstream impact, operations and rollout, and tests and intent. Every item the single prompt asked for lives in exactly one brief, and no brief invents new territory. If the panel has a gap, the single prompt had the same gap.

Each brief ends by naming what to leave alone and saying plainly that another reviewer covers it. Without that clause you get exactly the failure everyone predicts, five copies of the same generic review. The security reviewer has to be told not to mention the off-by-one, and told that someone else will.

They run concurrently and none of them sees another's output. That is partly for latency and partly because a reviewer who reads a peer's findings starts agreeing with them.

Five is affordable because the expensive part of the input is the same for all of them. The diff and the surrounding context get assembled once and handed to every specialist, and five passes together still land inside the per-pull-request ceiling that one pass was using 8% of.

Three findings, one bug

Tripling the findings broke two things that had never needed a bound. Duplicates were the first.

I expected duplicates and I expected them to be easy. Two reviewers spot the same bug, they both cite the same line, you keep one. That is not what duplicates look like.

Specialists approach one defect from different angles and each lands on whichever line it considers the culprit. In one real review, a single string truncation bug produced three separate findings, on lines 66, 67 and 68. An unhandled error path produced two more, on lines 212 and 214. Five of the comments the author would have seen were two problems. Matching on identical line numbers caught none of it.

The rule that worked is fuzzy on both axes. Two findings merge when they are in the same file and either sit on the same line, or sit within 12 lines of each other and use similar words. For the similarity I strip the common words like "the" and "is", then take the Jaccard score of the content words that remain, which is the number of words the two findings share divided by the number of distinct words across both. A score of 0.3 is the threshold.

function isDuplicate(finding, other) {
  if (finding.file !== other.file) {
    return false;
  }
  if (finding.line === other.line) {
    return true;
  }
  if (Math.abs(finding.line - other.line) > 12) {
    return false;
  }
  return jaccard(contentWords(finding.text), contentWords(other.text)) >= 0.3;
}

The merged finding keeps the higher of the two severities and the first phrasing. Keeping the higher severity matters because the reviewer that understood the bug best is often not the one that filed it first.

Twenty-five useful comments is not a review

The second thing that broke was volume, and it broke in a way the grader could not see.

On a 56-file pull request the panel produced 25 findings. The grader judged all 25 useful. That is a perfect score and a bad review. Nobody opens a pull request, sees 25 inline comments, and works through them. They skim, fix the two that look cheap, and stop trusting the tool.

I went looking for the honest ceiling and found it in our own history. Human reviews on these repositories averaged five findings and topped out at fourteen. The human review on that same 56-file pull request left 14 comments.

So the cap is ten. Findings are ranked by severity first, then taken one per file in rotation, so a single densely-commented file cannot eat the whole budget while fifty other files go unmentioned.

Truncation is never silent. When findings are held back the review says how many and at what severity. An author who sees ten comments and no note will reasonably conclude that ten was everything, and that conclusion is worse than seeing a smaller number honestly labelled.

The $3.02 pull request

Cost came unbounded at the same time, for the same reason. Every file now gets read five ways. Across a 32-pull-request run, four exceeded a dollar and the worst came in at $3.02.

I assumed the expensive part was the five specialists. It was not. It was the verification step that runs after them, which re-checks each claim against the code before it becomes a comment. That step was sending every file's diff along with every finding. A pull request with 28 findings therefore paid for 28 copies of the entire diff.

Narrowing the verification evidence to only the file the claim is about cut verification from around 0.9 of the tokens a review spends to around 0.2.

The other half of the fix was already built. Verification is priced per finding, so capping findings at ten is the main cost lever as well as the main readability lever. One change bounded both problems.

The remaining guard is a cost estimate that runs before the panel starts. Nothing watches spending as the review runs and aborts halfway, because the specialists all start at once. By the time a running total exists to watch, the money is already committed.

Where the panel is still worse

There is one case where five reviewers are measurably worse than one, and I have not fixed it.

On low-signal pull requests the panel amplifies false positives. A 33-file cleanup change with one real defect in it dropped to a 29-33% useful rate, against 50-67% for the single pass on the same change. Five reviewers each hunting in their own territory will each find something to say, and when there is almost nothing there, what they find is noise.

The obvious remedy is to tell every specialist that returning no findings is a perfectly good outcome. I tried it, measured it, and it made things worse. Reviewers that are given permission to stay quiet stay quiet about real defects too, and recall fell across the benchmark to buy a useful-rate gain that showed up only in the cleanup cases. I rolled it back.

My current guess is that the answer lives in routing rather than in the prompt, deciding from the shape of a change whether it deserves a panel or a single reviewer. I have not built that yet.

What I would keep from all of this is the diagnostic rather than the architecture. When a model plateaus and neither instruction nor reasoning effort moves it, stop asking how to make the pass better. Ask what job the pass thinks it has finished, and whether that job is five jobs under one prompt.