r/coderabbit • u/stfufeedmenuggets • 18d ago
Discussion & Feedback Hot take: the agent shouldn't write the PR description
Every PR description on our team reads the same now. "This PR refactors X to improve maintainability and adds comprehensive tests." 400 words, perfect formatting, and the author can't answer one question about it.
I want a rule: the agent can write the code, coderabbit can write the summary, but the description has to be 3 sentences from the human who opened it. what you changed, why, and what you're worried about.
if you can't write those 3 sentences you didn't read your own PR.
my team thinks this is pointless busywork. am I wrong?
1
u/muuchthrows 18d ago
Are you still doing peer reviews of PRs? The description is mostly for you, and for future agents digging into the history of the repository.
1
u/notime0forthis 18d ago
Nope. The agent should write the code and the PR description, but burden of reviewing the diff, understanding the output and manual QA should rest on the operator. I make sure those boxes are checked before I mark PRs ready for review, and I always write brief PR descriptions myself on the engineering channel on Slack when asking for reviews.
1
u/dashingThroughSnow12 18d ago
Yeah. LLMs continue to be atrocious at being concise and at this point I'm convinced it is not going to be fixed anytime soon.
I was doing some work, noticed a bunch of error logs being generated in a service owned by another team.
Since I'm working on something else I send the lots to Claude and say "fix it". It does. I look at the code. Simple issue. I have it draft the PR.
It wrote War and Peace as the description.
The issue? A string type guard happens after some code assumes it is a string. Type guard needs to be moved up a few lines.
1
u/Lonsarg 18d ago
I would go one step further, the proper DevOps way. Every PR must have a corresponding ticket on Jira or whatever (enforced by DevOps server before merge happens).
And if you do this then PR description is almost meaningless and can be autogenerated, since the proper details are in ticket.
But there is one additional thing to consider, if developer just forwards all the work to agent then maybe agent should do the task themselves, and developer is only brought into the picture when agent says "needs help" or "i have done it here is PR to review" ;)
1
u/BagMostlyWater 18d ago
The agent shouldn't write ANY communication, at all, including comments. They are incapable of effective communication because they do not have theory of mind and thus cannot consider their audience.
1
u/CS_70 18d ago
But that’s just a sign that the agent has been told to use those sentences as template.
Agents are actually much better to describe the content of a PR than people since, unlike people, they have the patience and stamina to actually go through all the commits and see what they are about.
So your experience is quite unusual.
1
u/Atlan_ 18d ago
I dont read the PRs, so it wouldn't make sense to write the PR descriptions. They are for documentation, and when agents write the changes and evaluate PRs there is imo no reason to put a human in the loop for something like writing a description
1
u/rco8786 18d ago
We banned agents from writing PR descriptions and would never go back.
1
u/Economy_Bedroom3902 18d ago
An agent can write what you changed and why. It sounds like the problem you're having is you PR description templates aren't doing the work they're supposed to be doing.
I don't disagree that your average agent which is provided zero framework or instruction tends to write pretty shitty PR descriptions. That reminds me I need to rework my skills for this.
1
u/theWildBananas 18d ago
Just put a link to jira in the description , maybe with title
1
u/Hotfro 18d ago
Pointless busywork, just tell them to review the code. 3 lines won’t make a difference. The human who opened the PR should now be way more accountable for the code compared to reviewers. Since it takes too long for peer reviewers to review everything now in detail.
1
u/canyoufixmyspacebar 17d ago
everyone knows agent should not write thesis, court documents and laws but people still let them (and only sometimes get caught). i don't think the "should vs should not" discussion helps here, everyone knows you should not eat crap and smoke, this has not helped the health situation one bit and knowing you should not abuse LLMs is not going to help the SW industry