r/codereview • u/CCodeSI • Nov 03 '26
AI writes code faster than anyone can review it. What makes an automated review actually useful instead of noise?
Something we keep running into, and we'd like this sub's take on it.
AI coding tools have made writing code cheap, so the pile waiting for review keeps growing. The obvious answer is to have an AI review it too, but most automated reviews we've seen fall into the same traps:
- Too many comments, mostly style. Twenty nitpicks about naming bury the one real bug.
- Findings nobody checked. "This might cause a null reference" on a line where it can't happen. After a few of those, people stop reading.
- No reason given. "Consider handling this edge case" without saying which input breaks it.
- It changes the code. You asked for a review and got a rewrite you now have to review as well.
We build a coding agent (CCode), and while adding a review command to it we settled on a few rules. We're curious whether people who review code for a living agree:
- Order by severity: bugs, then security, then missing tests for the change, then minor issues. Style is last, if at all.
- Check every finding against the code before reporting it, and drop what can't be backed up. A shorter list you can trust beats a long one you have to verify.
- Every finding comes with a concrete case where it goes wrong. Not "may fail", but "with an empty cart this returns NaN". Plus the file and line, and the fix in one sentence.
- End with a one-line verdict. And if there's nothing worth changing, say so plainly instead of inventing something.
- Read only. The review never touches the files. Fixing is a separate step you choose.
It runs on uncommitted changes by default, or on a branch, commit or PR.
What would you add or change? In particular:
- Should missing tests rank above security for a typical change, or below?
- Is "nothing worth changing" a result you'd trust from an automated review, or would you rather it always found something?
1
u/ram-popular Nov 03 '26
Your rules look solid, especially checking each finding and showing a real case where it breaks. I’d keep security above missing tests, since a hole costs more than a missing test. And yes, I’d trust “nothing worth changing”. A tool that always finds something just teaches people to ignore it.
1
u/Any-Blacksmith-2054 Nov 03 '26
If you reviewer is so cool, why he can't fix code here and now ?
1
u/Kiana_Harpel Nov 05 '26
I’d rather have it say “I’m not sure about this one” than confidently flag 20 things that don’t matter
1
u/theov666 Nov 03 '26
Use guardrails - https://mnemehq.com/
0
u/therealmrbob Nov 03 '26
Very rarely have I had AI bring up silly style things, may be what I'm working on, no idea. It generally only flags blocking stuff on real issues that I've seen.