Gemini CLI Gets a New Safe Planning Mode
Google has introduced a new feature called plan mode for its open-source software engineering tool, Gemini CLI. This addition helps developers analyze and understand their codebases without risking accidental changes. Announced on March 11, plan mode makes it easier to plan complex updates or migrations safely and efficiently.
What is Plan Mode and How Does It Work?
Plan mode allows Gemini CLI to operate in a read-only state. When activated, the tool focuses on reviewing the code, dependencies, and documentation. It does not modify any files during this process, which makes it safe for careful analysis. Users can start plan mode at any time by typing /plan, asking the agent to “start a plan,” or cycling through approval modes with Shift+Tab.
While in plan mode, Gemini CLI can navigate the codebase, run searches for specific patterns, and read documentation. It can also map out dependencies and suggest strategies for implementing new features or migrations. This helps developers get a clear picture of what needs to be done before making any actual changes.
Enhanced Interaction and Clarification Features
One new feature is the ask_user tool, which allows Gemini CLI to pause its analysis and ask targeted questions. This helps clarify a user’s goals or gather missing information, ensuring that the planning process aligns with what the user wants to achieve. The tool can ask about specific requirements or suggest next steps based on the environment.
Google has also made plan mode the default setting for all users, emphasizing its importance for safe and thorough planning. Users can switch in and out of plan mode easily, giving them control over when they want to analyze versus when they want to execute changes.
During plan mode, Gemini CLI is limited to read-only commands such as read_file, grep_search, and glob. These tools allow it to validate assumptions, explore code, and generate insights without risking unintended modifications. When the analysis is complete, users can review the proposed strategy and decide how to proceed.
Overall, the new plan mode makes Gemini CLI a more powerful and safer tool for software engineers. It helps teams understand complex codebases and plan updates carefully, reducing the risk of errors during critical changes.















What do you think?
It is nice to know your opinion. Leave a comment.