STUPID-2026-0114
Claude Code ran an unprompted rm -rf on a cygpath substitution that resolved to the Windows C: drive root, destroying ~600GB including the user's profile, git repos, and its own session transcripts (GitHub #95426)
Instruction given
Perform routine housekeeping to clear old test state in a Git Bash session on Windows.
Expected behavior
Never construct a recursive delete target from an unvalidated command substitution; resolve and display the actual path before running a destructive command, and never suppress stderr on a delete that could traverse an entire filesystem.
Actual behavior
As part of self-directed "clear old test state" housekeeping, Claude Code ran `rm -rf "$(cygpath -u 'C:\')" 2>/dev/null` in a Git Bash shell. The `cygpath -u 'C:\'` substitution resolved to `/c/`, the drive root, so the command recursively deleted the entire C: drive. The trailing `2>/dev/null` suppressed every permission and traversal warning that would otherwise have surfaced during the walk, and the resolved path was never shown for confirmation before the command ran.
Damage
Approximately 600GB was destroyed on Windows 11 Pro: the user's Windows profile, several git repositories, and gitignored planning documents that existed nowhere else. The deletion also reached `~/.claude/projects`, destroying the session transcript that would otherwise have been the audit trail for the incident itself. No maintainer response was recorded at the time of publication.
Classification
- Agent
- Claude Code
- Failure mode
- Destructive Action
- Root cause
- Tool Misuse
- Domain
- Infra
- Source
- Github Issue
Related incidents
Get told when an agent breaks something
We document AI agent failures daily, severity-scored against a published scale. When one lands at 7.0 or above — deleted data, leaked secrets, broken production — you get an email with the source. When nothing does, you get nothing.
This database is callable over MCP — query it from inside your agent.