Comment by post-it
18 hours ago
I've been whittling my way towards having Claude write zero comments in code. They're pretty much never helpful.
18 hours ago
I've been whittling my way towards having Claude write zero comments in code. They're pretty much never helpful.
How do you do it?
I include a rule in the initial PR prep that it runs. So there's a hard limit to the length of the comments and what type of comments it can write and they get flagged in the review. It also reads the comments and checks for consistency with the following code so they don't drift. And the reviewer is a completely different agent/different model.
So all of that happens before the manual review and usually catches a lot of the 3-5 line comments it inevitably adds.
I just delete them most of the time. But I keep my LLMs on a short leash. No 40000 line PRs.
You could probably add linting rules to your tool of choice and tell claude that your lint tool has to pass.
but then no human generated comments allowed either, right?
8 replies →