How I Review AI-Generated Code Without Slowing My Team Down - By Gopi Gugan
I'm Gopi Gugan, a software engineer building AI features with FastAPI, Postgres/pgvector, and React/TypeScript. These days a lot of the code I review wasn't written by a person — it came from an AI coding assistant. That changes what a code review is for. I'm not checking whether the author underst

I'm Gopi Gugan, a software engineer building AI features with FastAPI, Postgres/pgvector, and React/TypeScript. These days a lot of the code I review wasn't written by a person — it came from an AI coding assistant. That changes what a code review is for. I'm not checking whether the author understands the code anymore. I'm checking whether anyone does. You can find more of my writing at gopigugan.ca.
Here's how I review AI-generated code without slowing my team down — or letting bad code slip through.
The first mistake I made was asking "what did you prompt it?" That's the wrong question. The prompt is gone, the diff is what's shipping.
AI-generated code usually looks polished. The bugs hide in the places that look fine at a glance.
# This looks reasonable. It silently drops every failed row. for row in rows: try: save ( row ) except Exception: pass # AI wrote this. It "handled" the error. Enter fullscreen mode Exit fullscreen mode A review comment I write a lot: "This except block hides failures. Log it, or let it fail loudly."
AI code often comes with tests that pass — because the tests were generated from the same wrong assumption as the code.
AI makes it trivially easy to generate 500 lines in a minute. That doesn't make a 500-line PR reviewable.
I do use AI review tools — they catch typos, suggest cleaner patterns, and flag obvious issues fast. But they're a first pass, not the decision.
AI writes code fast, but review is where quality actually happens — and review is still a human job. Read the diff like a person wrote it, check the boring failure modes first, test the claims, keep PRs small, and never approve code nobody on the team understands. The model can generate; only we can take responsibility. That's the part of the job that didn't get automated.