CLClaude Lessons Try the free lessons

Claude Lessons / Guides

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

Plan mode is Claude Code's read-only gear: Claude can read, search, and reason about your codebase, but nothing gets edited until you approve a written plan. Most people discover it with an accidental Shift+Tab, escape out, and never come back — and then wonder why a colleague's agent-written PRs look surgical while theirs need three rounds of cleanup. This guide covers the mechanics (every way in and out, what each approval option actually does) and the judgment: which tasks repay the extra round-trip, which don't, and how to review a plan so that approving it means something.

Illustration of planning before writing code with Claude Code

What plan mode actually is

Plan mode tells Claude Code to research and propose changes without making them. In this mode Claude reads files, searches the repo, and runs exploratory commands — but file edits are blocked by the tool itself until you approve the plan it produces. Three properties make it more than "chat before you code":

"Read-only" has one nuance worth knowing. Truly read-only commands (listing files, git status, searching) run freely. For other exploratory commands, behavior depends on your setup: where auto mode is available, a safety classifier reviews commands during planning and lets harmless ones run; otherwise anything outside the built-in read-only set prompts you first. Edits, either way, wait for your approval.

Where it sits among the permission modes

Plan mode is one of Claude Code's permission modes — the settings that control how much Claude does without asking. Seeing the whole ladder makes plan mode's role obvious: it's the deliberate end of a spectrum that runs all the way to full autonomy.

ModeWhat runs without askingTypical use
default (Manual)Reads only — every change promptsSensitive work, getting started
acceptEditsReads, file edits, basic filesystem commandsIterating fast, reviewing via git diff after
planReads and vetted exploration; edits blocked until you approve a planScoping work before changes
autoMost actions, screened by a background safety classifierLong tasks with fewer interruptions
dontAskOnly pre-approved tools; everything else auto-deniedLocked-down CI and scripts
bypassPermissionsEverythingIsolated containers and VMs only
Worth knowing in 2026: since August 14, 2026, auto mode is the default permission mode for new sessions on Pro, Max, and Team plans. As execution gets more autonomous, the planning gate matters more, not less — plan mode is how you keep a checkpoint where your judgment applies before an increasingly independent agent starts writing.

Entering and exiting plan mode

Four ways in, one way out:

{
  "permissions": {
    "defaultMode": "plan"
  }
}

In the VS Code extension, use the mode indicator at the bottom of the prompt box (the label is "Plan"), or set claudeCode.initialPermissionMode. In the desktop app, it's the mode selector next to the send button.

What happens when the plan is ready

When Claude finishes planning, it presents the plan and asks how to proceed. The options are doing more than they look like — each one sets the permission mode the execution phase will run in:

OptionWhat it does
Yes, and use auto modeApproves the plan and executes with the fewest interruptions (shown as "Yes, auto-accept edits" where auto mode isn't available)
Yes, manually approve editsApproves the plan but you still review each edit individually — the careful middle
No, keep planningStays in plan mode; tell Claude what to change about the plan

Three lesser-known details that make the approval step more useful:

Practice the plan-first habit hands-on

Claude Lessons has a free interactive lesson on planning before coding — practice writing the task, reviewing the plan, and catching the bad assumption before it becomes a diff, in a simulated Claude Code workspace.

Start the free interactive lessons

When plan mode pays off — and when to skip it

The rule of thumb: use plan mode when being wrong costs more than one extra round-trip. Concretely, five categories clear that bar almost every time:

And skip it, without guilt, when:

How to review a plan (a working rubric)

Plan mode's value is exactly proportional to how seriously you read the plans. Rubber-stamping gets you the overhead with none of the protection. Read a plan the way a good reviewer reads a PR description, checking five things:

Then push back in the plan, not in the diff. "Item 3 breaks existing cache keys — use a versioned prefix instead" takes five seconds before any code exists. The same correction after execution is a real diff to review, and possibly a revert. The cheapest place to fix a bug is the plan; the second cheapest is the first file; the most expensive is the merged PR.

Getting better plans out of Claude

Weak plans are usually an input problem. Four fixes, in order of leverage:

Plan mode, cost, and the rest of the toolkit

Cost. Planning isn't free — a good plan means Claude read a lot of files — but the most expensive token in agentic coding is the one spent confidently executing the wrong approach. A rejected plan costs one read-only pass; a rejected implementation costs the execution, the review that caught it, and the do-over. Plan mode is also why the second prompt often feels fast: the files read during planning are already in context when execution starts. For the full picture of where tokens go, see our token usage and costs guide.

Recovery. Plan mode reduces wrong turns; it doesn't eliminate them. When execution goes sideways anyway, press Escape to stop, and use /rewind to restore code and conversation to a checkpoint instead of arguing the session back to health. Checkpoints and context hygiene are covered in the context management guide.

Delegation. For large features, the strongest pattern is planning at two levels: plan the decomposition in your main session, then hand each slice to a subagent with a tightly-scoped task. You review one architecture plan and several small, focused pieces of work instead of one giant unreviewable blob. One cost note if you run multi-agent setups: parallel agents each carry their own context, so planning with a whole team runs several times the tokens of a solo session — plan solo, execute in parallel.

Common mistakes

FAQ

What is plan mode in Claude Code?

Plan mode is a permission mode in which Claude Code researches and proposes changes without making them. Claude can read files, search the codebase, and run exploratory commands, but file edits stay blocked until you approve a written plan. It's enforced by the tool itself — the model can't edit its way around it — which makes it different from just asking Claude to describe an approach in chat.

How do I turn on plan mode?

Four ways: press Shift+Tab in the CLI to cycle permission modes until the status bar shows plan mode; prefix a single prompt with /plan to plan just that request; start a session with claude --permission-mode plan; or make it the default by setting permissions.defaultMode to "plan" in .claude/settings.json. Press Shift+Tab again to leave plan mode without approving a plan.

Can Claude Code still run commands in plan mode?

Yes, within limits. Read-only commands (listing files, checking git status) run freely so Claude can explore. Where auto mode is available, a safety classifier reviews other exploratory commands during planning and approves or blocks them; otherwise, commands outside the read-only set prompt you for approval. What plan mode reliably blocks is edits: file writes wait until you approve the plan.

What happens when I approve a plan?

Claude presents the finished plan with options: approve and run in auto mode (or auto-accept edits where auto mode isn't available), approve but manually review each edit, or keep planning. Approving exits plan mode, switches the session into the mode you picked, and Claude executes the plan. You can also press Ctrl+G to open the proposed plan in your text editor and modify it directly before approving.

Is plan mode the same as asking Claude what it would do?

No. A chat answer is advisory — nothing stops Claude from drifting once it starts editing. Plan mode is a harness state: edits are blocked by the tool until you approve, the plan is a discrete artifact you can edit and re-issue, and exiting is an explicit gate. The discipline comes from enforcement, not from the model's good intentions.

Does plan mode reduce Claude Code costs?

Usually, yes — indirectly. Planning itself costs tokens (Claude reads a lot of files to write a good plan), but the most expensive thing in agentic coding is confident execution in the wrong direction: a bad approach implemented, reviewed, and reverted burns far more than one planning pass. The files read during planning also stay in context, so approved plans execute with less re-exploration.

Build the judgment, not just the keybinding

Claude Lessons has 38 free interactive lessons — including planning before coding, reviewing agent work like a reviewer, and recovering from drift — all practiced hands-on in a simulated Claude Code workspace.

Practice hands-on in the free interactive lessons