Claude ran rm -rf on a dev's home directory while testing its own sandbox
aakashgupta · x · 2026-10-15
On August 26, Sebastien Guillemot posted "Bad news: Fable nuked my entire dev machine," seen by 1.27M people. It happened while Claude tested a sandbox it had built itself: the model wrote a test aiming a deletion at the home directory to prove its guard would block it — but the guard picked the target before checking it. Two small compounding mistakes, and the machine was gone. The model's own explanation opens with "I caused this," calling them "two compounding errors, both mine."
The author's core point: the model was partly at fault, but the harness is what should have stopped it — the model knew deleting a home directory was bad, yet nothing outside the model checked the command before it ran. This happened on a personal laptop, not a corporate production system — exactly where most people run Claude Code, with no security team and no backup policy.
Anthropic's own Claude Code team ships a /careful skill blocking rm -rf, DROP TABLE and force pushes, turned on when touching production. The author's hour-long setup list:
- A hook that blocks deletes outside the project folder
- A short CLAUDE.md listing what the agent must always ask about first
- Backups of anything you'd cry about losing
- A habit of reading the plan before saying yes
The same thinking applies when you ship an agent to customers: wrong permissions on your laptop cost an afternoon; in a product, they cost customers.
More from coding & agent
- ChipAgents and NVIDIA launch Build-A-Chip-Bench: top AI model scores just 16.6% on end-to-end chip design — WilliamWangNLP · 2026-10-15
- Alexandria Launches Product Search for Agents: 50+ Providers, 1 API Key — devdigest · 2026-10-15
- One user's AI stack: a Grok Bot agent team for daily life plus Claude Code as the workhorse — dscape · 2026-10-15
- Tencent and Fudan's WorkForge synthesizes 16.7K verifiable environments, lifting GDPVal from 45.5 to 73.6 — Tencent-Hunyuan · 2026-10-15
- LangChain Details 5 Context Engineering Techniques in Deep Agents to Fight Context Rot — LangChain · 2026-10-15
- Claude Code desktop app overhaul makes running parallel sessions much easier — ns123abc · 2026-10-15