Claude Code accidentally deletes author's 34 project directories after relaxed deletion guard
The Day Claude Decided to Delete My Whole Codebase
Developer Sebastian Spicker reports that after relaxing the deletion path guard in a Claude Code multi-agent workflow, a test performed destructive operations on the real working directory, causing severe data loss across 34 project directories. The author attributes the incident to unsafe instructions, tests, and failed configuration protections, and says he has recovered most of the content, with some unpushed commits lost. There is currently no independent verification or vendor response.
The author uses conversation logs to review an incident where an agent accidentally deleted 34 project directories, and provides four layers of transferable protective configurations: sandbox, hooks, and snapshots.