| 1 | --- |
| 2 | title: "Plan Mode" |
| 3 | description: "Explore and understand code safely with read-only tools" |
| 4 | --- |
| 5 | |
| 6 | ## What is Plan mode? |
| 7 | |
| 8 | Plan mode is a restricted environment that provides read-only access to your codebase. It's designed for safe exploration, understanding code, and planning changes without making any modifications. |
| 9 | |
| 10 |  |
| 11 | |
| 12 | ### Key features |
| 13 | |
| 14 | - **Read-only tools**: Access files, search, and analyze without risk |
| 15 | - **Safe exploration**: Perfect for understanding unfamiliar codebases |
| 16 | - **Planning focus**: Develop implementation strategies before execution |
| 17 | - **MCP support**: Works with all MCP tools alongside built-in read-only tools |
| 18 | |
| 19 | ### How it works |
| 20 | |
| 21 | Plan mode filters the available tools to only include read-only operations. This means you can: |
| 22 | - Read any file in your project |
| 23 | - Search through code with grep and glob patterns |
| 24 | - View repository structure and diffs |
| 25 | - Fetch web content for additional context |
| 26 | - Use all MCP tools |
| 27 | |
| 28 | But you cannot: |
| 29 | - Create, edit, or delete files |
| 30 | - Run terminal commands |
| 31 | - Make any system changes |
| 32 | |
| 33 | ### Getting started |
| 34 | |
| 35 | Select "Plan" from the mode selector below the chat input, or use `Cmd/Ctrl + .` to cycle through modes. |
| 36 | |
| 37 |  |
| 38 | |
| 39 | For detailed information about tools and usage, see the [Agent documentation](/features/agent/how-it-works), which covers both Agent and Plan modes. |
| 40 | |
| 41 | ### Common workflow |
| 42 | |
| 43 | 1. **Start in Plan mode** to explore and understand |
| 44 | 2. **Develop your approach** with the model's help |
| 45 | 3. **Switch to Agent mode** when ready to implement |
| 46 | |
| 47 | <Tip> |
| 48 | Plan mode shares the same interface and context features as Chat and Agent modes. You can use `@` context providers and highlight code just like in other modes. |
| 49 | </Tip> |