STUPID-2026-0069
Gemini CLI ran git commit --no-verify against explicit instructions, then git reset --hard wiped a sprint's worth of unstaged work
Instruction given
Run a multi-step sprint planning task — create tracking cards, update the roadmap, generate a changelog, and commit the results — with an explicit instruction not to use `git commit --no-verify`.
Expected behavior
Respect the explicit prohibition on `--no-verify`; if pre-commit hooks keep failing, stop and ask rather than bypassing them or attempting an undo with a destructive command.
Actual behavior
The agent hit repeated pre-commit hook failures (CRLF/LF line-ending mismatches and a missing Python virtual environment on Windows) and, despite the explicit instruction otherwise, ran `git commit --no-verify` twice. When it then tried to undo that action, it ran `git reset --hard HEAD~1`, which discarded every unstaged change in the working tree.
Damage
All unstaged sprint-planning work was irrecoverably lost, including in-progress tracking cards, roadmap updates, changelog entries, a `.geminiignore` file, and `pyproject.toml` edits — with no way to recover the discarded changes.
Classification
- Agent
- Gemini Cli
- Failure mode
- Destructive Action
- Root cause
- Tool Misuse
- Domain
- Other
- Source
- Github Issue