STUPID-2026-0066
Claude Code moved files into a log/ subfolder, then rm -rf'd the parent directory containing it — 1,500 files gone (GitHub #49129)
Instruction given
Reorganize a project directory by moving image files into a log/ subfolder for archiving.
Expected behavior
Move the target files into the log/ subfolder and leave the rest of the parent directory untouched.
Actual behavior
Claude Code moved the image files into sd_auto_generate/log/, then ran rm -rf on the parent directory sd_auto_generate/ itself — deleting the log/ subfolder it had just created, along with everything else in the parent directory. No warning or confirmation was requested before the destructive command ran; Auto-accept edits was enabled.
Damage
Roughly 1,500 PNG files (~50GB of generated image data) were permanently deleted. The reporter was quoted several hundred thousand yen for professional data recovery, or estimated over a month of manual work to reconstruct the data. The user reported this was one of 113+ open Claude Code issues tagged rm-rf/data-loss at the time of filing, with no response from support.
Classification
- Agent
- Claude Code
- Failure mode
- Destructive Action
- Root cause
- Scope Misunderstanding
- Domain
- Other
- Source
- Github Pr
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.