Blog

Rethinking branches, merges and code review for AI agents

Two developers start on the same system on a Monday.

One renames a field. The other adds a rule that uses the old name. Each works on their own copy, so neither sees the other.

On Thursday, both are done. Now someone has to put the two copies back together, find where they clash, and decide which one wins.

That's a merge. Branches, pull requests and code review all grew up around it. And I think they exist for one reason: people write code slowly.

Why branches exist

A person needs days to build a feature. Sometimes weeks.

You can't freeze the code for everyone else while they do. So each person takes a copy (a branch), works on it alone, and brings it back when they're done.

The longer the copies live apart, the further they drift. Two people fix the same thing twice. Or one change quietly contradicts another.

So we added a step to catch that: the merge. Then a step to check the merge: the review.

None of this is a bad idea. Git was built in 2005 for the Linux kernel, with people all over the world changing the same code at once. For people, it's the right answer.

But it's an answer to a speed problem.

Agents aren't slow

An agent writes in minutes what used to take a developer days.

And that has turned the old process into the slow part. In LinearB's 2026 benchmarks, across 8.1 million pull requests, AI-generated pull requests waited more than 16 hours on average before a reviewer picked them up. Unassisted ones waited just over three hours. (LinearB, 2026)

The code took minutes. The wait took 16 hours.

Some companies have stopped waiting. Faros AI looked at two years of data from 22,000 developers. In the same companies, heavy AI use came with 31% more pull requests merged with no review at all. (Faros AI, AI Engineering Report 2026)

So review isn't going away because it's no longer needed. It's being skipped because it can't keep up. (Which is the worst of both.)

It's a communication problem

Here's my logic:

  1. Branches exist because a change takes days, and you can't make everyone wait days.
  2. A change from an agent takes minutes.
  3. So you can make everyone wait. Or you can make them talk.

That gives two options.

One at a time. While one agent changes the code, the code is locked. Everyone else waits. With people, that would mean waiting a week. With agents, it means waiting a few minutes. No branches, no merges, nothing to clash.

Talk first. Before it starts, every agent posts what it's about to change on one shared board. "I'm renaming the customer field." Another agent that needs that field sees it, and waits or plans around it. The clash is caught before it's written, not after.

Either way, the conflict never happens. And if the conflict never happens, there's nothing to merge.

So I don't think this was ever really a code merging problem. It's a communication problem.

What doesn't go away

But review had two jobs:

  1. Does this change clash with someone else's?
  2. Is this change right?

Speed removes the first job. It does nothing for the second.

An agent can be very sure of a change that's wrong. And AI can't check its own work. Asking it to double-check isn't a check. Neither is adding a second agent to review the first.

So the checking stays. It just moves. Away from "do these two copies fit together?" and towards:

  • Does it do what the business needs?
  • Can it reach anything it shouldn't?
  • Do the tests through the real system still pass?

That's what we built Langrove around. The AI builds the business logic. The foundations, such as sign-in, access rules, the vault and the audit log, are built once, as normal code, and the AI can't change them. AI can't break what it doesn't build.

So which steps survive?

I don't think the answer is "review faster".

I think it's to ask, for every step: why was this invented? And does that reason still exist?

  • Branches were invented because people are slow. That reason is going.
  • Merges were invented because branches drift. They go with them.
  • Review was invented to catch clashes, and to catch mistakes. The first reason is going. The second isn't.

We don't want to copy the old steps, step for step. But we can't drop the reasons behind them either.

We're working through this for Langrove right now. One at a time, or talk first? Honestly, I'm not sure yet. Maybe it's both. (Or maybe I'm missing something a Git expert would spot in three seconds.)

Which step in how you build software is still there only because building used to be slow?

← All posts