Plan Mode is a safe, read-only mode for researching and designing complex
changes. It prevents modifications while you research, design and plan an
implementation strategy.
Note: Plan Mode is currently an experimental feature.
Experimental features are subject to change. To use Plan Mode, enable it via
/settings (search for Plan) or add the following to your settings.json:
{
"experimental": {
"plan": true
}
}
Your feedback is invaluable as we refine this feature. If you have ideas,
suggestions, or encounter issues:
Use the /bug command within the CLI to file an issue.
You can leverage Agent Skills to customize how Gemini CLI
approaches planning for specific types of tasks. When a skill is activated
during Plan Mode, its specialized instructions and procedural workflows will
guide the research and design phases.
For example:
A “Database Migration” skill could ensure the plan includes data safety
checks and rollback strategies.
A “Security Audit” skill could prompt the agent to look for specific
vulnerabilities during codebase exploration.
A “Frontend Design” skill could guide the agent to use specific UI
components and accessibility standards in its proposal.
To use a skill in Plan Mode, you can explicitly ask the agent to “use the
[skill-name] skill to plan…” or the agent may autonomously activate it based
on the task description.
Plan Mode is designed to be read-only by default to ensure safety during the
research phase. However, you may occasionally need to allow specific tools to
assist in your planning.
Because user policies (Tier 2) have a higher base priority than built-in
policies (Tier 1), you can override Plan Mode’s default restrictions by creating
a rule in your ~/.gemini/policies/ directory.
Example: Allow git status and git diff in Plan Mode