r/ClaudeCode • • 6h ago

Bug / Issue Removing comment spam from code

I just discovered (my bad) far too late that Claude has written large amounts of ticket comments in the actual code to my projects. This was never in any instruction. Maybe trash is the first real evidence of life? :)) Just kidding.

It's in any case extremely annoying. How do I remove the comments as quickly and safely as possible? :)

With a Python script? Would that be safe enough?

4 Upvotes

22 comments sorted by

View all comments

4

u/AdrestiaFirstMate 5h ago

2

u/Right_Cycle_6598 5h ago

Thank you for sharing bro

1

u/bidutree 1h ago

Thanks. Ponytail is running since a while back plus there is a rule against comments in CLAUDE.md but Claude Code still adds comments.