Replace code reviews with verified intentAviator Verify
Aviator
All episodes
Code ReviewDecember 3, 2026

Split Code Review in Two: Agents for Quality, Humans for Knowledge

Lo Gullstrand Heander, a researcher at Lund University, suggests teams stop treating code review as one process and split what it gives them into separate parts. Agents and tests take care of quality, and humans share knowledge in new ways, like coding together with agents and building prototypes with customers.

About the guest

Lo Gullstrand Heander

Lo Gullstrand Heander

Researcher

Lo Gullstrand Heander is a researcher in software engineering at Lund University, studying how code reviewers can best be supported in their work. Before moving into academia, Lo founded a software company in 2010, starting as technical co-founder and later serving as CEO.

From Startup Founder to Researcher

I started out as the technical co-founder of a startup. I ended up being first the interim CEO and then the permanent CEO. That set my role on a course away from tech and away from going deep into things.

After spending a lot of time working on the process and getting the company very self-sufficient, with everyone feeling empowered and working together, I made myself less and less needed in the loop. That led me to rethink what I really like doing. I wanted to get back to diving deep into technology and how things work. Then a research opportunity came up at Lund University, and I took the leap.

I've been researching code review for the last four years or so, right in the middle of this agentic explosion. The very foundation I started to research has just disappeared under my feet.


Code Review Was Always a Social Activity

For me, the social side of code review has always been the most interesting. Code review has been the platform where people share knowledge and develop a shared understanding in a company about what good code is and what good patterns are. When a new junior joins the team, that's where they encounter the old software development fox who tells them about algorithmic complexity, how to manage the database, and shows them the injection risks.

When it works well, it becomes a forum for discussing code, programming, and quality. When it doesn't, it can become a toxic worm pit.

This has been studied extensively in research: code quality is just one of the benefits of code review. Most of the benefits are social. They're about knowledge sharing and a sense of shared ownership.

Even if someone writes a bug, the reviewer who didn't catch it shares some responsibility for it getting into production. We all share responsibility for keeping the codebase clean, a kind of campsite rule.


Code Review Is Dead

About a year and a half ago, I wrote a paper arguing that agents could never replace code review. Humans should be in the loop, and agents can support us, but they can never do the review for us because we need the social effects, the knowledge sharing.

Today, my opinion is that code review is dead. Maybe not all companies have discovered it yet, and in some places it's a walking, talking corpse, but it's doomed.

We are scaling to speeds of code generation that no human can read. Companies like Anthropic and OpenAI have published blog posts recently about their development speeds. It's impossible for any human to keep up with thousands of pull requests per week. It's not going to happen.

So we need to come up with a radically different answer to code review, and separate these concerns: the knowledge sharing and team building on one side, and the quality aspect on the other.


Code Review Is Decision-Making, Not Understanding

For a long time, code review has been understood as an understanding process. People modeled it as: you get a diff, you read the code, and when you understand it, you've done the review.

When we sat next to people doing code review and studied how they asked questions and navigated the review tool, we found that this wasn't the case at all. They read and understood the code pretty quickly. Then they moved on to: What are the effects of this? What are the social connotations? If I write a comment here, how will the other person react? Should I check it out in my IDE and test it myself? Should I see how it behaves in the sandbox? Does it interact with the microservices?

A lot of it was intuitive. Especially with experienced reviewers, they would open a diff and feel that something was off. It took a while for them to name it. The diff, the author, and the whole picture just didn't feel right. It didn't match the rationale or the issue the person was trying to solve. This person doesn't usually work in this repository. Something is off, and I need to find it.

So review involved a lot of gut feeling, social effects, navigating the team structure, and striking a balance between being diplomatic and being direct. It comes from the legacy of code inspection meetings, where everyone sat in the same room with the code in front of them and went through it together. With networks and organizational changes, it became a distributed activity. But it's still a discussion, made up of many micro-decisions: Should I write a comment? Should I accept the patch? Should I reject it? Should I test it?


Reviewing at a Higher Level of Abstraction

With the volumes we're looking at, it's not possible for a human to go into the code and understand it at the level we used to. I don't think review will keep being a conversation about idioms and how to write a particular piece of code.


We did a case study with JetBrains where we brought engineers together to prototype the future of agentic code review. People wanted more levels of abstraction. The code was still there in the UI, but it wasn't the first thing you saw. First, you saw a high-level overview of the risks in the project: which parts of the code had external effects, or had been stable for a very long time, so a change there was a danger signal. Then you looked at what changed at the abstraction level. Are there changes in the API? In the class structure?


If everything looked fine there, people probably didn't dig deeper. If something was off, they would dig into that particular module and look at the lines of code.

Maybe even reviewing at the API level within a PR will be too fine-grained. Maybe we'll need to look across a bunch of PRs: what's happening, and where is the flow of things going in the repo right now?


Shift Review Left

Agents are quickly getting good enough to catch code quality issues. I think Anthropic is onto something with their blog post about interleaving implementation and review. Instead of doing a big implementation, then a big review, then a fix step, you shift code review left. You implement a little, review that, implement a little more, review that, maybe with different layers.

Granted, Anthropic comes at this with an unlimited token budget, and they want everyone else in the world to have one too. It's probably an expensive way to do it. But they're onto something by moving review closer to the source of the error.


Research shows the biggest predictor of code review success and happiness is how small the PRs are. People hate reviewing big PRs. It's a lot of cognitive load. But give them ten or twenty lines and that's comfortable.

Agents don't have the same problem. They can review a ten-thousand-line PR without blinking. But there's still something to be said for catching things as early as you can.
Breaking things down to a couple of lines at a time would be very annoying for a human. For an agent, it's feasible.


The Institutional Knowledge Problem

There's so much institutional knowledge spread out between the brains of people on a team. That was a challenge before, too. A teammate who has worked at the company for decades retires, and suddenly there are a bunch of systems nobody knows how they work.

We'll see that explode. If we want to accelerate the coding process, this knowledge needs to be made accessible to agents. We don't know what that format will look like yet. It will probably be too big to just dump into markdown. I don't think that will scale.


Separating Quality from the Social Role

Code review is not the right place for the social aspects anymore. We need separate solutions. One for quality, where we work with layers of agents, layers of deterministic rules, acceptance tests, looking at the code a bit more like a black box and verifying behavior in different ways.


For the social side, maybe ensemble programming could be really efficient now that agents do so much of the work. Get four or five developers together in a coding session, launch 20 agents, and discuss what's going to happen. Why not bring the customer into the room?

There are a lot of agile promises we weren't able to keep in the age of human coding that we can really deliver on now.

We can involve the users, stakeholders, and customers in the conversation and put them in front of the agent interface to build a prototype. You want this change in the app? Come in for a session. We'll try three or four options, you pick the one you like best, and we turn that into a more formal requirement specification, test it, and bring it into the product in a more quality-controlled way.

If we're not coding, what would we rather do instead? I hope the answer is to have more conversations about what we're building and why, with the people who are impacted by the software we build.


Before You Drop Code Review

For most companies and most tools today, reading line by line is probably not going to increase quality in a way that's reasonable compared to the time spent. There are better ways to verify a system than reading its source code today.

Before you drop review, it's important to have verification of the system's behavior. A lot of products probably still rely on review to verify behavior. If you're doing that, you need to keep it in some form. Maybe you chunk it up and review at the API or interface level.

But it's time to stop just pushing features through the system and use this increased coding capability to develop guardrails. Build a really solid acceptance test suite. Look at behavior-driven development. Find other ways to verify. There are many engineering disciplines where we've never been able to verify the actual mechanism, and we're used to verifying at the system scale. We can learn from them.

I wouldn't be very surprised if we fairly quickly end up with more code in the verification parts than in the system itself.

We'll also spend time improving the pipelines we're building: improving the agents, the prompts, the guardrails between agents and their handovers. We're really getting into systems engineering. We used to build teams of developers. Now we need to build teams of agents, with much more guardrails between every step. If we can build self-improving systems with feedback from every iteration, we could get to something that makes our software better and better.


Rethinking Your Code Review Process

Sit down with your team and have a discussion. List all the things you're getting out of code review right now, and look at what alternative solutions could still give you each of them.

Instead of one code review process, you'll probably end up with three or four different parts, each giving you a different piece of the puzzle.

You might have one or two things that work on quality assurance: agentic review, agentic retrospectives, acceptance tests, or behavior-driven planning. Then you have something else that brings the humans on the team together.

Maybe weekly ensemble agent coding sessions, where you get together in a room on a Friday, hack away with the agents, and discuss what this means for the company and the customers. Maybe you prototype with your customer. Maybe you involve sales to ground what you're building in market fit.