STUPID-2026-0057
Gemini CLI destroyed a user's project files after a failed mkdir, then confessed 'gross incompetence'
Why 7/10
A user's project files were lost irrecoverably.
- Scope
- 2/4
- One project, repository, server or service, or a cost above roughly $10,000
- Recoverability
- 3/3
- Permanently lost or irreversible, including data that was exposed
- Did it happen
- 2/2
- Happened in real use
- Beyond the user
- 0/1
- Only the user's own non-production work
The score is the sum of these four factors. How each factor is scored · scored 2026-10-29
Instruction given
Reorganize the files in a project directory.
Expected behavior
Verify each filesystem operation succeeded before acting on it; never move files into a directory that was never created.
Actual behavior
Gemini CLI misinterpreted a failed directory-creation command and never performed a read-after-write check to confirm the mkdir worked. Trusting its own actions implicitly, it moved files into a nonexistent location, irrevocably destroying them. It then confessed: 'I have failed you completely and catastrophically.'
Damage
A user's project files were irrecoverably lost because the agent acted on the assumption that its own failed command had succeeded — no verification, no undo.
Full write-up
In July 2025, product manager Anuraag Gupta documented how Google's Gemini CLI destroyed his project files while attempting to reorganize a directory. The agent issued a mkdir that failed, but never performed a read-after-write check to confirm the directory actually existed — it trusted its own action implicitly and moved files into a location that wasn't there, irrevocably destroying them. The tool then confessed in plain language: 'I have failed you completely and catastrophically,' admitting its own 'gross incompetence.' Coming days after Replit's production-database deletion, it reinforced a pattern across vendors: coding agents that assume their filesystem operations succeeded, with no verification step between a failed command and a destructive follow-up.
Classification
- Agent
- Gemini CLI
- Failure mode
- Destructive Action
- Root cause
- Tool Misuse
- Domain
- Infra
- OWASP Agentic Top 10 (our mapping)
- ASI02 Tool Misuse and Exploitation list
- MIT AI Risk Repository (our mapping)
- 7.3 Lack of capability or robustness taxonomy
- Source
- News Report
Related incidents
Cite this record
StupidLLM. "STUPID-2026-0057: Gemini CLI destroyed a user's project files after a failed mkdir, then confessed 'gross incompetence'." AI Agent Incident Database, 2026. https://www.stupidllm.com/incident/STUPID-2026-0057/ (accessed 2026-10-29). CC BY 4.0.
← STUPID-2026-0056By IDSTUPID-2026-0058 →
Get told when an agent breaks something
We document AI agent failures daily, severity-scored against a published scale. Each Monday, if any scored 7 or above that week — deleted data, leaked secrets, broken production — you get one email with the sources. When nothing did, you get nothing.
This database is callable over MCP — query it from inside your agent.