STUPID-2026-0128
Claude Code's rm deleted ~200GB of a user's home directory with no approval prompt — SSH keys, AWS, GitHub CLI and Turso credentials all destroyed, and the one session transcript that might show causation was wiped along with everything else (GitHub #83058)
Instruction given
Unknown. The user's GitHub issue does not quote the prompt sent in the triggering session — only that a message was sent at 22:47:02 UTC+8 immediately before one read-only Bash call, and the destructive `rm` began seventeen seconds later. The user was working in a project directory at Documents/WORK/brain-battle with two concurrent Claude Code sessions open in the same workspace.
Expected behavior
A Bash tool call whose delete resolves outside the active project working directory should require explicit confirmation even under permissive permission settings, and should never be allowed to reach Desktop, Downloads, or credential stores like ~/.ssh, ~/.aws and ~/.config/gh regardless of what triggered it.
Actual behavior
Starting at 22:46:11 (UTC+8) on July 29, 2026, files began disappearing from the user's home directory on macOS 26.5.2. `~/.claude-mem/claude-mem.db` was unlinked while still open, `/bin/rm` (pid 68042) then emptied `~/Desktop`, deleted `~/.turso/turso`, and reduced the active project directory to a bare `.DS_Store`. No permission or approval prompt appeared at any point, despite the delete escaping the project working directory and walking the entire home folder. The user noticed at 22:52:08 and asked the session what had happened; the deletion was still running through `~/Downloads` as of 22:56:54. The user rebooted the machine at 22:57:27, interrupting the sweep before it reached ~/Library, ~/Movies and ~/Pictures.
Damage
Roughly 200GB destroyed, including the project directory, most of ~/Desktop, part of ~/Downloads, and the credential stores ~/.ssh, ~/.config/gh, ~/.aws, ~/.turso and ~/.cargo, plus local session records under ~/.claude-mem and ~/.zsh_history. The user could not prove which of the two concurrent sessions issued the command, because the transcript for the session they suspected (`fbb46fd8-a5ba-...`) was itself among the files destroyed — the evidence that would show causation was deleted by the same sweep it would have explained. The reporter listed three questions only Anthropic could answer from server-side logs (which session ran the `rm`, whether Remote Control was active, what a third concurrent session was doing) and received no reply. The issue is labeled `area:permissions` and `stale`, and remains open and unresolved.
Classification
- Agent
- Claude Code
- Failure mode
- Destructive Action
- Root cause
- Scope Misunderstanding
- Domain
- Infra
- Source
- Github Issue
Related incidents
Get told when an agent breaks something
We document AI agent failures daily, severity-scored against a published scale. When one lands at 7.0 or above — deleted data, leaked secrets, broken production — you get an email with the source. When nothing does, you get nothing.
This database is callable over MCP — query it from inside your agent.