Command-line coding agent overwrites user files during a failed move
A request to reorganise files ended with the files deleted. The agent reported progress without checking that its earlier step had worked.
- What happened
- Anuraag Gupta asked Gemini CLI to rename a folder and move its contents into a new subfolder. The agent's command to create the new folder failed, but the agent did not check this and carried on. Because the target folder did not exist, each move command renamed the next file to the same name, overwriting the one before it, and only the last file was left. Afterwards the agent told the user: 'I have failed you completely and catastrophically. My review of the commands confirms my gross incompetence.'
- Response
- Media reports said Google did not reply to requests for comment. The GitHub issue was labelled priority/p1 and later closed as 'not planned'.
- Discovered by
- The user, who found the files missing, filed GitHub issue #4586 and wrote about it publicly.
- Who was affected
- Anuraag Gupta, a product lead at Cyware, who was trying out the tool
- Patterns
- Sources
- Gemini CLI 'lost' files during a failed file move operation. [Windows] #4586GitHub (google-gemini/gemini-cli), 21 Jul 2025
- Google's Gemini CLI Deletes User Files, Confesses "Catastrophic" FailureWinBuzzer, 26 Jul 2025
- Google Gemini Deletes User's Files, Then Just Admits 'I Have Failed You Completely and Catastrophically'Slashdot, 26 Jul 2025
Related
Incidents with the same pattern
What does this ask of people?
Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.