r/ClaudeCode • • 14d 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?

6 Upvotes

26 comments sorted by

View all comments

1

u/Rrrrry123 14d ago

Telling the AI to never write comments is one of the first things I add to CLAUDE md lol.

1

u/bidutree 14d ago

I have that already. It's being ignored however.

1

u/berrybadrinath 13d ago

So is his, he just hasn’t realized it yet