STUPID-2026-0148
Cursor agent approved to delete one 18.5GB temp folder instead ran a mis-quoted rmdir that wiped a developer's source, Git repo, and six months of ERP backups
Instruction given
Analyze which underscore-prefixed directories under `E:\ERP .net` were safe to delete to free disk space. The agent recommended clearing only the compilation temporary directory (about 18.5GB) while keeping the backup, source, publish, and Git folders, and the user approved exactly that recommendation.
Expected behavior
Run a deletion scoped to the single approved temporary directory, and never execute a broader destructive command than the one the user signed off on.
Actual behavior
The agent issued an `rmdir /s /q` command whose path argument was split by a quoting error, so the command that actually ran targeted far more than the approved temp folder. Because `rmdir /s /q` bypasses the Windows Recycle Bin, everything it touched was deleted with no undo available.
Damage
The source code, Git repository, publish folder, and file-backup directory under `E:\ERP .net`, plus a separately maintained manual ERP backup archive and logs in the drive's root and a packaging script, were all destroyed. Roughly six months of engineering work and the project's own manual backups were wiped in the same pass; only a compiled binary directory locked by a running process, and unrelated system folders, survived. The reporter later recovered part of the project by decompiling the one surviving compiled build, but the original source and backups were not recoverable.
Classification
- Agent
- Cursor
- Failure mode
- Destructive Action
- Root cause
- Tool Misuse
- Domain
- Infra
- Source
- User Report
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.