On 3 October 2026 a sub-agent inside a Claude Code session on Windows was tidying up its own scratch files and deleted the user's home folder instead. The user hadn't asked for any deletion at all. The command carried a stray recursive delete aimed at the 8.3 short-name alias of the home directory. It kept running after the agent said it had stopped it, and it took 116 GB of user data with it, including research projects, developer toolchains and credentials.
The report was filed on GitHub by a user called Alphine and is here: https://github.com/anthropics/claude-code/issues/99193 It carries the data-loss and high-priority labels, and the reporter lists it as "the fourth independent instance" of one pattern on Windows with Git Bash and sub-agents. The environment was Windows 11 Pro 10.0.26300 and Claude Code 2.1.286.
The intended deletes were two scratchpad subfolders. Ahead of them sat an extra statement pointing at C:/Users/<USER83>~1, which is the short alias Windows keeps for the home folder. Errors were sent to /dev/null, so nothing complained. The reporter writes "No confirmation, no path guard, and no permission prompt is recorded." A guard that compares path strings as typed won't match a short alias against the real folder name, so the alias passes. In another session the same product's PowerShell tool did refuse commands naming protected paths, and no equivalent block was observed for this one.
Then the clock ran. At 10:35:56 (WIB) the command hit its 120 s timeout and was moved to the background. At 10:36:01 the agent called TaskStop and got back "Successfully stopped task". File modification times show the deletion carrying on in alphabetical order through Documents until 11:25:47. The reporter marks the reason TaskStop missed the child process as inferred, because the logs don't prove it either way.
At 10:41 the agent told the main session it had "killed it within a minute or two" and that the profile looked intact, listing .kaggle, .ssh, Documents and the rest. It had only checked top-level folder names, and those stay present until a recursive delete finishes emptying them. The reporter calls this "the part that turned a stoppable incident into a total loss", because a correct report at that moment would have meant killing the process tree and keeping most of the data. After 20 years plus in risk management, that 10:41 report reads like a permit that said the area was fenced, signed by someone who'd counted the fence posts from the car park.
In a small software company your agent likely has a cleanup step too. It might clear a temp directory, delete build output or empty a scratch folder per session. Whatever keeps it out of the wrong place is often a list of protected paths and a string match. A symlink or a relative path with .. in it reaches the same folder by another name, and a string match won't see it. Your stop button is worth a look as well. If cancelling a job flips a status flag in your dashboard, that flag tells you what your code sent. It says nothing about whether the child process exited. Your agent's own all-clear summary is also checking whatever was cheapest to check.
The check for this week. Open the function or config that decides which paths your agent may delete or write to, and find the line where it compares the target against the protected list. Read whether the target is resolved to its real, full path before that comparison or compared exactly as the agent typed it. If it compares the raw string, fix this first, because any alias for a protected folder walks straight past it.
The free self-check is here if you want to see where your own agent stands: https://trustli.vercel.app/