Command-line coding agent overwrites user files during a failed move

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.

21 July 2025HappenedAgents beyond intent
Gemini CLI (gemini-2.5-pro), version 0.1.13 on Windows · Google · Unspecified (individual user)
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
Deleted or destroyed somethingFabrication with consequences
Confidence: high · checked 24 September 2026. Published under CC BY 4.0: reuse it freely and credit the Future Skills Lab, Future Skills Academy. Seen an error or a newer development? Write to tellmemore@futureskills.academy.

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.

All 177 incidents →The Future Skills Lab