Writing ·

Drowning in agent PRs? Build less, test more, review what matters

TL;DR · Review overload

  • Not every PR needs a human. Sort PRs into a few review pro­files by what a bug would cost, and send only the risky ones to an engi­neer who knows that code. Anthrop­ic and Duck­bill report about twice as many merged PRs.
  • Not all code needs the same tests either. Use the same pro­files: stricter pro­files get stronger tests (prop­er­ty-based tests, fuzzing, for­mal meth­ods), and unit tests are enough only for glue code. Muta­tion test­ing tells you whether your tests are any good.
  • Build less. 28.5% of agent PRs nev­er merge. Only give engi­neer­ing tasks tied to rev­enue, a com­mit­ment or a con­crete risk, and cut scope instead of split­ting PRs.
  • Try it like a cus­tomer, and make mis­takes cheap to undo. For user-fac­ing PRs, a tester tries the change in its own tem­po­rary envi­ron­ment before it merges; fea­ture flags, canary releas­es and infra­struc­ture as code everywhere.

Agents gen­er­ate too much code and engi­neers spend too much time review­ing it. Sounds famil­iar? In this post I dive deep into the PR review bot­tle­neck prob­lem that so many are facing.

To start, we need to frame the prob­lem prop­er­ly. Review is not an iso­lat­ed process, but rather a part of the pipeline that brings an idea all the way to deployed soft­ware, and con­sists of three steps: decide, build, check (Fig­ure 1).

1 Decide

Tie each task to an outcome.

2 Build

The thinnest slice that deliv­ers it.

3 Check: the bottleneck

TestsUse the full toolset

ReviewEngi­neers only for high-risk PRs

QAUse it like a cus­tomer. Try to break it.

Fig­ure 1. The three steps that take an idea to deployed soft­ware, and how to set up each one.

Cod­ing agents have sub­stan­tial­ly increased the capac­i­ty of the build step, and as a con­se­quence, many got excit­ed and start­ed increas­ing the load at the input of the pipeline — let’s build every­thing! Pre­dictably, this moved the bot­tle­neck down to the third step.

What most are miss­ing is that adding review capac­i­ty (for exam­ple with an AI review­er) isn’t the only option: review is only one of three ways to check soft­ware before it ships. The oth­er two, tests and QA, are under-used in my expe­ri­ence, and they can take load off review.

The oth­er part of the solu­tion is to decrease the load on the first step, and approve a request to the engi­neer­ing team only if it is prov­ably attached to a busi­ness outcome.

This post is a deep dive on fail­ure mode 5, “review over­load”, from my free guide Why con­text engi­neer­ing isn’t enough. I’ll start by look­ing at data that helps us to define the prob­lem more pre­cise­ly, and then I’ll pro­vide my rec­om­men­da­tions on fix­ing this.

The 2026 review squeeze in data

Code vol­ume and PR size jumped, review capac­i­ty did­n’t, and a lot of the extra code was­n’t needed.

+51%diffs per devel­op­er at Meta, in one yearASE 2026

28.5%of agent PRs nev­er mergeMSR 2026

5×medi­an review timeFaros AI (ven­dor)

+242.7%inci­dents per PRFaros AI (ven­dor)

  • More code: at Meta, diffs per devel­op­er grew 51% in a year and lines per diff 105.9%, over 80% of it from cod­ing agents, while few­er diffs got reviewed with­in a day (ASE 2026).
  • Much of it isn’t need­ed: 28.5% of agent PRs nev­er merge (Ehsani et al., MSR 2026). Agents’ code is also thrown away more often, and soon­er: 7.3% of the func­tions they add are lat­er delet­ed, against 4.1% for humans, and half of those go with­in 3 days, against 34 (Pham & Ghaleb, MSR 2026). Even before agents, most ideas did­n’t pay off: only one third of those test­ed at Microsoft improved the met­ric they tar­get­ed (Kohavi et al., KDD 2013), and 10–20% suc­cess rates are the most com­mon across the indus­try (Kohavi et al., KDD 2024).
  • Reviews skipped, inci­dents up: as medi­an review time grew 5x, 31.3% more PRs merged with no review at all, and inci­dents per PR rose 242.7% (Faros AI, Apr 2026, ven­dor data).
  • Big­ger PRs, longer waits: medi­an PR size grew 122% in a year, and AI teams wait 105% longer for a first review (DX Q3 2026, ven­dor data).

The usu­al advice to make small­er PRs shrinks each PR, not the total. Split­ting the same change into small­er reviews saved no time and caught no extra bugs in a con­trolled exper­i­ment (di Biase et al., 2019), and each extra PR waits again for a reviewer.

What is the purpose of reviews?

Even before cod­ing agents, human review was a poor bug fil­ter. Of 570 review com­ments at Microsoft, only 14% were about defects (Bac­chel­li & Bird, ICSE 2013). At Mozil­la, 54% of reviewed, approved changes still intro­duced bugs (Kononenko et al., ICSME 2015).

What review fix­es instead is most­ly struc­ture: in two open-source projects, 75% of the changes made dur­ing review made the code eas­i­er to under­stand and change, and 25% fixed what it does (Beller et al., MSR 2014).

Human review pays off most­ly when the review­er knows the code. Stud­ies at Microsoft and on Qt and Open­Stack link famil­iar­i­ty with the code to bet­ter reviews: more use­ful com­ments and few­er bugs in pro­duc­tion (Bosu, Greil­er & Bird, MSR 2015, Thong­ta­nunam et al., ICSE 2016).

AI review­ers don’t fill that gap yet: 56.3% of CodeR­ab­bit’s sug­ges­tions that got a reply were reject­ed and only 36.4% accept­ed (though that appears to be increas­ing over time, and the data is some­what old) (Lin et al., 2026).

What tests actually catch

Unit tests catch about half the small bugs plant­ed in code: 45% for devel­op­ers’ tests across 135 Java projects, and 43% with LLM-writ­ten asser­tions (Molinel­li et al., ASE 2025).

Oth­er kinds of test catch more, or catch what unit tests can’t. Across 40 Python projects, each prop­er­ty-based test caught about 50 times as many plant­ed bugs as the aver­age unit test (Ravi & Coblenz, OOPSLA 2025). At AWS, mod­el check­ing found a DynamoDB bug that could lose data; its short­est trace took 35 steps, and it had passed unno­ticed through exten­sive design reviews, code reviews and test­ing (New­combe et al., CACM 2015).

When writ­ing tests, agents lean more on mocks: across 1.2 mil­lion com­mits they changed test files more often than humans (23% vs 13%), but 36% of their test com­mits added mocks, against 26% (Hora & Robbes, MSR 2026). Mocks are often need­ed, but the few­er a test uses, the more real code it checks.

What QA is actually good for

QA can catch bugs that reviews and tests miss, because it uses the final prod­uct the way a cus­tomer would, and tries to break it. Pass­ing tests don’t prove a change does what you want­ed: 29.6% of agent patch­es that passed SWE-bench Ver­i­fied’s tests in prac­tice behaved dif­fer­ent­ly from the human fix (Wang et al., 2026).

And a tester does­n’t need a script: peo­ple freely explor­ing an appli­ca­tion found as many defects in the same time as peo­ple fol­low­ing writ­ten test cas­es, with few­er false reports (Itko­nen et al., ESEM 2007), and in four lat­er exper­i­ments more (Afzal et al., EMSE 2015).

Yet US com­pa­nies are cut­ting QA: from 2023 to 2025, jobs for QA ana­lysts and testers fell 8% while devel­op­er jobs grew 2% (BLS).


My take on fixing the review bottleneck

The biggest waste of your senior engi­neers’ time is review­ing code nobody need­ed. Every task you feed to engi­neer­ing should tie to rev­enue, a cus­tomer or stake­hold­er com­mit­ment, or a con­crete risk being reduced. No out­come, no code. Then build the thinnest slice that deliv­ers it.

Cut scope, not PR size: split a PR only when it mix­es unre­lat­ed changes.

Review: decide what needs a human

Not all code costs the same when it breaks. So sort PRs into a few review pro­files, from strictest to loos­est. A pro­file is a risk lev­el: its actions decide which checks must pass, whether an agent reviews first, and who approves.

When you design the pro­files, decide which parts of the code go in which one. Weigh how bad a fail­ure there is, how much depends on that code, how eas­i­ly a change rolls back, and whether auto­mat­ic checks can tell if it’s right: the riski­er it looks, the stricter its pro­file. These come from FMEA, the fail­ure analy­sis used in the car indus­try (Bosch, 2012).

Then give each pro­file a def­i­n­i­tion: which PRs it applies to. Most­ly file paths (e.g. db/migrations/**) and how well the author knows that code, read from git his­to­ry. Option­al­ly, add yes-or-no ques­tions the paths can’t set­tle, like “does this PR add a mod­ule or change a pub­lic inter­face?”, and have an agent review­er answer them. By the way, if you set up what I describe in fail­ure mode 2 of my guide, an archi­tec­ture descrip­tion in the repo plus con­for­mance checks against it, a deter­min­is­tic check can answer that ques­tion, at least in part. I’ll go deep­er on this in a lat­er post.

In prac­tice, a script in CI match­es each PR to the strictest pro­file it fits and blocks the merge until that pro­file’s actions are done. The agent only answers the ques­tions and the script decides, so the agent can make a PR stricter, nev­er loos­er. AWS rec­om­mends the same split: the tier comes from what the change touch­es, and a deter­min­is­tic gate applies the pol­i­cy (Hawkins, Williams & Schi­avone, Nov 2026).

When a pro­file needs a per­son, send the PR to some­one who has reviewed that part of the code before, not to who­ev­er is free.

Two teams that work this way report the pay­off (self-reports, not audited):

  • Duck­bill asks for a human only on a short list of areas, such as auth, the pub­lic API and schema changes. Merged PRs rose 94%, and PRs with­out a human merged in a medi­an 1 hour instead of 26 (Mike Julian, Sep 2026).
  • Anthrop­ic’s Claude Code team has a clas­si­fi­er pick each PR’s tier, from zero to two human approvals, and only trust­ed authors get the lighter tiers. Merged PRs more than dou­bled and the revert share fell over 40% (Osmani, Lunt & Wang, Oct 2026).

Tests: make them good, not just more

Set the tests per pro­file. Each pro­file lists the tests its code needs, and stricter pro­files need stronger ones. Unit tests give an agent fast feed­back, but they’re enough only for glue code.

Use the whole toolset. Each kind of test catch­es a dif­fer­ent kind of bug (Fig­ure 2). I’ll go through each one in depth in a lat­er post.

Part of the codeTyp­i­cal bugReach forWhat a human reads
Pars­es out­side inputAPI han­dlers, web­hooks, trans­ac­tion decoding Crash, hang, injection Fuzzing Lit­tle: the harness
Log­ic with a rulePric­ing, fees, a ledger, permissions Wrong answer Prop­er­ty-based tests The rule, in one line
State­ful partsSmart con­tracts, state machines, queues A bad sequence of calls State­ful prop­er­ty tests (invari­ant tests) The invari­ants
Dis­trib­uted or con­cur­rentCon­sen­sus, repli­ca­tion, retries Races, par­tial failure Deter­min­is­tic simulation The invari­ants
Where one bug is cat­a­stroph­icSign­ing, a pro­to­col’s core rules The rare case no test hits For­mal methods The spec
Between ser­vicesYour ser­vices, third-par­ty APIs One side changes, the oth­er breaks Con­tract tests The con­tract
User jour­neysSign-up, check­out, con­nect­ing a wallet A bro­ken flow A few end-to-end tests The list of journeys
Glue codeCon­trollers, map­pers, config Wiring, typos Types, lin­ters, com­po­nent tests Noth­ing per PR
Fig­ure 2. Which test to reach for in each part of the code. A part can match more than one row: a pay­ment web­hook pars­es out­side input and applies a rule, so it gets both. The stronger tests leave a human a short rule to check instead of hun­dreds of examples.

How good is your test suite? Mea­sure it with muta­tion test­ing, which plants the bugs for you and checks if your tests actu­al­ly fail. You can use cargo-mutants (Rust), Stryk­er (JS/TS/C#), PIT (JVM), vertigo-rs (Solid­i­ty). Start with the riski­est mod­ules, then run it only on the lines each PR changes (cargo-mutants --in-diff), as Google does in code review (Petro­vic et al., IEEE TSE 2022). Use the score to find weak tests, not as a tar­get (Papadakis et al., ICSE 2018).

Write a skill for tests. This improves con­sis­ten­cy with agents: which kind of test they reach for in each part of the code, when a mock is fine and when a test must use the real thing, and how they write it.

QA and rollback: try the build like a customer, and make mistakes cheap to undo

Use it like a cus­tomer before cus­tomers do. For user-fac­ing pro­files, make a tester’s approval one of the pro­file’s actions. CI deploys each PR to its own tem­po­rary envi­ron­ment, seed­ed with real­is­tic test data, and links it in the PR (Git­Lab calls these review apps). The tester (QA or the PM) opens the link, uses the change the way a cus­tomer would and tries to break it, and the merge waits for their OK. The envi­ron­ment shuts down when the PR merges. Every bug a tester finds before merge is one your engi­neers did­n’t have to catch in review, so keep QA capac­i­ty in pro­por­tion to engi­neer­ing output.

Make roll­back fast across code and infra­struc­ture. Pair lighter review with fea­ture flags (and clean up old ones: a reused flag cost Knight Cap­i­tal $460M in 45 min­utes, Doug Sev­en, 2014), canary releas­es (Google SRE Work­book), and declar­a­tive infra­struc­ture as code (Ter­raform, NixOS). Changes with side effects, like destruc­tive migra­tions, sent emails or broad­cast blockchain trans­ac­tions, can’t be rolled back this way, so put them in your strictest profile.


Next week: the GitHub set­up, with draft PRs, a CI script that labels each PR with its pro­file, and approval rules that fol­low the label.

Free 20-minute call · with Renato

Your first fix, in writing.

Tell me how your team ships agent-written code. Within two business days you get one written page.

Not for you if your team is still choosing a coding agent or running a pilot: this is for teams already shipping with one.

Book your free call I work with 3 teams at a time.

Prefer to write? Send me a message.

  • Your top riskThe gap most likely to hurt you, judged against the five failure modes.
  • Your first fixA concrete step your team can take this week.
  • Do you need help?Which paid option fits, or why you don't need one.