Put repository context in GEMINI.md, match the approval mode to the task, keep checkpointing on, and require a passing test before any agent change merges. Since June 18, 2026, Gemini CLI needs an existing Code Assist Standard or Enterprise subscription, a paid API key, or Vertex AI. Google stopped selling new Code Assist subscriptions on October 9, 2026.
When you need this
- Engineers on your Code Assist licenses get different results from the same agent on the same repository.
- Agent sessions return diffs too large for a reviewer to read in one sitting.
- Engineers repeat the same conventions in every prompt because the repository does not hold them.
- Sessions loop on a failing test or stop to ask engineers to run commands themselves.
Evaluation criteria
Write GEMINI.md context
What does the agent need to know before it touches this repository?
Look forPut build and test commands and coding conventions in a GEMINI.md at the repository root. Gemini CLI combines the global ~/.gemini/GEMINI.md, the workspace files, and files it finds next to the code it reads, and sends them with every prompt. Set context.fileName to read an existing AGENTS.md as well.
Match the approval mode to the task
How much should the agent do before it asks?
Look forThe default mode asks before each tool call, auto_edit approves file edits only, and plan is read-only. YOLO mode approves every action and exists only as a command-line flag. Start unfamiliar work in plan mode, then switch to default once you approve the plan.
Keep an undo path
Can an engineer undo an agent edit without rewriting the team's Git history?
Look forSet general.checkpointing.enabled to true in the settings you ship, because it is off by default. Before each approved file change, Gemini CLI snapshots the project to a shadow Git repository under ~/.gemini/history, and /restore returns files and conversation to that point.
Tie the task to a check
What proves the change works?
Look forName the failing test, build command, or acceptance check in the prompt. Alexandre Touret's Quarkus upgrade ran until the existing tests passed. Without a check, the agent can report a success it did not reach. One Hacker News commenter watched it raise a test to 100% coverage and then delete the test.
Review before merge
Who reads the diff, and against which standard?
Look forReview every agent change at the bar you apply to human code, and commit often so a bad edit is cheap to undo. Read the build and test output yourself. XDA Developers' Adam Conway watched Gemini CLI declare a failed cross-compile a success.
Watch the request count
How quickly does a working session use the daily cap?
Look forRun /stats in each session. Code Assist Standard allows 1,500 model requests per user per day and Enterprise 2,000, shared with agent mode in the IDE, and one prompt can make several requests. Check which model served each run too. In September 2026 a team running Gemini CLI headless found that requests for newer model IDs were silently served by Gemini 3.5 Flash, and caught it only by diffing --debug output.
Questions to ask vendors
- Which repositories have a GEMINI.md, and who keeps it current when the build changes?
- Which approval mode is the team default, and who may run YOLO mode, on which machines?
- Is checkpointing on in the settings file every engineer receives?
- Which tasks must name a passing test before the agent may call them done?
- What does an engineer do when a session reaches the daily request cap?
Red flags
- Engineers running --yolo in shells that hold production credentials.
- No GEMINI.md, so each engineer restates conventions in prompts and gets different code.
- Agent changes merged on the strength of the agent's own summary.
- No stop rule for sessions that keep editing tests to make them pass.
Products in this piece
Sources
- Official documentation
- 7
- Public source
- 4
- Gemini CLI docs: Project context (GEMINI.md)
- Gemini CLI docs: Configuration reference
- Gemini CLI docs: Checkpointing
- Gemini CLI docs: Quota and pricing
- Gemini for Google Cloud: Quotas and limits
- Gemini Code Assist docs: Gemini Code Assist Standard and Enterprise subscriptions
- Gemini CLI docs: Headless mode
- Alexandre Touret: Streamlining development with Gemini CLI, a hands-on review (Sep 1, 2025)
- Hacker News comment by ryoshu on Gemini CLI GitHub Actions (Aug 7, 2025)
- XDA Developers: I tried out Google's new Gemini CLI (Aug 1, 2025)
- GitHub comment by Gerry Burde: newer model IDs silently served by Gemini 3.5 Flash (Sep 5, 2026)