What AI review catches well
The predictable, high-volume band of issues AI reliably surfaces, and how to prompt for them.
AI review earns its place on the easy, high-volume work that wears human reviewers down. Point a model at a diff and it reliably surfaces a predictable band of issues.
It is strong at style and consistency: naming that drifts from the rest of the file, dead code, inconsistent formatting, and violations of a convention you describe. It catches many common bugs: off-by-one errors, unhandled null or nil values, a resource opened and never closed, a missing await, a switch with no default.
It is good at readability nudges: a function doing five things, a confusing name, a comment that no longer matches the code. And it is quick to spot missing tests, especially for a new branch or error path, and it will draft those tests for you.
A useful first-pass prompt:
Review this diff. Group your findings as Bugs, Tests missing, Readability, and Style. For each, quote the exact line and say why it matters. Do not comment on anything that is already fine.
Grouping keeps the output scannable and lets you skip whole sections. The value here is speed: the model clears the mechanical layer in seconds so your attention goes to the parts that need judgment.
Safety angle: catching does not mean fixing. Treat every flag as a claim to confirm against the actual code, not a verdict to accept.
Take a recently merged pull request and run the grouped-review prompt on its diff. Count how many findings were genuinely useful versus noise — that ratio tells you how far to trust this tool on your codebase.
Enjoying the free lessons? Get an email when we publish new courses and updates — no spam, unsubscribe anytime.
Discussion (0)
Ask a question or share what worked for you. Comments are reviewed before they appear.
No comments yet. Be the first to start the discussion!