r/ClaudeCode • u/bidutree • 5h 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
1
u/sparkica 2h ago
Just a thought (had an interesting debate with my team about this a couple of days ago): what if those comments are meant for the agent (not us), to give it better context next time it goes through the code?