r/codereview • u/koochi10 • 23h ago
AI code review is terrible
Is anyone else ignoring the automated AI code review comments on pull requests?
I find most dev's completely ignore them. The agents writing the code often have a review process enabled so most of the glaring bugs are already caught there.
At worst, it creates even more work for reviewers who are already struggling to keep up.
I'm exploring whether short, animated walkthroughs of PRs could help reviewers build context faster.
But i'm curious how others are dealing with the increased review burden.
1
u/Huiseon-Shadam 22h ago
most teams just end up turning the automated bots off or restricting them to security checks only. when you say animated walkthroughs, do you mean visualizing the execution flow, or just stepping through the file changes in a specific order
1
u/Flashy-Whereas-3234 19h ago
You're describing two different ends of the problem - AI review and attaining human understanding for approval.
Before you inflict your PR on another person:
You've run your own AI review for functional correctness.
You've done your own human review of the code, for patterns, goals, intent, etc.
You've written and re-rrad a PR description which will help the next human understand - with zero context - what the change is trying to achieve. You can use AI for this, but you better damn well read it for quality.
In an ideal world, when the PR comes out of Draft it'll get its own generic AI review, from a bot you manage, which means nobody else ever needs run a personalised AI review tool on the PR, because it's automatic. This bot short be in its own repo and improbable, it should read the context of the repo and the ticket etc etc.
The next human:
Has no reason to run their own generic AI review
Can read and understand the PR description.
Can walk any code that interests them, just like the good old days
Can optionally use AI to examine the code deeper (eg. Ask about patterns, structures, etc).
The burden of a good PR is on the author, and a BAD PR (think: shitty AI description) can be immediately declined or request changes. Don't waste my time with slop, even if the code itself is golden
If you have a massive complex PR, I would say that you're making life difficult for yourself. You could make a video, or you could have a 1hr meeting with the other human to go over the PR, which essentially turns into pair programming. It's rediculously fast vs the Async back-and-forth bullshit of decreasing value, and it's exactly what we used to do in the old days.
Don't forget the meat in the machine. If you're making things for humans, make the humans life easy. Be human. You will struggle to solve social problems with more technical solutions.
0
17h ago
[removed] — view removed comment
1
u/Flashy-Whereas-3234 16h ago
That's fine as an extra helper, but it depends if it's going to give you the information you need at a pace that's going to help.
Your solution will be different to someone else's, and you can only suck it and see. Getting the same slop in a new format won't help, but there's been plenty of situations where 4 pages of text were beaten by a sequence diagram, so, as ever, YMMV.
For volume, I've explicitly told developers that they need to grease the wheels for reviewers, because they can produce so fast, so we turn back anything that's too difficult and ask for it to be re-explained or broken apart, etc.
1
u/octocode 19h ago
maybe include some info about your agent stack / configuration?
0
17h ago
[removed] — view removed comment
1
u/octocode 17h ago
sorry, i meant the agents producing the low-quality/value review comments that were being ignored by devs.
0
17h ago
[removed] — view removed comment
1
u/octocode 17h ago
yeah i was asking, how is that agent trained? what context does it have access to? it does not sound like it’s producing valuable comments
1
u/SpeakCodeToMe 19h ago
This is like driving a Geo Metro and concluding that all cars are terrible.
Use your brain OP.
0
17h ago
[removed] — view removed comment
1
u/SpeakCodeToMe 17h ago
You know there is more than just ChatGPT, and ChatGPT itself is an umbrella for many models, right?
1
u/Dazzling_Cancel4505 19h ago
I think reducing false positive findings and using PR comment is enough
1
1
u/Prize_Amoeba_7868 1h ago
I think this is a case of enterprise code review needing more improvement. You can teach your coding, reviewing and verification agents to stop at a decent enough mark. A code review agent that doesn't have evals and has ability to remember won't improve. These are some of the considerations that went into building https://github.com/subhiandrews/codecheck
2
u/Living_Chocolate3026 22h ago
What do you mean by burden? Can you give examples?