Out of curiousity; what is your main gripe with llm based reviews in PRs. At my company its a discussion right now if we do or do not want to implement this and then have 1 human reviewer. Both humans in the loop would be able to tell the llm review that its dumb if needed but it might point out things people forgot and arent xaught by linters, and other more traditional static anlysis.
We tried a few at ours and Coderabbit is kind of shit
Another tool though has been fairly helpful for a first pass, sometimes it spots stuff before human reviewers and sometimes it spots stuff people have missed. Healthy false positive rate though but its a nice to have in addition to proper human review
Because the automated github review integration is an extra charge on top of our plan anyway lol, and iirc it was found to be more expensive because it's pure API costs whilst we're small enough to use the delicious subsidised subscription tokens
like a couple weeks ago , not me, colleague of mine.
Edit I'm also being cagey about what automated pr tool we actually ended up using mostly because I like, actually don't like how deeply ai is shoved up our arses everywhere but I still need to eat so I must job
We use it, and the biggest drawback is that it changes developer behaviour. Instead of preparing a PR to be as good as possible to avoid getting flamed in the review, they start pushing garbage with the hope that the PR bot will tell them what to fix. Preferably with an code agent so you can just paste the pr comments directly into the prompt.
The reviews are powerful, and pretty good at catching logic errors, concurrency problems, missing test coverage and similar static analysis problems. It can sometimes be a bit nitpicky and complain about things that cannot realistic happen, or are acceptable tradeoffs but in general the actual false positive rate is very low. I don't think I've ever seen one comment that has been disprovably false. It will not catch everything though, just like a human reviewer it will occasionally miss things.
It's absolutely terrible at catching bad practices, bad architecture, bad features and so on. In essence it can evaluate if something is done right, but not if the right thing is done.
We use it as a supplement, and still require actual human reviews just as before. But it does find things the humans don't and the automated reviews are much faster than the rest of the CI pipeline anyway, so it's a decent bonus at not a very high cost.
I have seen this. The generated interferences is not 100% perfect when I asked the same AI to review it. I don't know the reason. But it doesn't really matter IMO. Because it doesn't change the job, which is making code that pass the gate.
The change in dev behaviour is palpable, the automatic behaviour is they let AI review it. A human is still looking but the first look is always through the lens of some agent, where they spit out 20 comments on it. How am I supposed to parse all this WITHOUT an LLM organizing it all? What the tool finds isn’t the problem, but just this disconnected reviewer.
If a human reviewer had given you 20 comments on a PR before LLMs existed, would you have considered responding to the feedback to be impossible? Honestly, this is the worst legacy of LLMs, that they've made people decide that it's impossible to read and understand 20 sentences without a robot summarizing them for you.
Ours does too, but that only catches the more static things from above. Things like library usage, certain patterns and so on. There's no guidance for "the purpose of the code must be right".
It's very hard to put into words what bad architecture is, but I know it when I see it. Just as an example, I recently reviewed a junior PR where he'd introduced a new class to a package that required a whole bunch of boilerplate code to set up what he was trying to do. Instead of making use of already existing classes and code within that package, he (or his LLM) just rewrote it all in his new class. The automated review didn't flag this, as none of it were bad per say, but a human with knowledge of the codebase would easily say that he should instead make use of what already exists instead of duplicating logic.
We have no AI code reviews at my place. We have many PRs into the hundreds of thousands of lines without a single comment, because obviously it’s impossible for a human to review that. There was a single PR that doubled the amount of code for a 10 year old app.
I’m very interested in whether my company will be around in a couple of years. It’s like an experiment to watch it.
Yeah this is the thing - it’s between a rock and a hard place here right, because if there’s “no ai reviews” (and I mean, there probably are, because you can just check out the branch and tell Claude to review your local branch and then put its comments on GitHub manually, paraphrased or not, if you want to be stealthy about it), then your reviewers are more or less forced to not review everything. As you said it’s just too much volume. So either you slow down to a crawl, or much more likely, the reviewers scan it real fast, throw down a LGTM, and move on with their lives, which works just fine because the bug fixes come nice and fast.
or, you do ai reviews and potentially catch issues you wouldn’t otherwise because the human reviewers are checked out due to overwhelming volume. So most people are now doing ai reviews if they work in a place with ai code gen. It just is kinda the way of things right now.
Not saying that’s a good thing (at all) but it is the real thing that’s happening out there in the world right now. I’m living through it - we’ve gone though all the stages in between and now rely on coderabbit and Claude code reviews and humans more or less don’t read the code at all on my specific project. It’s pretty wild.
Use two real reviewers. I can tell you from experience in other fields a) the supervisors should never be equal to the ones manufacturing and b) even one supervisor ain't failsafe and usually, as we learn from experience, the will have different approaches and focuses.
That's kind of the issue with LLM guided and agentic coding. It's like a 3D printed house: You can get one quick and easy and, if we're honest, you probably could assemble it yourself; but it's designed for the ideal case with zero on site factors and final responsibility
I get this and honestly i do every so often. The main benefit would be that its automated and therefor enforced. But the threath there I see is if devs get forced to address each llm review fully we can get into a pedantic nonsensical state.
I like asking models every so often to for example give me a grade. In our case the pr review models use the same budget/service as we use to have agents in the first place so there isnt an additional cost there (beyond the additional prompts ofcourse)
Genuinely this could be a coderabbit ad. Like they’re running ads on the London tube right now that specifically point out how reviewers and the bots that write the code just shrug and go “LGTM” so you need to buy coderabbit for your team to enforce quality
Please no😭😭 don't take away the most social and human part of programming and optimize it away. God I actually hate this. If by the time I become an actual programmer and I'll have to talk to a robot during code reviews.. idk if I would want to work this job anymore
Most PRs I made before LLMs were a thing were also automatically reviewed by SonarQube, this doesn't seem that different, just in terms of human versus computer interaction. If people treated it the same way, I don't think it'd be an issue. The actual problem is that they probably aren't.
We've been failing at interacting for along time. It is not just the people that want robo maids or the alpha males. Perhaps will have a war against Skynet, a Butlerian Jihad, or a Cybernetic revolt. 🤔 Man, so many scifi books that mention the war against the machines.
17
u/TDSrock 12h ago
Out of curiousity; what is your main gripe with llm based reviews in PRs. At my company its a discussion right now if we do or do not want to implement this and then have 1 human reviewer. Both humans in the loop would be able to tell the llm review that its dumb if needed but it might point out things people forgot and arent xaught by linters, and other more traditional static anlysis.
9
u/gandalfx 13h ago
#ad
82
u/PunkBoa 14h ago
coderabbit is just spam
6
u/NeKon69 10h ago
Please no😭😭 don't take away the most social and human part of programming and optimize it away. God I actually hate this. If by the time I become an actual programmer and I'll have to talk to a robot during code reviews.. idk if I would want to work this job anymore
2
u/gerbosan 6h ago
We've been failing at interacting for along time. It is not just the people that want robo maids or the alpha males. Perhaps will have a war against Skynet, a Butlerian Jihad, or a Cybernetic revolt. 🤔 Man, so many scifi books that mention the war against the machines.
2
u/ceilingscorpion 7h ago
Same but Greptile
1
u/Important_Grab3544 5h ago
Just let Claude to pull the comments... after all that think is just another Claude based tool.
1
u/Perahoky 12h ago
https://www.youtube.com/watch?v=3TNpOD6bov8
1
u/VergilPrime 9h ago
Is this an ad?
-5
u/Hioneqpls 14h ago
😂😂