r/codereview • • 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:

  1. Order by severity: bugs, then security, then missing tests for the change, then minor issues. Style is last, if at all.
  2. 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.
  3. 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.
  4. End with a one-line verdict. And if there's nothing worth changing, say so plainly instead of inventing something.
  5. 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?
0 Upvotes

11 comments sorted by

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/CCodeSI Nov 03 '26

Thanks, and agreed: a security hole costs far more than a missing test, so that's the order it uses. And that's exactly the trap we wanted to avoid. If a reviewer always finds something, people learn to skim it, and then they miss the one finding that mattered. Saying "nothing worth changing" when it's true is what makes the next real finding get read.

1

u/Any-Blacksmith-2054 Nov 03 '26

If you reviewer is so cool, why he can't fix code here and now ?

2

u/CCodeSI Nov 03 '26

It can, just not in the same step, on purpose. The review only reads, so you see every finding before anything changes and decide which ones are real. Then you tell the agent "fix 1 and 3" and it does, in the same session. If the reviewer edited as it went, you'd have a bunch of changes to review on top of the original code, and a wrong finding would already be in your code before you could disagree with it.

1

u/Any-Blacksmith-2054 Nov 04 '26

Ok, makes sense

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

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.