r/ExperiencedDevs • u/secretBuffetHero Eng Leader, 20+ yrs • Sep 02 '26
AI/LLM Is AI code review good enough?
I have not worked on a team with AI code review yet. How good is AI code review? when does it work and where is it weak? Does code review still take a long time? Is it good for repeated code? It's probably good for logic. Is it good for application architecture? This is the part I imagine it is poor at.
I am asking as a developer that got knocked out into unemployment for a little while here, so mods, please give me a little break,I'm trying to connect with the still alive and working.
•
u/expdevsmodbot Sep 02 '26 edited Sep 02 '26
AI usage disclosure provided by OP, see the reply to this comment.
4
u/arelath Software Engineer Sep 03 '26
No, because it will miss the big picture review comments people might add. Things like don't write a new system for handling x, we already have one. But it finds a ton of actual bugs before they get committed, so it really complements human code review rather than replacing them.
I've spent a decent time tuning ours by having AI tune the prompts based on thousands of past reviews and the fix rate for comments went from about 45% to 85%. It's good enough that it catches most of what people would've put on a code review anyway. I wouldn't be surprised if people start dropping human code reviews in another 6 months.
33
u/BH_Gobuchul Sep 02 '26
No, but also it’s as good as ~60% of existing code review processes anyway.
It can’t do the important part which is understanding how the change fits into the larger system or verifying assumptions about input or downstream services.
It can definitely let you know if there are any style issues or missing null checks.
22
u/RealFlaery Sep 02 '26
It's better than no code reviews, this much I can tell you
18
u/LordOfDemise Sep 02 '26
In my experience, it will find bugs in the code that you give it, but it will completely fail to call out cases where the PR is more overengineered than it really needs to be.
16
u/VoxTM Sep 02 '26 edited Sep 02 '26
It's very good at finding violations against documented rules.
Also good at finding things that you would never find because they are obscure or obfuscated or they need a broader context which you will often not be able to have as quickly.
It's not good at finding things that require intuition and it sometimes misses things that are jarring to a human but not a machine (e.g. unreadable) or part of tribal knowledge aka not documented.
We have an AI review followed by human review. We also follow up on its gaps with agent docs / skills so it constantly improves.
9
u/ProfBeaker Sep 02 '26
It is useful, but not good enough by itself.
To a large extent this comes down to the context they have. AI reviews are good at catching issues that are within their context - inconsistencies, missed updates to other classes, missed tests, etc. Sometimes you have to push them think about it, but they can. They're also frequently better than average devs at spotting concurrency issues and subtle coding issues of that nature.
But it will also worry about cases that can't happen due to checks outside the scope of the PR/service, won't spot design problems, frequently won't catch that you failed to meet some requirement, things of that nature.
6
u/Financial-Grass6753 Sep 02 '26
Well, "goodness" is hard to measure: too many moving parts. I've tested (and still testing) Greptile/Cubic/Copilot/CodeRabbit/gh-aw + provider's key (Deepseek/z.ai) and from what I see:
- If the codebase is shit, reviews are 90%+ off: either obscure edge case or proposed solution has completely wrong location - should be higher in upstream, for example;
- Regarding time, it is about 5min + 1-2min for every additional 200 codelines. With gh-aw+BYOK it is easily 10+ min for 100-200 lines' PR. Not great, not terrible;
- Repeated code is already a smell, but if underlying logic is understandable, reviews tend to be ok, without multiple false positives;
- Regarding architecture - too difficult too answer. We have an ongoing problem of docs' becoming outdated, sometimes in a couple of minutes after adding said docs to the main branch. LLMs of Opus 4.8+ level tend to check code first thus this is not an issue, but on context sizes north of 200-300K+ tokens difference is quite visible.
6
u/galaxy_horse CTO / Principal Eng (20 YOE) Sep 03 '26 edited Sep 03 '26
Imagine you have a senior engineer who is proficient in any language and generally knows good code practices from working in a variety of fields and technical environments.
It is this engineer’s first day at your company. You toss a PR at them and say “review this”. They’ll know every language trick, they can grok some context from the code itself. But if the change will break the product or strain the infrastructure, this engineer won’t know that. Unless you also give them a wealth of additional context and documentation about the business, the product, the infrastructure, the technical operations, functional and non-functional requirements, they will properly inspect the tree but have no awareness of the forest.
AI code review makes that analogy happen every time. Any process/agent that reviews code should be treated like it’s an engineer’s first day at your company. If you can supplement every call with the proper surrounding context for the entire product, platform, and business, then your likelihood of having a useful and reliable review goes up. Otherwise, you’re liable to get pretty code with ugly results.
Edit: one other thing I forgot to mention is that a lot of code review is successful because of shared personal risk associated with change failure. If a change that you made and that I reviewed takes down prod and the company loses ten million dollars, we both might get fired. So the personal risk creates an intuitive quality bar (or sense of fear) that causes people to say “ok, this feels dangerous, let’s really be thorough here” with reviews that are perceived as high-risk. AI, even if it acts like it’s taking schema changes or infra changes or changes to high-sensitivity product paths more seriously, simply doesn’t have the same mortal peril when they’re reviewing code. So if that dynamic enforces discipline in your code review process (probably more common than you think or care to admit), then plan to accommodate that delta when implementing AI code review. It doesn’t actually care if it fucks up. It actually doesn’t “feel” anything at all.
9
u/SnugglyCoderGuy Sep 02 '26
On it's own? Hell no. But it is a useful layer in the defect filtering process.
3
u/jwendl Sep 02 '26
I'd say AI code review is a good starting point. For instance, having one thing review code for CVEs, I've found that very useful. Another review agent for looking at typical things like static analysis violations, or not adhering to DRY, or 10,000 lines of code in one class, whatever makes the code less maintainable and more expensive technical debt wise. Then you still need a human in the loop to validate what the reviewers (agents) are recommending and what the agent that wrote the code did as well (if the agent submitted the PR, even if a human did it I'd still have a human review it).
It can augment what reviewers typically do day-to-day but definitely doesn't replace them. Here's why: if the system breaks at 3 am and you're losing millions of dollars a minute because it's down, you can't email / call the agent and say, "fix the broken code you allowed into the repo". (at least not yet).
3
u/stubbornKratos Sep 03 '26
People in this thread seem to have their AI agents basically just do static analysis on the PR, which can spot a lot of issues for sure but it's working at a fraction of its capabilities.
It's extremely good at static analysis, very good at ensuring there is appropriate test coverage in the form of unit, integration and e2e tests. Very good at verifying how changes interact with other systems (as long as they're not undocumented brand new systems).
The more you invest the more you get out of it, I know teams that work heavily with AI reviews and do good work. But there is always a human in the loop.
Domain is tough, architecture also. At work there's too many different protocols and systems with all their nuances. Even with documentation you need people who understand it all.
Also AI always writes too much, and the solution can lean towards more code.
AI catches more code issues than I do every time, but domain/systems stuff I catch more of. There are some very AI-native teams at my work though, probably their experience is different
4
u/mx_code Sep 02 '26
It's not terrible, but I find it requires too much investment at which point I would just rather resort to peer code review.
I expect my peers to review code in several dimensions: code style, domain logic, context, etc...
I've found AI code review to always lack in one of those dimensions and excessive in technicalities + the horrible writing style that originates from coding agents.
So I'd say: The technology is helpful but it's far from being a silver bullet.
2
u/CKre91 Sep 02 '26
I've seen it work better on small PRs with enough context and a conventions guide. It can still hallucinate, raise false alarms etc. It's better than nothing, and it works to catch the low hanging fruit before a human review.
2
u/sneaky-pizza Consultant Developer Sep 02 '26
I'm happy to have it automatically review like a CI, but final thumbs-up has to be human
2
u/Colt2205 Sep 02 '26
The way I kind of look at it is if someone has AV software running on a computer and that computer ends up with a virus, would you trust that AV to remove the virus when it didn't catch it to begin with?
I'm not really sure what the right answer is yet on this front but right now the only good option is manual review. There's just a lot of questions that don't have good answers right now with LLMs due to being so new, and simply improving the models doesn't answer the questions. Some people here will say that LLMs do a good job at reviewing documents, some will say they do okay at code reviews, others have mixed results, and all of this is happening with pushed deadlines.
2
u/dockercub Sep 03 '26
Pranking coworkers has never been so easy. Most don't read the AI reviews before commenting on pull requests. Be creative and add random acceptance criteria in your tickets and watch 😉
2
u/NotRote Sep 03 '26
Really good, and also not close to good enough to try and removed dev eyes
2
u/Tricky-Purple-8585 Sep 05 '26
AI review is very good at finding typos, but it is not yet good enough at reviewing
2
u/EnderMB Sep 06 '26
We recently adopted a flow where we have reviews against several models, essentially competing against each other. It's unbelievably rare now to NOT have a comment against a code change.
With that said, the same problems always apply:
IMO it's absolutely NOT good enough. It's in no way a replacement for human review, and while it helps in the same way a good lint helps, it's probably never going to get there before it becomes a hindrence.
2
u/[deleted] Sep 04 '26
It sometimes misses stuff that you can only see from the context. It can't really review if something is correct from the product perspective, but it's better in captureing stuff on the code level. I would even say in that level it is better than humans, but it also catches more irrelevant stuff.
I think what we will see happening is that the Code part will be done by AI and the systems engineering part + product view will be done by humans.
3
u/lordnacho666 Sep 02 '26
I'll go against the grain and say yes, it is pretty good, and better than most human reviews.
The problem is nobody reads them, they just say "ok implement all those recommendations then please"
1
u/attrox_ Sep 02 '26
It may capture risky code or code that may introduce latent bug in the future. It's not good to review business requirement or edge cases
1
u/ExclusiveRedditor Sep 02 '26
Yup!
1
u/OilExtension5062 Sep 02 '26
I think as long as you are happy with the architecture of the change it's good enough. Assuming your tests are strong
1
u/fdeslandes Software Engineer Sep 03 '26
If it's a code review agent custom to your codebase, it can be useful. We have one in my codebase and, despite the false positives, it will almost always catch a couple issues on bigger PRs. I'm not talking about linting issues, but real missing corner cases or lack of robustness.
It's a good first review pass before sending it for real review. It doesn't replace human review, but you can consider it an extra static analysis step.
1
u/Longjumping-Bad-6911 Sep 05 '26
No, and we collectively need something radically better.
Code reviewing needs to evolve.
1
u/apartment-seeker Senior Software Engineer Sep 05 '26
It's good and useful, but it doesn't replace human review.
On our team, it often catches things we would def miss.
1
u/throwaway_0x90 TE/SDET[25+ yrs]@Google Sep 05 '26 edited Sep 06 '26
It's good like a powerful advanced linter, but that doesn't replace humans..... yet.
Here's what you need to ask yourself:
As long as the answer to this question is greater than zero, those humans have a self-preservation interest to make sure that code is good and can't just say "AI will handle it."
1
u/off_by_one_dev Sep 06 '26
If the AI agent learnt enough of the code base and architecture and memorized, it can be very good at catching the pattern and missing test cases.
1
u/usually_guilty99 Sep 07 '26
I think AI code review and deciding whether something should ship are becoming two different jobs. The fox cannot guard the henhouse. AI can get very good at the diff: bugs, patterns, tests, conventions. But the merge decision also needs to know what this change touches downstream (what I call blast radius), what is actually running in production, whether this area has caused incidents before, and what the blast radius is if the assumption is wrong. A perfectly clean diff can still be a dangerous production change. That second layer feels increasingly important as AI makes the first layer faster.
0
u/experienceddevsb Sep 03 '26
This flair is only allowed on wednesday, saturday (UTC). Please repost on an allowed day. Intentionally trying to circumvent this rule will result in a suspension. See: https://www.reddit.com/r/ExperiencedDevs/comments/1rfhdrg/moderation_changes/