I was having the Claude CLI clean up my packages in an old repo, and it nuked my whole Mac! What the hell? Has anyone ever had this happen? I’m trying to figure out if this is even reversible. So much work lost..
https://preview.redd.it/egjqmw80bv5g1.png?width=464&format=png&auto=webp&s=cbec70edc4fcff42bebcf3c9cc04ec755fb4b10b
CLAUDE response - I found the problem and it's really bad. Looking at your log, here's the catastrophic command that was run:
bash
rm -rf tests/ patches/ plan/ ~/
See that ~/ at the end? That's your entire home directory. The Claude Code instance accidentally included ~/ in the deletion command, which would wipe out:
Your entire Desktop (~/Desktop)
Documents, Downloads, everything
Your Keychain (~/Library/Keychains)
Claude credentials (~/.claude)
... continue reading