Do the Thinking Before the PR

“If feedback is valuable, don’t remove it.” Move it closer to the decision it informs.

On one project this year I barely reviewed the code, and it wasn’t laziness. When a PR came in, there was almost nothing left to decide.

That bothered me until I read Rachel Laycock’s piece on martinfowler.com, Maybe We Shouldn’t Be Reviewing All This Code (she is CTO at Thoughtworks). It explained what had happened on that project. The framing and the quote above are hers. The notes and opinions below are mine.


The Arithmetic Nobody Wants to Do

An agent can produce ten PRs in the time a senior engineer reads one. Everyone knows that. Most teams still run the same pipeline they ran in 2019:

PRD → Implement → Review → Merge

That pipeline was built for humans writing code at human speed. Speed up the Implement step 10× and leave Review alone, and you haven’t built a faster team. You’ve built a queue.

Laycock puts it bluntly: ten times the code, every line waiting for a senior engineer, gives you “a big backlog and a new bottleneck”, not a ten-times organisation.


Why We Review at All

Before deciding where review should go, it helps to list what it actually does for a team. When I wrote it down, the list had very little to do with catching bugs:

- Mental alignment        → do we agree on what this is?
- Alternative approaches  → is there a better way?
- Juniors learning        → how does a senior think about this?
- Collective ownership    → does more than one person know this code?
- Architectural alignment → does this fit the system?

All five are about judgement. And the PR is the most expensive place to apply any of them, because by then the code exists and changing your mind means throwing work away.

So the question isn’t “how do we review faster?” It’s why are we waiting for the PR to do any of this?


Shift the Judgement Left

Every item on that list has a cheaper, earlier home:

  • Knowledge transfer → pair. Watching someone reason through a problem teaches you far more than reading their finished diff.
  • Juniors learning → put them in the room while seniors are thinking, not afterwards. A whiteboard session before anyone, human or agent, writes a line.
  • Collective ownership → build and run things together, instead of using a PR to tell everyone what one person already built.
  • Architectural alignment → the same move. A design session with the person who would have reviewed it, before the ticket exists.

What’s left is lint, formatting, whitespace and the obvious security checks. All of that is deterministic. We already make that split when we set up an agent: rules go into the harness as lints and hooks, and judgement stays with humans. I don’t see why code review should be any different.


What This Looked Like for Me

The project was Momentum, an internal tool I built for measuring engineering velocity and direction.

I didn’t skip review. I moved it. Before any ticket was raised, I spent the time with the agent being grilled: every decision questioned, every edge case named, the do’s and don’ts written down. Only then did the epic or ticket get created.

grill → decide → write the ticket → agent implements → PR
                                                       ↑
                                   almost nothing left to argue about

The PR wasn’t where the thinking happened. It was where I checked that the thinking had been followed. That takes minutes, not an afternoon.

This is what front-loading alignment means: every decision you leave for review gets made at the most expensive moment to change it.


”Just Let an Agent Review It”

In my harness engineering post I wrote that AI-written code should be AI-reviewed. I still run that setup, and it does raise the floor. Whether it also solves the review problem, I honestly don’t know yet. I go back and forth on it.

The case against it goes like this. An agent reviewer does the same job a human reviewer does, just faster. Now you need to trust its judgement, which means checking it, which means you’ve added a second queue rather than removing the first one.

The deeper problem is using review to build understanding. If the only way your team learns how the system works is by reading PRs, then 10× the code means 10× the reading for the same people. We become the blocker for the agents we hired to unblock us.

Don’t outsource your understanding. But don’t build it one diff at a time either.


Review by Exception

None of this means nobody reads code. Some changes still need an experienced human looking at the approach, not only the lines:

- A major architectural decision
- An old migration finally being finished
- A deprecated library being swapped for an in-house one
- Anything where the honest answer is "I'm not confident"

That last one is the real rule. Review is for the places where confidence is low. Everywhere else, the confidence should have been built before the code was written.

Engineers should understand the system, not diffs. Agents already handle diffs better than we do: ask about one function and you get a good answer in seconds. Ask about how the whole system fits together and, often, they can’t help. That knowledge has to live in people.


Smaller Loops, Not a Bigger Brain

The goal isn’t moving the bottleneck from the PR to somewhere else. It’s spreading human judgement through the whole pipeline, in short cycles: decide, build a slice, check, decide again.

People have started calling this loop engineering: small loops of agent and human work, instead of one big plan at the start and one big review at the end.

I’m still working out what that looks like for a whole team rather than one engineer on one project. Pairing and design sessions cost calendar time, and the teams that most need them are the ones who feel they have the least. But I’m fairly sure of one thing. If your process still treats the PR as the place where thinking happens, more agents will only make your queue longer.