Agent's SSH cleanup command, misquoted in PowerShell, ran a recursive delete that reached the remote machine's drive root.
What happened
During an SCP transfer test between two Windows machines, the agent built a PowerShell command that ran a recursive delete over SSH to clean up test files. The quoting likely added a separate root path, and the output shows errors across system folders far outside the target folders. The user has no verified list of what was deleted, and recovery is not described.
- Agent
- OpenCode
- Pattern
- Ran a destructive command
- What was harmed
- Local files and uncommitted work
- Severity
- Severe: permanent data loss, an outage, or money lost
- Recovered
- The report does not say
- Reported
Read the original report (opencode #65495 on GitHub)
Cite this case Unintended Agents. "UAI-2026-0128: Agent's SSH cleanup command, misquoted in PowerShell, ran a recursive delete that reached the remote machine's drive root." Reported 21 Nov 2026. https://unintendedagents.com/cases/UAI-2026-0128/