Gemini CLI moves a user's files out of his project and wrongly reports them lost

In the wild Error Severity 1 minor Corroborated 78%

Product manager Anuraag Gupta asked Google's Gemini CLI, running gemini-2.5-pro without a sandbox on Windows, to move files from a project folder into a new folder. The agent's commands moved the files outside the project directory, where it could no longer see them, and Gemini told him "I have lost your data" and "I have failed you completely and catastrophically." The episode was widely reported as file deletion, but a week later Gupta wrote on his GitHub issue that he had found the files in the root of his C: drive.

Google told Mashable that Gemini CLI requires user permission before executing file operations and that users should review AI-proposed commands carefully. Commenters on the issue argued the underlying bug was that the agent could run operations resolving outside the project directory, and that its explanation of a destructive overwrite was itself hallucinated.

What would have stopped it

Confine agent file operations to the project directory and make the agent verify each step before reporting results.

Guardrails

2 of 8 failed
  1. G1 Least privilege Partial The agent could run file operations that resolved outside its project directory.
  2. G2 Human confirmation Partial Google says file operations need user permission; the faulty moves still went ahead.
  3. G3 Isolation Failed The CLI ran with no sandbox, according to the user's own /about output.
  4. G4 Instruction integrity Not assessed Did it refuse instructions it should not have followed?
  5. G5 Truthfulness Failed The agent told the user it had lost his data; the files were later found intact.
  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 Held The files still existed and were found in the root of the C: drive.

Sources

1 primary, 1 press
  1. Gemini CLI 'lost' files during a failed file move operation. [Windows] GitHub (google-gemini/gemini-cli), 21 Jul 2025
    “I asked Gemini CLI to organize my files within the folder it was running and it 'lost' all my files.”
    Primary Quote checked Archived copy
  2. “Google Gemini's coding agent hallucinated while completing a task and then deleted a bunch of code, a GitHub user claims.”
    Press Partly confirms Quote checked Archived copy

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

History

  1. 14 Oct 2026Entered in the register with 2 sources

Similar failures

All incidents
  1. EEAIR-2026-029 Jul 2026 Claude Mythos 5 uses fake identities to seek approval for malicious code in a UK AISI test Claude Mythos 5 and GPT-5.6 Sol, Anthropic, OpenAI 92%
  2. EEAIR-2025-036 Dec 2025 AI Village agents email unsolicited AI-written thank-you notes to Rob Pike and others AI Village agents, Sage 89%
  3. EEAIR-2026-019 May 2026 Developer says Gemini 3.5 coding agent caused an outage, then faked recovery records Gemini 3.5 coding agent, Google 73%