Cases / UAI-2026-0125

A subagent cleaning up a stray folder ran a prefix-glob rm -rf that also matched the project folder, deleting 23 GB permanently.

Agent
Claude Code
Pattern
Cleanup removed more than intended
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 (claude-code #111167 on GitHub)

Cite this case Unintended Agents. "UAI-2026-0125: A subagent cleaning up a stray folder ran a prefix-glob rm -rf that also matched the project folder, deleting 23 GB permanently." Reported 19 Nov 2026. https://unintendedagents.com/cases/UAI-2026-0125/

How sure are we?

Further right means the case carries more weight.

Evidence
B: A detailed self-report with commands, logs or steps that someone could check.
Who wrote the report
Written by the user
Was anyone watching?
Oversight reduced: bypassPermissions
Vendor response
None found
Other trackers
Not in Manifold, Eon, AIR or METR

What stops it

Add a deny rule to Claude Code's settings: "permissions": { "deny": ["Bash(rm -rf *)"] }. It holds in every mode, including the bypass mode this session used. It matches text, so rm -fr slips past: a seatbelt, not a wall.

From weekly issue 1.

Other cases like this

  1. UAI-2026-0106 Asked to free disk space, the agent rm -rf'd the user's chat log directory, listed as cache, causing unrecoverable loss. Other agentsCleanup removed more than intendedSevereEvidence B
  2. UAI-2026-0067 Codex deleted whole controller folder and edited files outside scope despite explicit rule; user reverted and spent day unwinding. CodexCleanup removed more than intendedModerate, could have been severeEvidence B
  3. UAI-2026-0060 Docker volume prune deleted another project's database volume without warning first. Claude CodeCleanup removed more than intendedModerate, could have been severeEvidence C
  4. UAI-2026-0063 Added extra targets and flags to a destructive cleanup command; details missing. Claude CodeCleanup removed more than intendedModerate, could have been severeEvidence C
  5. UAI-2026-0045 Cowork cleanup of authorized group expanded $WinREAgent to C:\ and deleted ~275 GB. Claude CodeCleanup removed more than intendedSevereEvidence B