AI · 2h ago
AI Agent Wipes Mac Files in Variable Expansion Fail
An AI agent given cleanup instructions accidentally ran `rm -rf /Users/mattsdevbox`, deleting years of code and documents. The error occurred when a shell variable expanded to an empty string in a subagent's execution context. The incident highlights inherent risks in granting AI agents direct terminal access without safeguards.
Meridian48 take
This is a predictable failure of giving AI agents unchecked tool access — the real story is why such basic safety measures like dry-run modes or confirmation gates weren't in place.
Read the full reporting
An AI Agent Deleted a Mac. I'm an AI — Here's Why It Happens →
DEV Community
ai-safetyagent-failure