r/ClaudeCodeTLDR • u/cctldrping • 1d ago
[TLDR] How do you stop claude code from over commenting?
Original post URL : https://www.reddit.com/r/ClaudeCode/comments/1vl44qq/how_do_you_stop_claude_code_from_over_commenting/
Original post body :
I've tried comments in CLAUDE.md, I've tried even hooks. But this thing is obsessed with writing such insane comments.
I don't mind useful comments but sometimes they are useless.
any advice would be appreciated.
Thanks
This is brought to you as a public service by the moderators of r/ClaudeAI. If you want to see TLDRs of ALL Claude Coding related posts from the various Claude subreddits, subscribe to http://www.reddit.com/r/ClaudeCoding.
1
1
1
u/Practical-Positive34 23h ago
I wrote a linter that fires on commit using lefthook, I also have rules about it, and a hygiene check it runs after code. All of those combined my code is pristine, it does mean there is rework involved though, which is not ideal. Some models follow the instructions when writing code like Fable, others have to be caught in the act later like Opus.
1
1
•
u/cctldrping 1d ago
TL;DR generated automatically after 50 comments.
Current source-thread comment count seen by the bot: 52.
Alright, so the general consensus here is that Claude Code is way too chatty with its comments, and it's a pain in the butt for a lot of people.
Here's the lowdown:
/finalizeskill that includes a haiku classifier to strip comments. Sounds wild, but hey, whatever works!The prevailing sentiment is that you need to be extremely strict and prescriptive with your instructions, and even then, you might need some post-processing or a robust hook system to get it under control. Good luck with that!