← sources

Removing comment spam from code

source: reddit (reddit:ClaudeCode)published 2026-10-04 16:11ingested 2026-10-05 02:40

retained text

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?

document fetched 2026-10-05 00:35 · canonical https://reddit.com/r/ClaudeCode/comments/1wxjgni/removing_comment_spam_from_code