← All posts

Claude Code Plan Mode: How It Works and When to Use It

Claude Code plan mode explained: how to enter it with Shift+Tab or /plan, review and edit the plan, approve into auto mode, and when it is worth using.

Claude Code plan mode is a permission mode where Claude reads your code, explores, and writes a plan, but does not edit your source files until you approve that plan. You turn it on by pressing Shift+Tab until the status bar reads "plan mode on", by starting a prompt with /plan, or by launching with claude --permission-mode plan. When the plan is ready you pick one of three paths: approve and let Claude work without routine prompts, approve and review every edit yourself, or keep planning. It is the cheapest way to catch a wrong approach before it turns into forty changed files.

What plan mode actually does

Plan mode is one of Claude Code's permission modes, alongside Manual (default), acceptEdits, auto, dontAsk and bypassPermissions. Its job is narrow: research first, change nothing.

  • Reads are allowed. Claude can open files, search the repo and build a picture of how the code fits together.
  • Edits to your source are blocked until you approve the plan.
  • Shell commands depend on your session. If auto mode is available to you and the useAutoModeDuringPlan setting is on (it is by default), a background classifier reviews exploration commands instead of prompting you. If auto mode is not available, anything outside Claude Code's built-in read-only command set asks for approval.
  • The plan is saved to disk. After /compact, Claude Code re-injects the plan from disk, so a long planning session does not lose the plan when the conversation gets summarized.

The point is that you read the plan before anything changes.

How to enter and leave plan mode
Method How Best for
Shift+Tab Cycle modes until the status bar shows plan mode on Switching mid-session
/plan /plan fix the auth bug enters plan mode and starts the task One-off planning without touching the mode cycle
CLI flag claude --permission-mode plan Starting a session you know is exploratory
Project default "defaultMode": "plan" under permissions in .claude/settings.json Repos where every session should start read-only

The Shift+Tab cycle runs Manual, then accept edits, then plan. If your session started in auto mode, the first press drops you to Manual. Press Shift+Tab again to leave plan mode without approving anything.

Reviewing and approving a plan

When Claude finishes, it shows the plan and asks how to proceed:

  • Yes, and use auto mode. Approve and let Claude work with the auto mode classifier checking actions in the background. If auto mode is not available to your session, this option reads Yes, auto-accept edits instead.
  • 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.

Two details most people miss:

  1. Ctrl+G opens the plan in your text editor. You can rewrite steps, delete scope creep, or add constraints directly before Claude proceeds. This is faster than arguing with the plan in chat.
  2. You can clear context on accept. With the showClearContextOnPlanAccept setting turned on, the approval list gains an option that approves the plan and clears the planning conversation, so implementation starts with a lean context window and the plan as its brief.

Approving exits plan mode. To plan again, cycle back with Shift+Tab or prefix your next prompt with /plan.

When plan mode is worth it

Use it when a wrong first move is expensive:

  • Multi-file refactors, where Claude's choice of approach determines everything after it.
  • Unfamiliar codebases, where you want to see whether Claude understood the architecture before it touches anything.
  • Migrations, auth, billing and data code, where you want a written list of every file that will change.
  • Tasks you will walk away from. A reviewed plan plus auto mode is a much safer combination than an unreviewed prompt plus auto mode.

Skip it for small, obvious changes. Planning a typo fix just adds a round trip.

A practical plan mode workflow
  1. Start with /plan and a specific task, including constraints: "don't change the public API", "keep the migration reversible".
  2. Read the plan for scope, not just steps. Look for files you did not expect, and for steps that quietly expand the task.
  3. Ask questions while still in plan mode. Claude can read more code to answer them without changing anything.
  4. Press Ctrl+G and edit the plan yourself if it is close but not right.
  5. Approve with manual edits for risky work, or with auto mode for routine work you have already scoped.

If you keep project conventions in CLAUDE.md, plans tend to follow them from the start. Our CLAUDE.md best practices post covers what to put there.

Plan mode vs the other permission modes
Mode What runs without asking Use it for
Manual (default) Reads only Sensitive work, reviewing every action
acceptEdits Reads, file edits, common filesystem commands Iterating on code you are watching
plan Reads, plus classifier-approved commands when auto mode is available Exploring and proposing before changing
auto Everything, with a background classifier check Long tasks, fewer prompts
dontAsk Reads and pre-approved tools; everything else is denied CI and scripts
bypassPermissions Everything Isolated containers and VMs only
Where your terminal fits

Plan mode creates a specific kind of wait: Claude finishes the plan, then sits there until you answer. With one session that is fine. With three or four sessions in parallel, a finished plan in a background tab can sit for twenty minutes before you notice.

Any terminal runs Claude Code, including iTerm2, Ghostty and Terminal.app. MOLTamp is a skinnable terminal shell built around Claude Code, and its tab system (up to 50 tabs) puts an attention badge on any tab whose session needs you or has finished, which is exactly the signal a waiting plan needs. If you are choosing a setup for this kind of work, our best terminal for Claude Code guide compares the options, and running multiple Claude Code sessions covers the workflow side. You can also wire up system alerts with the Claude Code notifications guide.

Verdict

Plan mode is the most underused safety feature in Claude Code. It costs one extra review step and saves you from approving a bad approach one edit at a time. Use /plan for anything that touches more than a couple of files, edit the plan with Ctrl+G instead of debating it, and approve into auto mode only once the scope is right.

FAQ

What is plan mode in Claude Code? Plan mode is a permission mode where Claude researches your codebase and writes a proposed plan without editing your source files. Edits stay blocked until you approve the plan, at which point Claude switches to the mode you chose and starts working.

How do I turn on plan mode in Claude Code? Press Shift+Tab until the status bar shows "plan mode on", type /plan followed by your task, or start the session with claude --permission-mode plan. To make it the default for a repo, set defaultMode to plan in .claude/settings.json.

Can Claude run commands in plan mode? Yes, for exploration. When auto mode is available, a classifier reviews those commands by default. Otherwise, commands outside the built-in read-only set prompt you for approval. Either way, Claude does not edit your source until you approve the plan.

Can I edit the plan before approving it? Yes. Press Ctrl+G when the plan is shown to open it in your default text editor. Save your changes and Claude proceeds with the edited version.

Does the plan survive /compact? Yes. The plan Claude writes in plan mode is re-injected from disk after compaction, so summarizing a long conversation does not lose it.


A quick honest note: MOLTamp is free to use with every feature working. A one-time $10 license removes a recurring popup and unlocks community skin uploads. If tracking which session is waiting on a plan is your bottleneck, download MOLTamp and try the tab badges.