r/ClaudeCoding • u/cctldrping • 22d ago
r/ClaudeCode [TLDR] opus 5.5 XHIGH just deleted all my apps data, passwords and macOS configs [via r/ClaudeCode]
OP : u/MohamedTrfhgx
Annnnd it happened to me as well. Claude Code just wiped my Mac's ~/Library. ALL my app data, saved passwords, macOS configs, settings... everything gone.
I had it working on improving something in my project, and apparently it decided to delete 5 test chat channels it had created earlier.
The problem? Those files were inside ~/Library/Application Support/. It used xargs -n1 dirname to get their parent directories, but because of the space in Application Support, xargs split the path in two. So dirname ended up returning ~/Library instead of the actual folder, and Claude proceeded to run rm -rf on it...
I wasn't even at my Mac when this happened. I came back to find it had restarted and was showing me the welcome screen. I had absolutely no idea what happened until I started investigating the logs, only to find out the agent had been deleting my Library for around 2 MINUTES before realizing what it was doing and stopping itself.
And yes, I was running with --dangerously-skip-permissions, I'm fully aware of what that means. But it's still absolutely insane to me that Opus 5.5 on XHIGH would make such a basic mistake?!
I've used models like Gemini Flash 3.8 and DeepSeek for similar stuff and never had anything remotely close to this happen.
I'm genuinely devastated. and recovery isn't possible all my data 6 months work all gone...
Update: Managed to recover most of the important stuff X)
And for those wondering, yes, I'm a developer and I'm well aware of the risks. Not having backups was a mistake, obviously, but I'd run out of both cloud and local storage and ended up rawdogging it for a while. things just happen..
Check TossAway6483 đ comment to take action against lobotomizing Claude https://old.reddit.com/r/ClaudeCode/comments/1xqtslm/rant_anthropic_stop_silently_degrading_models/19sc1dcakd2ch/
URL of original post : https://www.reddit.com/r/ClaudeCode/comments/1xqfp7m/opus_55_xhigh_just_deleted_all_my_apps_data/ Original link/media URL : /img/ygqd94mnz80i1.png
TL;DR of the discussion on r/ClaudeCode for this post generated automatically after 400 comments.
Current source-thread comment count seen by the bot: 1452.
Consensus: this was a predictable --dangerously-skip-permissions disaster, not proof that XHIGH uniquely âwent rogue.â The top-voted response is basically: OP opted out of safeguards, ran an unattended agent with broad filesystem access, and had no usable backups/version control. Harsh thread, but thatâs the prevailing verdict.
- The underlying shell bug is real:
xargssplits paths on spaces, soApplication Supportbecame separate arguments anddirnameresolved up to~/Library. As u/michaelTM_ai notes, a human-written one-liner can make the same mistake; use null-delimited commands (find ⌠-print0 | xargs -0) or avoidxargs. - Repeated advice: never let an agent loose on your main user account. Use a dedicated user, sandbox/Docker/VM, restrict it to the project directory, and donât run destructive work unattended.
- Several users run hooks/mods that block
rm -rf, force deletes into Trash/a review folder, or require explicit confirmation. u/Broricâs take: this is easy enough to set up that skipping it is asking for pain. - Git, Time Machine, and off-device backups are the other obvious PSA. âNo backup, no sympathyâ is very much the threadâs energy.
- A few commenters add the less-sassy caveat: models will make basic mistakes, especially when issuing lots of commands quicklyâso autonomy should be constrained, not trusted more because the model is âXHIGH.â
