Mascot Logo
ai-agents-tutorial

Part 2 · Lesson 13 of 16

Claude Code Plan Mode

Let Claude research and propose before it edits.

9 min

Step 1 of 5 · What plan mode is

By default, Claude Code works as it goes — reading, then proposing edits one at a time. For a bigger or riskier change, you often want to see the whole approach first, before a single file is touched.

That's plan mode. In plan mode, Claude reads files and runs read-only commands to explore your codebase, then writes a plan of what it intends to do — but it does not edit your source. You review the plan and decide whether to proceed.

Plan mode is one of Claude Code's permission modes (the others include default and acceptEdits), which control how much Claude can do without asking.

Step 2 of 5 · Enter plan mode

There are three ways in:

  • Press Shift+Tab to cycle the permission mode: defaultacceptEditsplan. The current mode shows in the status bar.
  • Prefix a single prompt with /plan to plan just that one request.
  • Start the whole session in plan mode from your terminal:
claude --permission-mode plan

Step 3 of 5 · Let Claude make a plan

In plan mode, just describe the change you want:

Add a dark-mode toggle to the settings page.

Claude will explore — reading components, checking how styles are defined — and come back with a step-by-step plan instead of edits. Nothing in your working tree changes yet.

Step 4 of 5 · Review, then approve

When the plan is ready, Claude presents it and asks how to proceed. You can:

  • Approve and start in auto mode — Claude executes without pausing on each step.
  • Approve and accept edits — Claude makes the edits; you review them after (e.g. with git diff).
  • Approve and review each edit — back to default mode; you approve changes one at a time.
  • Keep planning — send feedback and Claude revises the plan.

Approving exits plan mode and switches the session to whichever permission mode you picked, so Claude starts editing.

Step 5 of 5 · Checkpoint & Recap

Recap

  • Plan mode = research-only: Claude reads and explores, writes a plan, and does not edit your source until you approve.
  • Enter it with Shift+Tab (cycle to plan), /plan, or claude --permission-mode plan.
  • Approving a plan exits plan mode and starts execution in the mode you choose; Shift+Tab again leaves without approving.
  • Ctrl+G opens the plan in your editor to edit it first.

Frequently asked questions

How do I turn on plan mode in Claude Code?

Press Shift+Tab to cycle the permission mode until the status bar shows plan, prefix one prompt with /plan, or start the session with claude --permission-mode plan. You can also make it the default for a project by setting "defaultMode": "plan" under permissions in .claude/settings.json.

What can Claude do in plan mode?

It can read files and run read-only commands to explore your project, then write a plan. It will not edit your source in plan mode. Anything beyond reading still prompts for permission, just like default mode.

How do I approve a plan and start the changes?

When Claude presents the plan it asks how to proceed. Pick one of the approve options — start in auto mode, accept edits, or review each edit — and Claude exits plan mode and begins making the changes. Choose "keep planning" instead to send feedback and refine the plan first.

How do I leave plan mode without making any changes?

Press Shift+Tab again to cycle out of plan mode without approving a plan. Nothing in your working tree changes.