Last week I opened our team’s review queue on a Monday morning and counted. There were more open pull requests than people on the team. Most were agent-assisted, and all of them were technically fine. Every one of them was waiting for somebody senior to set aside an hour and read code they hadn’t seen being written.
This wasn’t a backlog that more discipline would fix. The process was doing exactly what we had designed it to do, and the design had stopped making sense.
Look at what we expect from a single pull request review. We expect it to catch bugs and spot security holes. We expect it to check that the change fits the architecture, teach the junior who wrote it, spread knowledge across the team, and give everyone a sense of shared ownership. All of that lands on one person, at one moment, after the work is already finished.
When humans wrote code slowly, this mostly held up. The diff was small because typing is slow, and the reviewer had time because there weren’t many diffs. We mistook a quirk of human throughput for a sound engineering practice.
That quirk is gone now. Meta’s own research shows lines of code per human-landed diff up 106% in a year, and diffs per developer per month up 51%. More than 80% of that growth comes from agentic AI, while the share of diffs that get a timely review keeps falling. Anyone running a team with agents in the loop has felt this before seeing the charts. Code is cheap to produce now, and attention is the scarce part.
The defence of code review deserves a proper hearing, because the strong version of it doesn’t defend the review most of us actually practise.
Review was never mainly about bugs. In Bacchelli and Bird’s well-known study at Microsoft, only 14% of review comments dealt with defects. More than half of the developers surveyed ranked finding alternative solutions among their top three reasons for doing review. Review also spreads design rationale, teaches juniors, builds shared ownership and keeps people aware of what their teammates are building. The visible output is better code. The less visible output is a better engineering team.
Most teams do it badly, too. A Microsoft study of 911 developers found that only 26% always wrote detailed PR descriptions. The biggest complaints were slow feedback, oversized changes and reviewers who couldn’t tell why a change existed. The usual fix is sensible: keep PRs small, explain the why, protect reviewers’ time, automate the style checks, and use AI to route changes by risk rather than automating review across the board.
There’s even data showing that this works. Meta’s RADAR system routes diffs by risk. Across more than 535,000 reviewed diffs, the diffs it processed had about a third of the revert rate and roughly a fiftieth of the production incident rate, and they closed 3.3 times faster. Meta also noted, to its credit, that this kind of automation may reduce knowledge transfer.
I agree with almost all of this diagnosis. Where I part ways is the conclusion that the pull request is still the right place to deliver those benefits.
AI didn’t break code review. We had been using review for jobs it was always bad at, and AI just made the cost impossible to ignore.
The question I keep coming back to is simple: why do we wait until review to have these conversations at all?
That question changed how I see a pull request. A PR is a handoff. Someone builds a thing, finishes it, packages it and passes it over. Only then does someone ask whether it was the right thing, built the right way. If the answer is no, you have the most expensive form of feedback available: rework on something already “done”.
We’ve done this before. Testing used to be a phase at the end, where a separate team found out too late that the thing didn’t work. Shifting testing left didn’t remove testing. It moved it to where a failure was cheap to fix, and it made testing everyone’s job instead of the job of one gate.
Review needs the same treatment. The feedback stays. What changes is where it happens, and the easiest way to see why is to look at what the same comment costs at each stage.
Before any code exists, changing direction costs a sentence. “Have we considered an event instead of a synchronous call?” is a two-minute conversation at a whiteboard. Asked under a finished PR, the same question means throwing away two days of work, and that holds whether a person or an agent did the typing.
While pairing, it costs a minute. Knowledge transfer comes along for free. Reading a finished diff shows you what someone decided. Sitting next to them shows you why, along with the three options they dropped and the edge case that changed their mind. Juniors learn far more this way. Nobody learned to cook by reviewing photos of finished plates.
In the pipeline, it costs no human time at all. Formatting, linting, known vulnerability patterns and deterministic tests belong here, and so do your architecture rules. In a Spring Boot codebase, an ArchUnit test can fail the build whenever a domain module imports infrastructure. That rule gets enforced on every commit, including the 2 a.m. ones, and it never gets tired. If a person is still leaving “missing final newline” comments in 2026, that’s not rigour, it’s waste.
In the pull request, it costs a rewrite of something everyone already considers done. That’s the most expensive slot for feedback, and it’s the one we made mandatory.
Shared ownership doesn’t come from any of these stages on its own. It comes from building and running the software together: designing as a team, pairing, and being on call for what you shipped. Approving each other’s diffs never created it.
The tempting fix is obvious. If agents write the code, let another agent review it. The queue clears, the dashboard turns green, and everyone goes home happy.
That automates the ritual without asking why the ritual exists. You still get the handoff and the late feedback. You’ve only removed the one part that had some value, which was a human building understanding of the system.
Meta’s RADAR numbers might look like a counter-example, but I read them the other way. What worked there wasn’t a robot playing reviewer. It was a system that routed changes by risk and sent the dangerous ones to humans. That’s review by exception with good tooling.
That doesn’t mean agents have no place in the feedback loop. They have a very good place in it, just earlier. Let an agent attack your design before you commit to it. Let it generate the property-based tests you were too lazy to write, or poke at your assumptions while you’re still deciding. The hard thinking still has to come from experienced people, but agents make excellent sparring partners. They are poor substitutes for the gatekeeper role.
None of this means human review disappears. It still matters for:
That last point carries the most weight. “I’m not sure about this” is a perfectly good reason to ask for review. “The branch protection rule says so” is not.
The maths is brutal if you ignore this. Suppose agents let your team produce ten times as much code, but every change still waits for one of three senior engineers. You haven’t gained ten times the output. You’ve gained a backlog and moved your bottleneck onto the people you can least afford to burn out. I’ve watched this happen across teams I coordinate. The seniors become full-time diff readers, design quality drops because nobody has time to design, and the review queue grows anyway.
This is the strongest counter-argument. Margaret-Anne Storey calls it “cognitive and intent debt”: the growing gap between what a system does and what the team understands about why it does it. As code volume grows, that gap widens. Mandatory review at least forces someone to look at every line.
I share the worry. I just don’t think mandatory pull requests protect against it. Reading a 900-line agent-generated diff at 4 p.m. on a Thursday doesn’t produce understanding. It produces an approval. Understanding comes from designing together, from clear module boundaries, from architecture you can execute and verify, and from operating the thing in production and getting paged when it breaks. Those are the defences worth investing in. The goal is engineers who understand systems, not diffs.
The decisions themselves need a home, too. Once review moves to refinement, planning and pairing, the reasoning behind a choice lives in a conversation, and conversations are forgotten by the next sprint. Architecture decision records fix that. An ADR is a short Markdown file in the repository that captures one decision: the context, what we chose, the options we rejected and the consequences we accepted. It’s versioned next to the code it explains, so it’s there when someone looks at the system a year from now. That someone is increasingly an agent. Point your agents at the ADR folder, and they stop proposing the synchronous call the team already ruled out, because the reasoning is written down where they read it.
You don’t need to delete branch protection tomorrow. Start here: