How to review AI-generated code: a checklist for teams
An AI code review checklist for teams using Copilot, Cursor and Claude Code: what to check in AI-generated pull requests, and the red flags reviewers miss.

AI-generated code has a particular way of looking finished. It compiles, it's formatted, the names are sensible, and there are tests. That polish is exactly what makes it easy to approve without really reading it.
From my perspective, reviewing AI-assisted code isn't a completely new skill. It's the same code review you already do, with a few blind spots you need to look at on purpose. In this post, I'll walk through how I think about reviewing AI-generated code, and the AI code review checklist questions that catch the problems that slip through most often.
Start With Who Owns the Change
Before any checklist, get one thing straight on your team: the person who opens the pull request owns every line in it. It doesn't matter whether they typed it, accepted a suggestion or let an agent write the whole thing.
That changes how review works. The author's job is to read and understand the change before asking for review. The reviewer's job is to review a change the author can explain, not to be the first human who has ever read it.
AI is a tool. The engineer who submits the change is still the author.
A simple way to make this real: ask authors to note significant AI assistance in the pull request description. It isn't about blame. It tells the reviewer where to slow down.
Check That It Does What Was Asked, and Nothing Else
AI tools are eager to help. Ask for a bug fix and you may also get a "cleaned up" helper function, renamed variables, and a refactor of a file nobody asked to touch.
Each of those extra changes is a place for a regression to hide, and they make the diff harder to review. So the first question is simple: does this change do what the ticket asks, and only that? If not, ask for the unrelated parts to go in a separate pull request.
Small, focused pull requests are the best defense against code nobody really reviewed.
Look for What's Missing, Not Just What's There
This is the blind spot I'd put at the top of the list. Reviewers read the code that's in front of them. They're much less likely to notice code that should be there and isn't.
AI tools write what the prompt asked for. If the prompt didn't mention authorization, the endpoint may work perfectly and check nothing. Common gaps:
- Authorization checks. Can any logged-in user call this, or only the right ones?
- Input validation. What happens with empty, huge or malicious input?
- Error handling. Are errors surfaced or logged, or silently swallowed in a
catchblock? - Edge cases. Nulls, time zones, retries, concurrency, pagination.
Verify That Every API and Package Actually Exists
AI tools can invent function names, config options and even whole packages that look completely plausible. The function call reads well. It just doesn't exist in the version you run.
Packages deserve special attention. Researchers presenting at USENIX Security 2025 generated 576,000 code samples with 16 popular code-generating models and found package hallucinations to be a persistent problem across them. Attackers can register those invented names with malicious code, so a single npm install of a hallucinated package becomes a supply chain risk.
For every new dependency in a pull request, check:
- it exists and is the package you think it is (watch for look-alike names)
- it's maintained and widely used
- its license works for you
- you actually need it, rather than code you already have
Read the Tests Like a Skeptic
AI tools are very good at writing tests that pass. That's not the same as tests that would fail if the code broke.
Look for tests that only check that a function runs, assertions on mocked values the test itself set up, and snapshot tests that will happily record whatever the code returns. A quick check I like: mentally break the code. Would any of these tests notice?
A test that can't fail isn't a test. It's decoration.
Make Sure It Fits Your Codebase
AI-generated code often solves the problem in a generic way rather than your way. It might add a new HTTP client when you already have one, introduce a different error-handling style, or duplicate a utility that lives two folders over.
None of that is a bug today. All of it is maintenance cost tomorrow. This is also where good instruction files help: if your conventions are written down in something like AGENTS.md, the code arrives closer to your patterns in the first place. I covered that in AGENTS.md vs CLAUDE.md vs Cursor rules.
Route Sensitive Areas to an Owner
Some parts of a codebase deserve a second set of expert eyes no matter who or what wrote the change: authentication, payments, permissions, cryptography, data deletion, infrastructure.
GitHub's CODEOWNERS file makes this automatic. Code owners are requested for review when a pull request touches code they own, and with the "Require review from Code Owners" branch protection rule turned on, the change can't merge without one of them approving.
And one rule I'd put in every team's policy: an AI review bot's approval never counts as the required human approval. AI review tools are useful for catching things early. They don't replace an owner.
A Quick AI Code Review Checklist
Here's a short version you can paste into your team's wiki or pull request template:
AI-assisted change? Before approving, check:
- [ ] The author can explain every line
- [ ] It does what the ticket asks, and nothing extra
- [ ] Authorization and input validation are present, not just "working"
- [ ] Errors are handled, not swallowed
- [ ] Every new API, config option and package actually exists
- [ ] New dependencies are needed, maintained and correctly named
- [ ] Tests would fail if the behavior broke
- [ ] It follows our existing patterns and reuses existing code
- [ ] No secrets or real customer data in code, tests or fixtures
- [ ] Sensitive areas were reviewed by their owner
If you want a fuller, printable version with author and reviewer sections and red flags, take the free readiness assessment. It emails you an AI code review checklist along with your results.
Conclusion
Reviewing AI-generated code comes down to slowing down in the places where polish hides problems: scope, missing checks, invented APIs, hollow tests and sensitive code. None of it is exotic. It's ordinary review, done on purpose.
So, whether you're a reviewer seeing more AI-written pull requests every week or a lead deciding what "good" looks like for your team, pick the checklist questions above and make them part of how you review.
I hope you found this helpful. If you'd like a review process your team can adopt as-is, there's a ready-to-use AI code review checklist in the AI-Assisted Development Kit.
Polished isn't the same as correct. Review accordingly.