Insights - Dootrix

The Last Code Review

Written by Kevin Smith | Nov 25, 2026, 8:15:00 AM

🔗 Originally published on LinkedIn

I think code review is dying. And increasingly, I think we need to let it.

That's a fairly provocative thing to say in software engineering circles. Code review is practically sacred. It's how we maintain standards, catch mistakes, share knowledge and make sure the next poor soul who inherits our codebase doesn't want to throw their laptop out of a window.

But something fundamental has changed.

AI agents are now writing substantial amounts of production software. And we're rapidly approaching a point where humans will write very little of it themselves.

Yet our response, rather bizarrely, has been to insist that humans must still read it all.

We've automated the writing of code, only to turn software engineers into full-time code reviewers.

That cannot be the future of our profession.

Why do we review code anyway?

It's worth asking what code review is actually for.

Traditionally, we've reviewed code to catch defects, enforce standards, improve maintainability, share knowledge and ensure the implementation makes sense.

All perfectly reasonable objectives in a world where humans write and maintain software.

But what happens when machines do both?

Consider maintainability. We've spent decades arguing about clean code, sensible abstractions, naming conventions, duplication and commenting. Much of this exists to make software easier for humans to understand and modify.

If an agent is going to maintain that software, why should human readability remain the primary measure of quality?

I'm not suggesting that agents benefit from incomprehensible spaghetti code. They don't. Good structure, sensible abstractions and clear naming make agents more effective too.

But that isn't a reason to insist that every implementation satisfies a human reviewer's aesthetic preferences.

Give ten competent agents the same specification and you might get ten very different implementations.

But if all ten are correct, secure, performant and maintainable by the agents responsible for them, what exactly are we arguing about?

We've been here before

Nobody reviews the assembly code produced by their compiler. And before you tell me that is a terrible analogy, just hear me out. Because it's not about determinism vs non-determinism; it's about trust and verification.

We don't inspect every machine instruction to check whether the compiler has made sensible decisions. We trust the compiler, the toolchain and the surrounding ecosystem of testing and validation.

And we accept that the generated output might not be how a human would have written it.

We've been progressively moving away from the machinery of software for decades. Compilers, virtual machines, garbage collectors and increasingly sophisticated frameworks have all allowed engineers to operate at higher levels of abstraction.

AI represents another step in that progression.

Of course, there's an important difference. Deterministic compilers operate within much more tightly defined rules than probabilistic AI agents. We cannot simply assume an agent's output is correct because it compiles.

But that doesn't invalidate the analogy. It exposes the actual problem.

We need better ways to establish that software is correct, not better ways to read software we didn't write.

And I think we've become so accustomed to code review that we're struggling to imagine what comes next.

A lesson from our own Software Factory

But afterwards, something bothered me. Why did we care so much? Partly because we knew a human reviewer would look at that code and think it was rubbish; we were optimising for human judgement.

We've been wrestling with this at Dootrix.

Recently, our Software Factory produced around 42,000 lines of code. When we inspected the output, we discovered an extraordinary amount of unnecessary comments.

The code was littered with explanations of things that should have been self-evident.

It wasn't good engineering. And frankly, it was a bit embarrassing.

So we fixed it.

We developed new instructions and skills for our agents, improved the harness and changed how the factory generates code. The next time it encounterd a similar problem, it produced cleaner, more self-explanatory code.

But afterwards, something bothered me.

Why did we care so much?

Partly because we knew a human reviewer would look at that code and think it was rubbish.

We were optimising for human judgement.

Now, there may be legitimate reasons why all those comments were undesirable. They could increase context consumption, obscure important information or make future modifications harder.

But those are engineering concerns we can evaluate.

The more interesting realisation was that the most valuable thing we did wasn't fixing the code. It was fixing the factory.

And that leads to a different way of thinking about quality.

Review the factory, not every artefact

One of the things I've been repeating at Dootrix is that we need to spend our time "building the thing that builds the thing."

It's a deceptively simple idea.

Our engineers should be designing systems, understanding business problems, defining requirements, making architectural decisions and constructing the machinery that helps produce reliable software.

They shouldn't spend their days cleaning up after AI agents.

And they certainly shouldn't be reduced to inspecting thousands of lines of machine-generated code.

When we discover a recurring defect, a poor implementation pattern or an unnecessary complexity, our instinct should be to ask:

What needs to change in the factory so this doesn't happen again?

That might mean improving specifications, agent instructions, architectural constraints, automated tests, evaluation criteria or the tools agents use. And because we are still early, at the moment this can even mean deploying entire new 'factory sub-systems'.

The important distinction is that we're improving the system that produces the software, rather than repeatedly correcting its output.

That's a fundamentally different engineering discipline.

And it suggests that our ambition shouldn't be to make code review faster.

Our ambition should be to make code review unnecessary.

But how do we know it works?

Someone inevitably asks: "If nobody reads the code, how do we know it's any good?"

It's a perfectly reasonable question.

But I think it reveals how dependent we've become on a process that was never particularly good at answering it.

A human reading a pull request cannot establish that the software is correct.

They can spot suspicious patterns, recognise familiar mistakes and identify things that don't look right.

That's useful. But it's not proof.

And as the volume of generated code increases, the idea that humans can reliably inspect every implementation becomes increasingly implausible.

So what should replace it?

A much more rigorous approach to verification.

Specifications that describe the intended behaviour. Automated tests that establish whether that behaviour exists. Security and performance checks. Architectural constraints. Independent agents attempting to find defects. Observability that tells us what actually happens when the software runs.

And crucially, validation that isn't simply an agent marking its own homework.

Tests can be wrong. Specifications can be incomplete. Agents can confidently agree with one another and still be mistaken.

That's why the quality of the verification system matters so much.

We need independent evidence, meaningful coverage, adversarial testing and mechanisms that identify when the factory cannot establish sufficient confidence.

For particularly critical systems, we may need formal verification, stronger controls or explicit human approval.

None of this means abandoning engineering judgement.

It means applying that judgement to the evidence that software works, rather than treating a human's opinion of its source code as the ultimate quality gate.

Make human code review the exception

I don't think we can eliminate human inspection overnight.

In fact, our own experience demonstrates why.

Had nobody inspected those 42,000 lines, we might never have identified the commenting problem or improved our harness.

Human inspection revealed a weakness in the factory.

But that doesn't mean every subsequent artefact should require the same inspection.

It means we should build mechanisms that detect those weaknesses automatically.

And when the factory encounters something it cannot adequately verify, that's when a human should intervene.

Not because a pull request has been opened.

Not because company policy says one or two engineers must approve every change.

But because there's a specific, identifiable reason why the factory cannot establish that the result meets our requirements.

Even then, the answer may not be manual code review. It might be a better test, a clearer specification, another independent evaluation or an architectural decision that only a human can make.

The important thing is to treat human intervention as an exception that teaches us how to improve the factory.

Imagine measuring the proportion of changes that require human intervention, alongside escaped defects and production reliability (NB: I believe Anthropic does do this currently).

If intervention keeps falling while quality remains high or improves, we're making progress.

We're not measuring how much code our engineers review; we're measuring how little they need to.

What happens to the software engineer?

The engineers of tomorrow ... should be defined by their ability to solve difficult problems, design reliable systems and build increasingly capable software factories.

There's another reason I think we need to confront this now.

The current approach isn't sustainable for the people doing the work.

Developers who have spent the last year or two seriously using AI agents are discovering that writing code is no longer necessarily the most productive use of their time.

They're spending more time understanding problems, designing solutions, specifying behaviour and directing machines.

That's a good thing.

It's what software engineering was always supposed to be about.

But then we ask them to spend hours reading the resulting code.

We've removed much of the labour of implementation and replaced it with the drudgery of inspection.

And I struggle to see how that becomes a rewarding career.

The engineers of tomorrow shouldn't be defined by how quickly they can read and approve somebody else's code, whether that somebody is human or machine.

They should be defined by their ability to solve difficult problems, design reliable systems and build increasingly capable software factories.

That still requires deep technical expertise.

Arguably, it demands more judgement, not less.

Knowing what to build, understanding the trade-offs, anticipating failure modes and deciding whether a system is fit for purpose are not trivial responsibilities.

Generating code was never the entirety of software engineering.

It was simply the most visible part.

The last code review

Back in February, when I first started thinking seriously about this, I kept coming back to one word.

Trust.

We didn't trust AI-generated code enough to stop inspecting it.

And to be fair, we had good reasons not to.

But I increasingly think we've been asking the wrong question.

Instead of asking when AI will become good enough that we can trust its code without reading it, we should be asking:

What would we need to build so that reading the code was no longer necessary?

That's a much more productive question.

It turns an argument about whether humans or machines write better software into an engineering challenge we can actually work on.

Build the specifications. Build the verification. Build the evaluation harnesses. Build the feedback loops. Build the safeguards.

And when something goes wrong, don't just fix the code.

Fix the factory.

I'm not suggesting we've solved this at Dootrix. We haven't. We're still reviewing generated code, and we're still discovering things that our automated processes should have caught.

But I'm increasingly convinced that continuing to mandate manual review as our default quality gate is a dead end.

We need to stop treating code review as a sacred obligation and start treating it as a dependency we should be engineering away.

The last code review won't happen when AI finally writes perfect code.

It'll happen when we've built a factory that no longer needs us to read it.

 

This article  was originally written and published on LinkedIn by Kevin Smith, CTO and founder of Dootrix.