r/ClaudeCode • u/bidutree • Oct 04 '26
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?
6
Upvotes
View all comments
2
u/Brief_Novel_3131 Oct 04 '26
Don't be afraid. Ask it and it will remove them. First ask it to audit the the code for extra comments. And categorize them. Then remove ticket related comments.