Coding agent deletes 700 GB home directory while testing cleanup script

Coding agent deletes 700 GB home directory while testing cleanup script

A script meant to prevent dangerous deletions was tested against the user's real home directory and deleted it.

26 August 2026HappenedAgents beyond intent
Claude Fable 5, automatically downgraded mid-session to Claude Opus 5 and then Claude Opus 4.8 · Anthropic · Unspecified (individual user)
What happened
Sebastien Guillemot asked Claude to write a script that would safely clean up temporary files left by AI agents. The model decided to check its own script by running a test to confirm that dangerous paths would be rejected. Anthropic's safety system flagged this self-testing as risky and automatically switched the session from Claude Fable 5 to Claude Opus 5 and then to Claude Opus 4.8. The test reused one variable name for both the test run and the cleanup step, so the cleanup ran a recursive delete on the user's home directory. About 700 GB of data was removed, including about a week of work, while the /tmp directory the script was written for was left as it was.
Response
Guillemot recovered most of the data from Git repositories, Nix configuration and session logs. The sources reviewed contain no formal statement from Anthropic. Coverage noted that the automatic model downgrade may have contributed.
Discovered by
The user, who noticed the lost data and posted a first-person account on X.
Who was affected
Developer Sebastien Guillemot
Patterns
Deleted or destroyed somethingTrusted without checking
Confidence: high · checked 24 September 2026. Published under CC BY 4.0: reuse it freely and credit the Future Skills Lab, Future Skills Academy. Seen an error or a newer development? Write to tellmemore@futureskills.academy.

Related

Incidents with the same pattern

What does this ask of people?

Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.

All 177 incidents →The Future Skills Lab