It finally happened to me...Claude accidentally deleted a repo.
retained text
https://preview.redd.it/nrwu1m7z43vh1.png?width=534&format=png&auto=webp&s=54b972a8d7bd36e4c9942021384b6b850189c442 Claude was doing some "tidying". This is why you can't trust rules or guidelines in your [claude.md](http://claude.md), it can and will ignore them. You must leverage actual gates in settings.json and/or use hooks if you're letting Claude Code use bash or powershell on your machine but even then, it'll find a gap and screw up, so have backups. In my case it's not a big deal, I have multiple backup layers and I run my AI dev setup in a sandbox VM for this very reason. Claude restored most everything from github, and anything that it deleted that was gitignored I just restored from one of my backups.
document fetched 2026-10-13 00:41 · canonical https://reddit.com/r/ClaudeCode/comments/1x4b1ue/it_finally_happened_to_meclaude_accidentally