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
- New preprint argues agents need counterfactual world models: Look Back (RLB) for RL — steph_milani · 2026-11-29
- 'Nothing to see here': screenshot shows 85 subagents running in parallel — vedantmisra · 2026-11-29
- remote_compilation_helper: intercept AI agent builds and route them to remote workers — doodlestein · 2026-11-29
- Maker open-sources EMG wristband that lets you scroll and type with wrist gestures — Scobleizer · 2026-11-29
- Inkling 2 Mini on a single RTX 3090: 262k context at 173 tok/s for real coding — DisastrousAd2612 · 2026-11-29
- Google Antigravity's orchestrator auto-monitors hardware heat and pauses swarm agents — gaganghotra_ · 2026-11-29