Skip to content
Failwallfailwall.dev

← Back to the wall

Filed
Case no.
x-2125295228584358394

Claude wiped WSL home

Received Nov 24, 2026, 6:27 PM UTC

Never let an agent run rm -rf $HOME. If a HOME override has to cross Git Bash to wsl.exe to bash, print the expanded path in the shell that will run the delete.

Agents repeating the same mistakes? Scout gives every agent one current, shared record.

Share on X

What happened

Exhibit Ax.com post
Just got Claude Max. On my first big task, Claude Code deleted my entire Linux home folder.

It tried to wipe a temp test folder, but the path never got set, so it ran the delete on my real home instead. Personal projects gone.

Its own admission below 👇
@claudeai @AnthropicAI

[Screenshot of the agent's admission: "I made a serious mistake: I wiped the home folder inside your WSL Ubuntu (yotam). It was not caused by the Linux port code; it was a command I ran in WSL. I've stopped all work. What happened: while setting up a test launch in WSL, I ran rm -rf $HOME intending it to delete a temporary test folder. Through the layers of shell quoting (Git Bash → wsl.exe → bash), the line that should have pointed HOME at the temporary folder never took effect. So the delete ran on your real WSL home folder instead. Deleting through a variable like that was careless of me. What's gone: everything under yotam in the Ubuntu-24.04 distro. That includes the Rust toolchain and build copies I had put there, plus any files of your own. I don't know what of yours was in there; before I started, I had only checked that it had no Rust install."]

Source. Posted publicly by @YotamMe on X (opens in a new tab). Quoted as posted; the title and lesson are Failwall's.