Reviewing code an assistant wrote at speed
The bottleneck moved
A year or two ago, writing code was the slow part and reviewing it was fast. You’d glance over a ten-line diff a human wrote, nod, merge. Now the assistant hands you three hundred lines in forty seconds and the bottleneck flipped. Writing code is nearly free. Reading it carefully enough to trust it is not. If you’re paying per-token for the model and per-minute for your own attention, that swap changes how you should spend both.
This isn’t a complaint about AI coding assistants. I use them daily and they save real time. It’s a note on the specific failure mode that comes with that speed: the diff looks plausible, reads clean, and still does the wrong thing in a way a normal skim won’t catch. Plausible-looking wrong code is worse than obviously bad code, because obviously bad code gets caught.
What actually goes wrong in a fast diff
The bugs I see from assistants aren’t typos or syntax errors. Those get caught by the linter or the first test run. The ones that get through review are structural:
Silent scope creep. You ask for a bug fix and get the fix plus a refactor of three adjacent functions, because the model decided the surrounding code “should” be cleaner while it was in there. Each change on its own might be fine. Together they triple the surface area you need to check, and the extra changes usually aren’t the ones you asked to test.
Invented APIs. The model calls a method that doesn’t exist on that class, or passes a parameter a function never accepted, because that’s what the pattern looks like in the training data or in a similar file it half-remembered. This is the single most common thing I catch, and it’s invisible if you only read the new code without checking it against the actual definitions in the repo.
Confidently wrong assumptions about existing behavior. The model assumes a function is idempotent, or that a list is always sorted, or that a config value is always present, because that’s the reasonable assumption, not because it checked. It didn’t check because checking meant reading five other files it didn’t have open in context.
Error handling that handles nothing. A try/except that catches a broad exception and logs it, added around code that can’t realistically throw that exception, while the actual failure path upstream stays uncovered. It looks like defensive code. It isn’t.
None of these show up as a red squiggly line. They show up as a production incident two weeks later, or they don’t show up at all because nobody exercised that path.
Read the diff, not the summary
The single habit that catches the most problems: ignore the assistant’s own explanation of what it did and read the actual diff, line by line, in the order it appears in the file, not the order the model presented it in prose.
Model summaries are optimized to sound complete and reassuring. “I fixed the null check and updated the tests” is true and also not the full story if the model touched four other files to get there. I’ve caught real bugs by noticing a file in the diff that wasn’t mentioned in the summary at all. The summary is a claim. The diff is the evidence. Treat them accordingly.
The three places I check first
I don’t review a fast AI diff uniformly. I triage by blast radius, because a wrong comment costs nothing and a wrong SQL query costs data.
Auth, payments, and external network calls come first. These get a full read of every line, including code the diff didn’t change but that calls into the changed code. If a model touched a permission check, I trace every caller of that function before I merge, not just the one path I was testing.
Function signatures come next. Did a parameter’s default change? Did the return type change from a value to an optional? A one-character diff on a signature can silently break three call sites the model didn’t touch and didn’t check, because it wasn’t asked to.
Anything the model added that I didn’t ask for gets the same scrutiny. Extra logging, extra validation, an extra helper function “for clarity” are unreviewed surface area riding along with the thing I actually wanted, and they’re the first place scope creep hides.
Everything else, formatting, variable renames, comment wording, gets a skim. Spending review budget evenly across a diff means spending too little on the risky third and too much on the safe two-thirds.
Running it beats reading it
Reading code tells you what it’s supposed to do. Running it tells you what it does. For anything with a test suite, I run the suite before I read the diff closely, not after, because a failing test tells me exactly where to spend my reading time and a passing suite doesn’t mean much on its own, since the model wrote both the code and, often, the new tests that cover it.
That last part is worth sitting with. If the assistant wrote the feature and the test for the feature, a passing test only proves the two agree with each other, not that either is correct. I write or rewrite the assertions myself for anything beyond a pure refactor, even though it’s slower than trusting the generated test, because a self-consistent pair of wrong code and wrong test is the exact shape of bug that survives a green CI run.
For anything without good test coverage, I run it manually against the actual edge case I care about, not the happy path the model demonstrated in its explanation. The happy path is the one thing the model definitely checked. The edge case is the one thing it probably didn’t.
Grep before you trust an import
A cheap, specific check that catches the invented-API problem: when the diff imports something or calls a method you don’t recognize, grep the codebase for its definition before assuming it exists. This takes ten seconds and it’s the single highest-value check per second spent, because a hallucinated method call fails loudly at runtime in a script but can fail silently in a dynamically typed codebase, or get caught three review cycles later by someone else who assumed you’d already verified it. If the definition isn’t there, the model either invented it or meant to add it and forgot. Either way, that’s the bug.
What I stopped doing
I stopped asking the assistant “are you sure this is correct?” Models are consistently willing to say yes to that question regardless of whether the code is correct, because the question invites agreement rather than a fresh check. It’s not lying so much as the question doesn’t trigger any actual re-verification. If I want a real check, I ask for something specific and falsifiable: “list every caller of this function and confirm none of them pass a null second argument.” That forces an actual trace instead of a vibe check, and I still verify the trace myself for anything in the first triage category above.
I also stopped reviewing diffs in the same tab where I asked for the change. Something about scrolling up to see my own request and the model’s confident summary primes me to skim the code as confirmation rather than as something that might be wrong. Opening the diff cold, in a plain diff viewer, without the conversation next to it, gets me a more honest first read.
A five minute review isn’t zero minutes
None of this makes review free again. It makes it proportional. A one-line change to a log message gets a five-second glance. A change to how refunds get calculated gets the full treatment: diff read top to bottom, signatures checked, callers traced, edge case run by hand. The real mistake is letting the speed of generation set the speed of review. Those are two different clocks, and only one of them should be running fast.
If you want more of this kind of hands-on, no-hype look at how these tools actually behave in daily use, come find us at AI Tool Gazette.