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

1 Upvotes

11 comments sorted by

3

u/boomkablamo 2h ago

You're not alone and there's nothing you can do to make a 10k line PR reviewable.

2

u/SamAltmansAIt 1h ago

Yeah whenever possible I try and have another agent use a separate branch and turn an MR that size into multiple separate ones.

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/SamAltmansAIt 48m ago

I think part of the problem is that the project overall is fundamentally above my level of understanding. I don't know how to build this from scratch, it's a huge senior+ level project and I'm not senior yet. But right now, the executives are pushing for "velocity" so it's 1 engineer per project and there's really no wiggle room for delay. I feel like I just have to move forward and merge it at the expense of code quality. It's a deeply uncomfortable feeling for me.

1

u/DoggoCentipede 40m ago

Work with the agent. Tell it to be critical and analyze the plan for defects, don't just assume you are correct 100% of the time. It can help you break it apart into pieces you can manage.

Agents aren't magic. You still have to know good coding principles to write real software and not proof of concept facades.

Push back on people telling you to just do it faster. You have to have a methodical approach or you will get shitty fragile software.

Also, start looking for a new job before you leave this one.

1

u/1800lampshade 2h ago

I think human code reviewers are inevitably ending soon

1

u/SamAltmansAIt 1h ago

I think so too, but in the mean time I find this deeply uncomfortable. I feel guilty for subjecting my team to what feel like slop PRs that I only half understand myself. But I don't feel I have the luxury to slow down in this job. Part of me looks forward to the end of human reviews, if code review is going to keep looking like this. I used to enjoy reading teammates' hand written code.

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/SamAltmansAIt 48m ago

Glad it's not just me, it feels like the models speak as if they're making a joke exaggerating all of the jargon

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.