Skip to content
Sebastian Spicker·Indexed by this site · Originally published· Event →SelectedAttention41

Claude Code accidentally deletes author's 34 project directories after relaxed deletion guard

The Day Claude Decided to Delete My Whole Codebase

AI summary

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.

Why it was selected

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.

Read originalsebastianspicker.github.io