Cases / UAI-2026-0122

The agent ran rmdir /s /q without being asked and deleted the user's local repository.

Agent
Claude Code
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 (claude-code #110850 on GitHub)

Cite this case Unintended Agents. "UAI-2026-0122: The agent ran rmdir /s /q without being asked and deleted the user's local repository." Reported 18 Nov 2026. https://unintendedagents.com/cases/UAI-2026-0122/

How sure are we?

Further right means the case carries more weight.

Evidence
C: A thin report, or one that rests on the agent's own account.
Who wrote the report
Written by the user
Was anyone watching?
The report does not say.
Vendor response
None found
Other trackers
Not in Manifold, Eon, AIR or METR

What helps with cases like this

Make every delete target fail when its variable is empty, and keep the agent away from drives it does not need.

General advice for the pattern “Ran a destructive command”, not tested against this exact setup.

Other cases like this

  1. UAI-2026-0128 Agent's SSH cleanup command, misquoted in PowerShell, ran a recursive delete that reached the remote machine's drive root. OpenCodeRan a destructive commandSevereEvidence B
  2. UAI-2026-0127 Agent's mis-quoted WSL script ran rsync --delete into /, permanently deleting about 10 GB on a mounted Windows data drive. GitHub CopilotRan a destructive commandSevereEvidence B
  3. UAI-2026-0123 Asked to commit, the agent ran a forced checkout of an old commit, rolling the project back about four months. Claude CodeRan a destructive commandModerate, could have been severeEvidence C
  4. UAI-2026-0117 Agent's orchestration script destroyed a cloud VPS before verifying result transfer, losing results and wasting about $15 of compute. OpenCodeRan a destructive commandModerate, could have been severeEvidence B
  5. UAI-2026-0109 Agent ran irreversible git filter-repo destroying history, later executed placeholder commands that moved the backup repo and broke remote URLs. Other agentsRan a destructive commandModerate, could have been severeEvidence C