logoalt Hacker News

Ask HN: Are PRs still the right way to review AI written code?

14 points • by davidest • today at 4:08 AM • 7 comments • view on HN

PR's were created before AI. They assume the person who opened it wrote the code and understands it, but that isn't always true anymore!

I'm wondering how you guys are dealing with them now, and whether the concept of a PR should be updated for modern times?

If you have opinions or ideas, hit me up, I'd love to chat :) (@DavidEstrine on X)


Comments

sourav_biswas • today at 6:50 AM

Well I treat my AI work more like proposals that need validations

orsorna • today at 5:35 AM

A PR is a collection of commits that get merged in. It's also a staging area for discussion on those commits, and importantly the existence of the PR implies intent to merge it in to a target branch. This is not apparent from just branches and commits strewn in a repo. It's a necessary abstraction regardless of who (or what) writes the PR.

bustermellotron • today at 6:17 AM

Even if you’re just having AI review, if you don’t post the comments, they might go round in circles.

eezing • today at 5:21 AM

I have been wondering this myself. The entire software development life cycle is shifting. The GitHub pull request was originally designed for humans reviewing human-written code. It feels quite antiquated these days, and I presume it is fading away.

jmathai • today at 6:39 AM

Unpopular opinion. Replace human PR reviews with comprehensive automated end-to-end tests that validate functionality, performance, security, etc.

Humans in the loop to get agents unstuck and to make sure they aren’t being dumb. This doesn’t require code review.

➕ show 1 reply
bigstrat2003 • today at 6:19 AM

If you don't understand the code, you are derelict in your duty as an engineer. If the person submitting the code has chosen to not do his job of understanding the code, the rest of the team has a responsibility to push back. Yes, PRs are still necessary.

37708 • today at 6:43 AM

[dead]

blockmandev • today at 6:31 AM

[dead]

yanlanshi • today at 6:24 AM

[dead]