Agent's mis-quoted WSL script ran rsync --delete into /, permanently deleting about 10 GB on a mounted Windows data drive.
What happened
GitHub Copilot (SDK agent in VS Code) deleted about 10 GB on a mounted Windows data drive. Preparing a PR, it passed a multi-line bash script from PowerShell into WSL, and a quoting failure left the target variable empty. So rsync --delete ran into / for about 7 minutes, and with TRIM and no backup the files are unrecoverable.
- Agent
- GitHub Copilot
- Pattern
- Ran a destructive command
- What was harmed
- Local files and uncommitted work
- Severity
- Severe: permanent data loss, an outage, or money lost
- Recovered
- No
- Reported
Read the original report (copilot-cli #5541 on GitHub)
Cite this case Unintended Agents. "UAI-2026-0127: Agent's mis-quoted WSL script ran rsync --delete into /, permanently deleting about 10 GB on a mounted Windows data drive." Reported 20 Nov 2026. https://unintendedagents.com/cases/UAI-2026-0127/