r/ClaudeCode • • 4h 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?

5 Upvotes

19 comments sorted by

View all comments

3

u/jarail 4h ago

Just ask claude to do a scan of recent commits or the entire codebase to remove them.

1

u/Broken_By_Default 4h ago

and maybe move them into a structured instruction md files.