Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My team uses a Claude Code hook that blocks any comment more than 2 lines long, and when tripped it encourages the agent to rewrite the comment more concisely and focus only on the "why" not the "what" of the code. I've found this extremely useful for code reviews.


I was using that approach with Fable to great effect, but with Opus it's useless. It just writes unreadable horseshit anyway, so banning comments entirely results in far more readable code.

Still I always find it funny when I give it code to review that it itself wrote and it immediately says how good the comments are, it's like that obama giving medal to obama meme.


I will say I'm doing some coding right now with Opus 4.8 and I'm shocked by how much commenting it does. I'm going to have to update my docs to tell it to limit it. In my last project w/ Kimi and Deepseek I didn't have this problem, code was decent but not as good as Opus 4.8 - but man the comments were a lot less verbose.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: