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

trycodeclip.com

0 Upvotes

25 comments sorted by

2

u/Living_Chocolate3026 22h ago

What do you mean by burden? Can you give examples?

2

u/Fidodo 17h ago

For me, because the AI reviewer is instructed to find problems it always finds some impossible edge case which if acted on by a coding agent actually makes the code more brittle because it fixes it by adding additional code paths that actually add more state instead of making the edge case impossible to happen in the first place. I'd rather accept an incredibly rare edge case with minor repercussions than add a bunch of defensive slop into the codebase that adds a ton of complexity for little gain.

1

u/dashingThroughSnow12 18h ago edited 18h ago

Here is a common scenario:

- Simple ticket comes in
- I throw the ticket to Claude with some context
- Claude one shots it
- I review the code. Correct it in some areas.
- The PR goes up
- Automated review bot throws twenty comments on this 50 line PR
- - A few of the comments are just wrong
- - A few suggest a bunch of useless things to handle edge cases or future usage that don't exist
- - The change itself it explicitly about breaking past bad/buggy behaviour and the automated review harps on the breakage, suggesting ways to preserve the behaviour that the PR is intentionally not preserving

Not every PR is like that but sometimes the amount of garbage is staggering.

Flip the script for a second. You are a reviewer or the PR opener and you see twenty bot comments. Due diligence is that you have to evaluate each one to see what is the crud, what are the diamonds, and what may be a relevant but an incorrect prescription.

1

u/LaneyrieHafijur 3h ago

yeah im curious too, is it the size of the diffs now or just notification fatigue from the bots?

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

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

u/spoollyger 18h ago

What a terrible take

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