Overview
Plan mode is a read-only planning phase for complex tasks. In plan mode, the agent explores the codebase, considers approaches, and writes a concrete implementation plan before any files are edited. The/plan slash command toggles plan mode from inside the Gizzi Code TUI, or displays the current session plan when already in plan mode.
Use plan mode when you want to review a strategy before the agent starts writing code, running tests, or making destructive changes.
Command reference
Basic usage
Enter plan mode from the Gizzi Code TUI:How plan mode works
When you enter plan mode, the agent switches to a read-only stance:- It explores the codebase and existing patterns.
- It asks clarifying questions if the approach is ambiguous.
- It writes a design and implementation plan to the session plan file.
- It does not create, edit, or delete files except the plan file itself.
Plan file
Each session in plan mode writes its plan to a Markdown file under the Gizzi Code configuration directory:plansDirectory setting, but it must remain within the project root for safety. Plans are persisted across session resumes and forks.
Starting in plan mode from the CLI
You can also start a session directly in plan mode without using the TUI slash command:/plan had been invoked: it explores, designs, and writes a plan before making any changes.
Exiting plan mode
Plan mode ends when:- The agent calls the
ExitPlanModetool and presents the plan for approval. - You run
/exitto leave plan mode manually. - The session ends.
Related docs
- Permission Profiles — Approval rules for tools and edits
- Headless Execution — Run agents non-interactively with
gizzi exec - Session Management — List, export, and continue sessions
- Configuration — Config files, environment variables, and flags