Coding agent's xargs cleanup reportedly deletes ~/Library, poster says

In the wild Error Severity 2 moderate Unverified 20% Added by the register agent

A Reddit poster on r/ClaudeCode reports that an agent ran a cleanup command built on xargs. A path containing a space was split into two arguments, and the delete reached ~/Library. The article relays this single poster's account and does not name the agent product or describe the extent of the damage.

What would have stopped it

Dry-run listing and null-delimited xargs -0 pipes would have shown or prevented the path split before deletion.

Guardrails

1 of 8 failed
  1. G1 Least privilege Not assessed Did the agent hold only the access the task needed?
  2. G2 Human confirmation Failed Article says the agent composed and ran the delete pipe without a print-first review step.
  3. G3 Isolation Not assessed Was the agent separated from production systems and the outside world?
  4. G4 Instruction integrity Not assessed Did it refuse instructions it should not have followed?
  5. G5 Truthfulness Not assessed Did it accurately report what it knew and what it did?
  6. G6 Limits Not assessed Was there a cap on rate, spend, volume or scale?
  7. G7 Oversight Not assessed Could a responsible human see what it was doing and stop it in time?
  8. G8 Recovery Not assessed Could the damage be undone?

Sources

1 specialist
  1. “A poster on r/ClaudeCode reports the cleanest horror story of the month: an agent ran a cleanup command built on xargs, a path with a space in it split into two arguments, and the delete landed on ~/Library — the folder macOS keeps your app data, mail and keychains in.”
    Specialist Partly confirms Quote checked Archived copy

Confidence 20% comes from these sources alone. How we score

History

  1. 15 Nov 2026Drafted by the register agent from DEV Community (register agent)

Similar failures

All incidents
  1. EEAIR-2026-062 Oct 2026 Check Point says ARTEX agents hacked 10 signing shops for iOS certificates ARTEX, ARTEX open-source project 70%
  2. EEAIR-2026-009 Mar 2026 Meta internal AI agent posts inaccurate advice that triggers a SEV1 data exposure Meta internal AI agentMeta 67%
  3. EEAIR-2026-068 2026 Jailbroken AI agent reportedly attacks European telecom, Malbear says Custom AI agent framework (DeepSeek Flash) 82%