Guide · updated 2026-10-28 · 8 min read
Claude Code Plan Mode: When to Use It and When Not
Claude Code plan mode makes Claude read your code and propose changes without editing anything until you approve. Turn it on with Shift+Tab during a session or claude --permission-mode plan at launch. It pays off for multi-file or risky changes and is pure overhead for one-liners.
I use it less often than the hype suggests and more often than I did a year ago. This guide covers the mechanics, the edit-the-plan trick, a decision rule for when to bother, and a worked explore-plan-implement session you can copy.
What plan mode actually does
Per the Claude Code permission modes docs, plan mode has Claude "research and propose changes without making them." Claude reads files, runs shell commands to explore, and writes a plan. It does not edit your source. Edits stay blocked until you approve the plan.
Two details worth knowing:
- The block is not absolute in every setup. If you run an interactive terminal session with bypass permissions available, Claude is still told to plan, but Claude Code does not enforce it. The docs say an edit attempted during planning runs without a prompt in that case. If you rely on plan mode as a safety net, do not combine it with bypass permissions.
- Shell commands during planning depend on your setup. With auto mode available and
useAutoModeDuringPlanon (the default), a classifier reviews commands instead of prompting you. Without auto mode, commands outside the built-in read-only set prompt for approval.
Plan files for the current session live in ~/.claude/plans/, or in the directory you set with the plansDirectory setting.
How to enter plan mode
There are four ways, all from the docs:
| Goal | Do this |
|---|---|
| Switch mid-session | Press Shift+Tab until the status bar shows ⏸ plan mode on |
| Start a session in plan mode | claude --permission-mode plan |
| Plan for one prompt only | Prefix the prompt with /plan |
| Make it the project default | Set defaultMode to plan in .claude/settings.json |
The project default looks like this:
{
"permissions": {
"defaultMode": "plan"
}
}
The Shift+Tab cycle runs default, then acceptEdits, then plan. Optional modes such as bypassPermissions and auto slot in after plan if they are enabled for your session. From auto, the first press goes back to default. That means the number of presses you need depends on your setup, so watch the status bar rather than counting. Pressing Shift+Tab again leaves plan mode without approving anything.
I would not make plan mode a permanent default. Every trivial request then ends with an approval dialog, and you will start approving without reading. I use /plan for the occasional prompt and Shift+Tab when I realize mid-session that a task is bigger than I thought.
Approving, rejecting and editing the plan
When Claude has a plan, it asks how to proceed. The options in the docs are:
- Yes, and use auto mode (or "Yes, auto-accept edits" if auto mode is not available to your session). Approve and let Claude work.
- Yes, manually approve edits. Approve, then review each edit as it comes.
- No, keep planning. Stay in plan mode and tell Claude what to change.
If you enable showClearContextOnPlanAccept, a first option appears that approves the plan and clears the planning context. That is useful after a long exploration, because the plan survives and the thousands of tokens of file reads do not.
Edit the plan with Ctrl+G
This is the feature most people miss. Press Ctrl+G while the plan is showing and Claude Code opens it in your default text editor. Change it, save, close, and Claude proceeds with your version.
Things I change most often:
- Delete steps that are scope creep (a "while we are here" refactor).
- Reorder so the riskiest step comes first, while there is still little to unwind.
- Add a verification line to the end of each step, such as "run
npm test -- authand show the output." - Add a constraint Claude could not know, such as "do not touch
legacy/, it ships separately."
Editing text is faster than arguing with Claude about text. It is also the cheapest code review you will do all day, because the problems are still sentences.
When plan mode pays off
A rule I like, from an OpenReplay write-up dated August 2026: use planning when a change touches roughly three or more files, involves a refactor, schema migration or security-sensitive work, or cannot be described in a single sentence. Skip it for one-line fixes and mechanical edits. If you can state the whole change in one sentence, just make it.
My own version of that:
Plan first when:
- You do not know which files are involved. The exploration is the value.
- The change is hard to undo (migrations, auth, billing, anything that touches data).
- You would reject some of the obvious approaches and want to catch them before code exists.
- You are about to hand Claude a long unattended run. A reviewed plan is a better definition of done than your first prompt.
Skip it when:
- It is a typo, a rename, a config value, a failing test with an obvious cause.
- You already wrote the spec. A plan on top of a spec is two documents saying the same thing.
- You are exploring and the answer is a conversation, not a diff.
The honest trade-off: planning costs a round trip and some tokens, and a plan can look confident while being wrong. Plan mode catches wrong direction early. It does not catch wrong details. You still need a test or a check at the end, as the Claude Code best practices page argues at length ("give it a check to run").
Plan mode versus an interview and a spec
If you do not yet know what you want, plan mode is the wrong first tool, because it plans against your first prompt. The best practices page suggests a different move: ask Claude to interview you. Its example prompt:
I want to add rate limiting to the public API but haven't thought it through yet. Interview me until you could write the spec, then write it to SPEC.md.
Claude comes back with questions about the parts you have not pinned down, and the answers become SPEC.md. The page then recommends starting a fresh session to build from the spec, so the build begins with clean context and a written definition of done.
So the order I follow for anything vague is: interview into a spec, fresh session, plan mode against the spec, edit the plan, execute.
A worked explore, plan, implement session
I have not recorded a live transcript for this guide, so treat what follows as a template of how I run it, with the prompts as I would write them. Adapt the feature and file names.
Task: add per-user rate limiting to an Express API that has no limiter today.
Step 1: explore in plan mode.
claude --permission-mode plan
Read how requests flow through src/server.ts and src/middleware/. Tell me where a per-user rate limiter would slot in, how users are identified today, and what tests exist for middleware. Do not propose code yet.
I keep exploration separate from planning on purpose. If the findings are wrong, I want to catch that before they become a plan. For wide searches you can also tell Claude to use a subagent so the file reads do not fill your main context. See the subagents guide for how that works.
Step 2: ask for the plan.
Now write a plan: numbered steps, files touched per step, and one verification command per step. Keep it under 10 steps. List what you are deliberately not doing.
The "not doing" list is the part that catches scope creep. If Claude lists "refactor auth middleware" there, good. If it is missing and the plan contains it, you found a problem for free.
Step 3: edit the plan.
Press Ctrl+G. In my session I would cut any step that adds a new dependency without discussion, move the test-writing step ahead of the implementation step, and add "use the existing redis client in src/lib/redis.ts" because Claude cannot know I consider that settled.
Step 4: approve.
Choose "Yes, manually approve edits" for the first run on unfamiliar code, and the auto option once you trust the plan. If you want a clean context for the build, use the clear-context option if you have enabled it.
Step 5: verify and re-plan if it drifts.
Run the verification commands from the plan yourself. If implementation wanders off the approved steps, press Shift+Tab back into plan mode and have Claude re-plan only the remaining work. Re-planning from the middle is cheaper than unpicking a finished wrong diff.
Step 6: record what you learned.
If you corrected Claude on a project fact during planning, put it in your CLAUDE.md so the next plan starts from it. The guide on writing a CLAUDE.md file that Claude follows covers what belongs there. For more habits like this, see Claude Code best practices: 12 habits that hold up.
Plan mode mistakes I see
- Approving without reading. A plan you did not read is a prompt you did not write. Read the files list at minimum.
- Planning vague tasks. Garbage in, polished garbage out. Interview first.
- Treating the plan as a guarantee. Claude can follow the plan and still ship a bug. Keep the verification steps.
- Leaving plan mode on by default. Approval fatigue is real.
- Assuming it is a sandbox. It is a workflow control. Check the bypass permissions caveat above.
Bottom line
Use plan mode when you cannot describe the change in one sentence, when it touches several files, or when it is hard to undo. Enter with Shift+Tab, /plan or --permission-mode plan, press Ctrl+G to fix the plan in your editor, then approve and verify. For small changes, skip it and spend the time on a test instead.
If this was useful, subscribe to Agent Shipped (Free · twice a week · 4-minute read).
FAQ
How do I turn on plan mode in Claude Code?
Press Shift+Tab until the status bar shows "plan mode on", start a session with claude --permission-mode plan, or prefix a single prompt with /plan. To make it the default for a project, set permissions.defaultMode to plan in .claude/settings.json.
Does plan mode stop Claude from changing my files?
Yes. In plan mode Claude reads files, can run shell commands to explore, and writes a plan, but it does not edit your source until you approve the plan. The documented exception is an interactive terminal session where bypass permissions are available, where planning is requested but not enforced.
Can I edit the plan before Claude starts?
Yes. When the plan is presented, press Ctrl+G to open it in your default text editor, change it, and then approve it. You can also pick "No, keep planning" and tell Claude what to change.
When should I skip plan mode?
Skip it when you can describe the whole change in one sentence, such as a one-line fix or a mechanical rename. For those, reading and approving a plan costs more than the edit itself.