docs/ide-extensions/plan/how-it-works.mdx
Plan mode is designed to help you understand code and construct plans before making changes. It sits between Chat mode (no tools) and Agent mode (all tools), providing a middle ground where you can explore and analyze without risk.
While Agent mode has access to all tools including those that modify files, Plan mode restricts access to only read-only tools. This ensures that:
When you select Plan mode:
Plan mode includes these read-only built-in tools:
read_file): Read the contents of any file in the projectread_currently_open_file): Read the contents of the currently open filels): List files and directoriesglob_search): Search for files matching a patterngrep_search): Search file contents using regex patternsfetch_url_content): Retrieve content from web URLssearch_web): Perform web searches for additional contextview_diff): View the current git diffview_repo_map): Get an overview of the repository structureview_subdirectory): Get a detailed view of a specific directorycodebase_tool): Advanced codebase analysis capabilitiesIn addition to built-in read-only tools, Plan mode also supports all MCP (Model Context Protocol) tools. This allows integration with external services that provide additional context or analysis capabilities without modifying your local environment.
<Info> While Plan mode restricts built-in tools to read-only operations, MCP tools are not filtered by Continue. Some MCP tools may have write capabilities that could modify your system or external services. Always verify what actions your MCP tools can perform before using them in Plan mode. </Info>A typical Plan mode workflow follows these steps:
User: Help me plan a refactor to extract the authentication logic into a separate module
Plan mode:
1. Reads relevant files to understand current structure
2. Analyzes dependencies and usage patterns
3. Identifies all places that need updates
4. Creates a step-by-step refactoring plan
5. Suggests: "Switch to Agent mode to implement this plan"
Plan mode uses a dedicated system message that: