Remix.run Logo
▲ pif 3 hours ago

A couple days ago, I rejected my first PR written by AI.

My rationale was that I don't care what tool you use to write the code (AI, and IDE, ed, or ink and paper followed by an OCR) but you must understand the code and be able to sum it up in the PR. That's because we as a team, and you in particular as the author, must be able to maintain it. That PR, in particular, touched some code that may become the foundation of a new bug feature, and as such must be extremely well known by us.

If it was just CRUD, or graphical details, or automatic tests, none of that would have mattered.

Edit: that "bug feature" should have been "big feature", but I don't have the heart to change it XD

▲daemin 2 hours ago | parent | next [-]

I would think that automated tests matter more in this agentic age, as how else can you verify that another pass of generated code hasn't screwed something up?

People have already given up trying to code review the generated changes.

▲tonyedgecombe 2 hours ago | parent [-]

The programmer should be the reviewer now. It should be their responsibility to check what the AI created. If they can't do that then what use are they?

▲lolive 3 hours ago | parent | prev | next [-]

That's why the planning part of the PR must be commited too. And AI can still help there. So a PR is done in two phase: validate the planning part first (can be a dedicated PR, that will eventually trigger the technical implementation in a second PR).

▲pif 2 hours ago | parent | next [-]

Again, the source of the answers would have non mattered: their soundness would.

▲lolive 3 hours ago | parent | prev [-]

And then, AI (again) can contest/validate the second PR versus the first PR.

Internal tought: am i not describing how a multi-agent coding environment is organized?

▲waterymelon 3 hours ago | parent | prev [-]

Not sure if done on purpose, but I like the Freudian "new bug feature" :)

▲pif 2 hours ago | parent [-]

No, it was not on purpose.

Yes, I love it too!