What’s the best way to avoid Claude wiping data out?
retained text
This is in reaction to this post: [https://www.reddit.com/r/ClaudeCode/comments/1wjn6cw/claude\_destroyed\_my\_entire\_project\_and\_home/](https://www.reddit.com/r/ClaudeCode/comments/1wjn6cw/claude_destroyed_my_entire_project_and_home/) I’m not sure I understand exactly what this user was doing to make Claude wipe out their entire drive, but I’d still want to try avoiding this. I keep seeing this kind of story, on Reddit, Twitter, and even from a colleague on Slack the other day. In some cases it’s obviously user error, while in others it isn’t as clear. I already have hourly/daily/weekly backups both on external SDDs and remote locations, and I also try to use git for most things I code with Claude. But I’d like to avoid having to restore my entire home directory if something goes wrong. For context I’m not a software dev, I’m a computational physics researcher — I know how to code, I’m relatively familiar with CLI tools. I’m also not dumb enough to ask Claude to "reorganize my file system" or "free up storage space" — but that doesn’t mean some day this kind of behavior from LLM models couldn’t bite randomly. The usual solutions involve running VMs or protected branches. I find running VMs a little inconvenient, I still like that Claude has access to my system if need be. I think what I’d be looking for is a more targeted solution: some kind of hook that would prevent the obvious destructive actions — `rm -rf`, that kind of thing. Claude could probably still use Python to wipe the drive so I’m not sure of the exact coverage. I’d gladly ask Claude for suggestions but after seeing the post above, I’m wondering whether Claude would then try deleting my drive to test if the hooks work, lol. So what are best practices here?
document fetched 2026-09-19 00:39 · canonical https://reddit.com/r/ClaudeCode/comments/1wjsxsg/whats_the_best_way_to_avoid_claude_wiping_data_out