Guide · Plan mode · ★☆☆☆☆
Claude Code plan mode: plan first, then build
Claude changed 14 files when you asked for one small thing? Switch to plan mode: it reads and plans, and touches nothing until you say go.
By Arthur Hsiao · Last updated · 3 min read
What plan mode is. A mode where Claude Code can read your code and think, but can't edit files or run changing commands. It ends by showing you a plan. You approve it, change it or reject it.
1Switch it on
In Claude Code, press Shift+Tab. It cycles through the modes, and the current one shows under the input box. Keep pressing until it says plan mode.
You can also start a session already in plan mode:
claude --permission-mode plan
2Ask for a plan, not code
Describe the goal and say what you want back. Example:
Add a dark mode toggle. Don't write code yet: read the project, then give me a plan with the steps and the files you would change.
Claude reads the project and replies with the steps and the file names.
3Read the plan like a reviewer
Before you approve, check three things:
- Are the files it names the ones you expected? A plan that touches 14 files for a small change is a warning.
- Is anything missing, such as a test or a place that also needs the change?
- Is there a step you don't understand? Ask about it now, it costs nothing.
You can reply in the same chat to change the plan: "skip step 3, and don't touch the build config".
4Approve, then let it build
When the plan is right, approve it. Claude leaves plan mode and starts on the steps. If something goes wrong halfway, you still have the written plan to point back to.
Don't plan everything. For a one-line fix or a rename, plan mode is slower than just asking. Use it when a change touches several files or you're not sure where it belongs.
5Why it also saves tokens
A wrong 14-file edit means reading the diff, undoing it and trying again. A short plan is much cheaper than that. More on this in save tokens with Claude Code.
Next: once you do the same kind of planning often, turn the prompt into a command with custom slash commands, or keep project rules in CLAUDE.md so every plan starts from them.
What plan mode allows, next to the other modes on Shift+Tab: Claude Code permissions. Prompts that get a good plan back: how to write prompts for Claude Code. To plan on Opus and build on Sonnet: which Claude Code model to use.