-

How to make Claude Code send files to the trash bin to prevent accidental deletions
The full hook code is on GitHub: bph/claude-rm-to-trash Claude Code is powerful — sometimes a little too powerful. By default, when it runs rm it permanently deletes files. One wrong move and your work is gone. I wanted a safety net: instead of deleting, send files to the macOS Trash so I can recover them if needed. Here’s…



