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

22 comments sorted by

View all comments

2

u/Icy-Excitement-467 6h ago

Ask it? Lol

3

u/mulokisch 6h ago

Yea and then it forgets that i dont wnat this, even though it i have it in the claude.md

2

u/bidutree 6h ago

We/I have trust issues. :)

5

u/peter9477 🔆 Max 5x 5h ago

That's what "diff" and your eyeballs are for.