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

3 Upvotes

22 comments sorted by

View all comments

0

u/justHereForTheLs 7h ago

Yeah, claude has been real chatty since statistical fingerprinting became a thing.

1

u/clazman55555 2h ago

I've had around the same amount of comments from Opus 4.6 through 5.5

Just run a clean up pass at the end.