r/AskProgrammers • u/SamAltmansAIt • 2h ago
Does everyone else find it increasingly difficult to review AI generated MRs?
This primarily applies to companies that are heavily pushing agent-first coding. I believe that there are three factors that are making it so that it is increasingly difficult for a human developer to review an MR entirely generated by their Agent. Firstly, as the models have gotten more capable and businesses are pushing harder, larger and larger projects are being delegated to AI. Secondly, as AI writes more and more of the code I contribute, my skills get dull. Third, as my whole team increasingly works in this way, the codebase evolves at a pace that none of us can keep up with and the landscape becomes familiar.
As a result, I ask Claude to go implement the big urgent project for me while I multi-task and do some other stuff. I come back to it an hour later and I have a 10k line MR that is completely incomprehensible to me. It's verbose, the GitLab page lags, and the LLM uses all of these weird jargon terms that I cannot recognize. Please tell me I'm not the only one feeling this way? I am still relatively junior with 4 YOE and I think it might be a bit easier with more experience.
3
u/boomkablamo 2h ago
You're not alone and there's nothing you can do to make a 10k line PR reviewable.
3
u/DoggoCentipede 1h ago
If you have a massive PR from your agent or yourself then that is a failing on your part. A megaprompt is not good practice and leads to very low quality software. It might meet the exact letter of the specification, but I guarantee you didn't include everything you should and it will not be maintainable. Rewriting it from scratch for moderately sized change is a terrible idea and is often what happens because the change spec is likely even less detailed.
Use normal best practices. Break the problem down into manageable pieces. Iterate on the design. Throttle the stakeholders who poorly wrote their spec and constantly change their mind. Test driven development. Prove every branch works. Prove the test catches what it is intended to catch.
Then do a PR. Maybe it's a PR into your feature branch, but it is manageable. Leave the huge PR later to the suckers on your team.
1
u/1800lampshade 2h ago
I think human code reviewers are inevitably ending soon
1
u/dutchman76 51m ago
The jargon is so annoying! I have no clue who talks like that. I constantly have to ask it for plain English
2
u/tehfrod 1h ago
Treat it like a junior.
If it gives you a shitty 10k pull request, reject it and tell it how big a PR should be.
1
u/Apprehensive-Fan8999 1h ago
I'm still a meat reviewer for PRs. I tend to keep my reviews to a specific domain within the project because I can make myself an expert on it. But because I've made myself an expert, it's pretty quick for something to fail a smell test when something in said domain changes in the wrong direction.
That said, I take longer than the other dev spending 5 minutes asking AI to do the review, and I actually, you know, fail the PR when it should fail. Both things have gotten me "disinvited" from PRs in the past, but the devs that appreciate it, REALLY appreciate it because I have caught some sizable legitimate problems in their code before they got merged.
It's kind of scary but as of late about 40% of the PRs that I've been asked to review because of my exp I flat out failed with "this seems like you don't understand the architecture" because what the PR is doing is about to significantly break areas in the system that may pass smoke tests and fail in real world after they go live.