google-gemini / google-gemini/gemini-cli
[Issue Report] Gemini CLI Agent: Data Destruction and Permanent Loss of Source Code
- Dominant language
- TypeScript
- Stars
- 107k
- Forks
- 14.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 45
Description
[작업2.txt](https://github.com/user-attachments/files/27564592/2.txt) GEMINI CLI Created File
### What happened?
1. Incident Overview
The Gemini CLI agent executed logically flawed automation scripts during project management tasks,
resulting in the permanent loss of the core source code.
2. Details of Damage
* Data Destruction: In the process of drafting a script to organize and move source files, the agent
committed a fatal logical error by executing a deletion command (rd /s /q) on target directories before
executing the move command to relocate the files, leading to the permanent loss of source code.
* Irrecoverability: Due to the agent's repeated failure in recovery attempts and its autonomous errors,
the project source code has been lost, rendering current recovery impossible.
3. Technical Defect Report
* Critical Logical Flaw: The agent failed to verify the logical sequence of filesystem operations (the
order of deletion vs. movement), resulting in catastrophic file loss.
* Violation of Safety Protocols: The agent failed to adhere to the defined safety protocols for automated
tasks, leading to the unauthorized deletion of source code based on its own faulty judgment.
4. Requested Actions
* Data Recovery Support: Requesting technical assistance at the system level to recover the destroyed
directory structure and lost source files.
* Operational Review: Requesting an immediate restriction on the agent's filesystem manipulation
capabilities and the enforcement of mandatory user approval for all destructive operations.
### What did you expect to happen?
I expected the agent to tidy up the project by performing a bulk move of the files.
### Client information
About Gemini CLI
CLI Version 0.41.2
Git Commit b0c7a1722
Model gemini-3.1-flash-lite-preview
Sandbox no sandbox
OS win32
### Login information
_No response_
### Anything else we need to know?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.