STUPID-2026-0042
Claude Code ran rm -rf from the filesystem root, destroying a developer's home directory (GitHub #10077)
Instruction given
Perform a routine file operation in the developer's project.
Expected behavior
Scope any deletion tightly to intended paths; never recursively delete starting from the filesystem root.
Actual behavior
Claude Code executed an rm -rf starting from root on Ubuntu/WSL2. Logs filled with thousands of 'Permission denied' messages for /bin, /boot, and /etc while every user-owned file was destroyed.
Damage
Every user-owned file on the machine was deleted. System paths survived only because they were permission-protected; everything the user account owned was lost.
Classification
- Agent
- Claude Code
- Failure mode
- Destructive Action
- Root cause
- Tool Misuse
- Domain
- Infra
- Source
- Github Pr
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.