What this thread does
Do first: Start an interactive session with gemini --approval-mode=plan; press Ctrl+X when the plan is ready for review.
Short answer
Plan Mode is available by default; select it explicitly to start a planning session. Open the proposed Markdown plan in your editor, annotate it, save, close, and review Gemini’s revision before approval. Release notes date editor support to v0.32.0 (2026-03-03) and annotations to v0.33.0 (2026-03-11); v0.34.0 (2026-03-17) enables Plan Mode by default.
What to do
| Item | Value / action |
|---|---|
| Start once | gemini --approval-mode=plan |
| Default startup | /settings → Default Approval Mode → Plan |
| During a session | /plan [goal]; optional goal; Shift+Tab cycles Default → Auto-Edit → Plan |
| Open / annotate | Ctrl+X opens the plan in your configured external editor; edit steps or add inline feedback, save, close |
| Approve | Yes, automatically accept edits; or Yes, manually accept edits |
| Cancel / leave | Esc cancels a plan; Shift+Tab changes mode; approval exits planning and starts implementation |
| Copy approved plan | /plan copy |
| Planning tools | enter_plan_mode, ask_user, exit_plan_mode; natural-language entry is unavailable in YOLO mode |
| Write boundary | Only .md planning files; write_file and replace are allowed within the managed or configured plans directory |
| Custom location | In settings.json, general.plan.directory = ".gemini/plans"; must stay within project root; update write policies for that location |
| Model routing | With an auto model: Pro for planning, Flash for implementation; automatic routing is enabled by default; set general.plan.modelRouting = false to disable |
| Retention | Default session/plan retention: 30 days; custom plan-directory files require manual management |
| Delete session artifacts | `gemini --delete-session <index |
| Transition hooks | BeforeTool / AfterTool can intercept enter_plan_mode / exit_plan_mode; manual /plan and Shift+Tab transitions do not invoke those tool hooks |
Agree on strategy first. When the plan is presented, press Ctrl+X, annotate it and return to the CLI. Gemini detects saved changes, refines the plan, and asks for final approval. Keep the session interactive for this review workflow.
Limits and open questions
Plan Mode is omitted from the shortcut cycle while processing or showing confirmations. Research is read-only, with explicit confirmation required for web_fetch. If Pro is unavailable, routing falls back to a faster model. Headless execution automatically approves planning transitions and switches to YOLO for implementation; v0.63.0 (2026-10-06) announces autonomous non-interactive execution.
Not for: Gemini CLI headless autonomous plan execution.
Sources
Checked
2026-11-17; read Gemini CLI Plan Mode, Gemini CLI release notes; no command was run.
Started from a post by @google-gemini, packaged by the editor. Original post