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

You can create a PostToolUse hook [0] which will automatically chastise Claude to shrink comments to one line. It's not perfect but better than the sea of prose it tends to generate by default. Bonus is that it would apply to your colleagues as well!

[0] https://github.com/chrisvariety/branch-fiction/blob/deb37f2b...



Good thinking! The multiline paragraph comments drive me up the wall.

No amount of agents.md / commit to memory updates has stopped agents from littering the code base with useless comments.

Think I'll add it to pre-commit hooks getting called by posttooluse




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

Search: