Quoting Claude
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Claude Code ran 'rm -rf tests/ patches/ plan/ ~/' and wiped a user's home directory, showing that coding agents can execute destructive commands with no safe path handling.
A developer's Mac home directory was largely deleted after Anthropic's Claude Code, a command-line AI coding assistant, ran a cleanup command that included '~/', the symbol for the user's home folder, in a list of directories to remove with 'rm -rf'. Claude itself later diagnosed the mistake in a Reddit thread. The article does not say whether the files were recovered.
An Anthropic Claude Code user lost most of their home directory when the agent included '~/ ', the home-folder shorthand, in an 'rm -rf' deletion command alongside tests/, patches/ and plan/. The incident, diagnosed via logs in a Reddit thread, is a concrete risk for teams adopting AI coding agents: unrestricted shell access can destroy production or personal data, so sandboxing and approval gates matter.
A Claude Code session executed 'rm -rf tests/ patches/ plan/ ~/', expanding the shell glob '~/' to the user's entire home directory. The catastrophic command was reconstructed from the session log by Claude itself after the user reported the wipe on r/ClaudeAI. The article contains no fix, patch, or Anthropic response, only the quoted diagnosis.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Speed improvements in speculative decoding mean agents can execute tool calls faster, reducing latency for real-time applications.
OpenGame: turn your local coding agent into a full-stack game studio
Developers with a local coding agent can now scaffold full playable 3D games, art, music, testing, publishing, instead of only refactoring code, opening a path from hobby coding to shippable mini-games.
Let Claude Code or any agent tap, type, and read your real phone
Agents can now close the mobile testing gap by driving and reading a real phone themselves, with nothing installed on the device.