Use code DEC25: 25% off all 85 Claude Code agents, for $29.25 instead of $39Get access →
Coding·Updated ·6 min read

Claude Code Plan Mode: Plan First, Then Let Claude Code Build

By Shubhranshu, creator of claudeagents · Last reviewed

Plan mode makes Claude Code read your code and write a plan before it changes any files. Turn it on by pressing Shift+Tab until the status bar says "plan mode on", by starting a prompt with /plan, or by launching claude --permission-mode plan. When the plan looks right, approve it and Claude switches to a normal mode and starts building.

Planning first is the cheapest way to avoid a big change going in the wrong direction. You catch a bad approach in a 30-second read instead of after 15 files have been edited.

This guide covers how to enter and leave plan mode, what Claude is allowed to do while planning, how to edit and approve a plan, and when it is worth the extra step. Facts are from the Claude Code docs, checked on 4 December 2026.

How to turn on Claude Code plan mode

There are four ways in. Use whichever fits how you work:

  • Shift+Tab: cycles the permission modes in the order Manual → accept edits → plan. Keep pressing until the status bar shows ⏸ plan mode on. If your session started in auto mode, the first press takes you to Manual, so you need one more press.
  • `/plan` before a prompt: /plan add rate limiting to the login API plans that one task straight away.
  • From the command line: claude --permission-mode plan starts the whole session in plan mode.
  • As your default: set defaultMode in .claude/settings.json (below). In the VS Code extension, set claudeCode.initialPermissionMode to plan in your user settings instead.
.claude/settings.json
{
  "permissions": {
    "defaultMode": "plan"
  }
}

Our settings generator writes this file for you, alongside your permission rules.

What Claude Code can do in plan mode

Plan mode is read-and-think mode. Claude can open files, search the code and run shell commands to explore, but it doesn't edit your source files until you approve a plan.

Shell commands still follow your permission setup. Read-only commands run freely; anything else asks you first, unless auto mode is available, in which case its safety classifier reviews commands during planning by default.

The plan itself is saved as a Markdown file in ~/.claude/plans/ (or the folder set by plansDirectory), so you can find it again later.

How to edit and approve the plan

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

Plan approval options in Claude Code
OptionWhat happens
Yes, and use auto modeClaude builds the plan; auto mode's classifier checks risky actions. Shows as "Yes, auto-accept edits" when auto mode isn't available.
Yes, manually approve editsClaude builds the plan but asks before each file edit.
No, keep planningStays in plan mode so you can give feedback and get a revised plan.

If showClearContextOnPlanAccept is on, an extra first option approves the plan and clears the planning conversation, so the build starts with a clean context.

To change the plan yourself, press Ctrl+G at the approval prompt. The plan opens in your default text editor; save it and Claude works from your version. This is faster than describing small changes in chat.

How to exit plan mode

  • Before the plan is ready: press Shift+Tab to move to the next mode. Nothing is approved.
  • At the approval prompt: press Esc first. Shift+Tab at that prompt approves the plan.
  • After approving: Claude leaves plan mode automatically and switches to the mode you picked.

When to use plan mode (and when to skip it)

Plan mode: use it or skip it
Use plan mode forSkip it for
Changes across several filesOne-line fixes and typos
Code you don't know yetTasks where you already gave exact steps
Refactors and migrationsRunning tests, formatting, renaming
Anything hard to undo (database, auth, payments)Quick questions about the code

A good habit: ask for the plan, read it, push back on anything vague ("which files exactly?", "how will you test it?"), then approve. Plans that name files, steps and a test are the ones that go well.

To save usage, try /model opusplan: Opus does the planning and Sonnet does the building. See how to change the model in Claude Code.

Plans that start from a tested workflow

Plan mode works best when Claude already knows how your team does things. claudeagents adds 85 ready-made agents and 53 slash commands to Claude Code, so a command like /fix-error or /seo-audit plans and runs a tested workflow instead of starting from a blank prompt.

Frequently asked questions

How do I turn on plan mode in Claude Code?

Press Shift+Tab until the status bar shows "plan mode on", type /plan before your prompt, or start Claude Code with claude --permission-mode plan. To make it the default, set permissions.defaultMode to "plan" in .claude/settings.json.

How do I exit plan mode in Claude Code?

Press Shift+Tab to move to the next permission mode. If the plan approval prompt is open, press Esc first, because Shift+Tab at that prompt approves the plan. Approving a plan also exits plan mode.

Why doesn't Shift+Tab go to plan mode?

The cycle is Manual → accept edits → plan, so it takes two presses from Manual and three from auto mode. Watch the status bar for "⏸ plan mode on". You can also type /plan instead.

Can I edit the plan before Claude starts?

Yes. Press Ctrl+G at the approval prompt to open the plan in your text editor, change it, and save. Or choose "No, keep planning" and tell Claude what to change.

Does Claude Code change files in plan mode?

No. In plan mode Claude reads files and can run exploring commands, but source edits are blocked until you approve a plan.

Where are Claude Code plans saved?

In ~/.claude/plans/ by default, or the folder you set with the plansDirectory setting.

Sources

Skip the setup: get the Coding kit

30 ready-made coding agents, 19 slash commands and 22 skills for Claude Code. $15 one-time, lifetime updates.

All 3 kits (Coding, SEO and Marketing): 85 agents for $39 instead of $45. See what's in the Coding kit

Use code for 25% off all 3 kits: pay $29.25 instead of $39

Valid until Dec 19 · enter it at checkout

Keep reading