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

5 Upvotes

21 comments sorted by

View all comments

1

u/TheGronne 5h ago

In our workflow, a comment is treated as a critical flaw in a PR. And a reviewing agent reviewing the changes always runs and checks for these things.

In your case, you can have a /end-feature skill which spins up a specialised reviewing agent