How to review code in the age of AI
Chanwoo Song 7 min read
These days, even people who aren't developers are constantly building things with Claude Code or Cursor. So am I.
But most of you probably get stuck at the same point. The AI produces a whole block of code and asks, “Apply these changes?” You read through it, but you can't tell what's right and what's wrong. So you just click accept. It works, after all.
You also hear that developers are spending much more time on code review these days. So you start to wonder whether it's really fine to skip review like this.
Let me start with the bottom line: developers aren't keeping up right now either.
A 2026 study that tracked 22,000 developers across about 4,000 teams found that the median time spent on code review rose 441.5%. Code merged with no review at all rose 31.3%. This happened even though no team had changed its review policy. They simply could no longer handle the volume coming in.
There's an even clearer comparison. It's a benchmark that split 8.1 million pull requests (PRs) by whether AI was used. AI-generated PRs grew from 157 lines to more than 400 lines, and the time before a reviewer opened them went from about 200 minutes to more than 16 hours. And the share merged within 30 days fell from 84.5% to 32.7%. That means two-thirds of AI-generated PRs still aren't merged a month later.

So if you set your goal as “read it perfectly, like a developer,” you will fail. I think what matters is putting in place the safeguards developers commonly use.
Fortunately, the way AI gets things wrong follows patterns.
One: it handles the normal path well and falls apart on exceptions.
AI is good at producing what's common in its training data. It does a great job with normal flows like “issue a token when login succeeds.” But exception handling, for when the password is wrong, the network drops, or a value is empty, shows up far less often in that data. So that's where it falls apart.
Two: it only sees what you asked for.
The AI doesn't know whether your system already has a similar feature, or why things were decided the way they were in the past. So it builds the same feature again. In fact, duplicated code blocks rose 81% compared with 2023, and 2024 was reportedly the first year in which copy-paste exceeded refactoring.
Three: code that looks plausible is the scariest kind.
This is code that compiles and passes its tests but is subtly wrong. One analysis found that AI code had 322% more paths that wrongly grant access than human-written code.
So here is what you can actually do.
1. Have AI review AI — but in a different room
If you ask “Is this okay?” in the same chat, it will defend what it wrote. Open a new chat, paste in only the code, and ask for a critique of it. This is a method practitioners actually use, and some go as far as using a different model entirely.
Questions like these work well. What could go wrong here? Did it rebuild a feature that already exists? Why did it ignore this exception?
For each project, I ask the agent to write a list of QA checks it can test. Then, whenever there's a change, I hand the review over to the agent.
In particular, I recommend a framework called Playwright.
Installing it isn't hard. You just tell your agent to install Playwright, and that's it. Playwright is a framework developed by Microsoft.
For a person, it's easier to spot problems by looking at the finished result (the built website, its design and so on) than by reading the code alone. The same is true for AI.

Every time there's a change, make a point of telling it to run the QA checks with Playwright. In my experience, the results get much better.
A more diligent AI may even look at the design and make further changes if it sees something more worth addressing.
2. Set up gates that can't be fooled
Machines are more reliable than human eyes. Set up a linter, type checking and tests, and the AI will keep fixing things on its own until it passes them. You only have to set this up once.
Of course, these are only baseline tests of whether the code runs and is free of syntax errors. They're the minimum checks you can run without spending any AI resources.
3. Use GitHub — so you can always go back
Save small changes, and save often. Even if your review falls short, as long as you can roll back, a problem ends as a hassle rather than a disaster.
That tool is GitHub. Since developers use it, it may feel intimidating, but non-developers actually need it more. What it does is simple. Every time something changes, it saves a complete snapshot of that moment, so you can go back to it at any time. It's free, too.

Tools like Claude Code already know how to use it. Just say “save my work so far” and it takes care of it. You don't need to memorize any commands.
And this ties directly into review, because there's a view that shows only what changed. Instead of the whole file, it shows only the added and deleted lines, marked in color. Even if you can't read the code, you can see how much has changed. If you asked it to fix one button and seven files light up in color, that's a signal. Just ask why this much changed.
There are two things to watch out for, though.
Always make your repository private when you create it. In some cases, public is the default.
Also, once an API key or password has been saved, it stays in the history even if you delete it later. This really does happen often. AI sometimes writes keys straight into the code, so before saving, take a quick look for any long strings that look like keys.
So in my case, I use a secrets file (.env) that the AI can make use of without reading it, or the secret storage features that GitHub repositories or AWS provide. The idea is to design a setup where the AI never reads the secrets and only the code can reference them.
We're still at the stage where you need to look closely
AI has certainly gotten much better. I use it every day, and there are many times I feel I couldn't work without it. But we're not yet at the point where you can hand it everything. Still, rather than bringing in more people, I think this is the stage where the people using AI need to pay a little more attention and keep studying, diligently and constantly.
That's what the numbers above were saying. Code merged without review didn't increase because AI got better. It increased because people could no longer keep up. And two-thirds of AI-generated PRs still aren't merged a month later. Building things well and being trustworthy enough to rely on are still two different things.
The day will come when we really can hand everything over, but I don't think that day is today.
#AI #CodeReview #VibeCoding #ClaudeCode #Development