All guides

How to use plan mode in Claude Code

Updated 17 November 2026

Press Shift+Tab until the mode reads plan, or start with claude --permission-mode plan. Claude then reads the code and proposes a plan without editing any source files. When the plan is ready you approve it, keep planning, or press Ctrl+G to edit it first.

Plan mode makes Claude Code look before it changes anything. Claude can read files and explore, and edits stay blocked until you approve a plan. It is the cheapest way to avoid an agent spending ten minutes building the wrong thing.

The details below are from the permission modes page of the Claude Code docs.

How do I turn plan mode on?

There are three ways:

  1. During a session, press Shift+Tab until the status reads plan mode on. The cycle runs Manual, then accept edits, then plan.

  2. For one prompt, start the prompt with /plan.

  3. From the start, launch with the flag:

    claude --permission-mode plan

What can Claude do while planning?

It can read files, search the codebase and think. It cannot edit your source files. Whether it can run shell commands without asking depends on your setup:

  • If auto mode is available and useAutoModeDuringPlan is on, which is the default, a classifier reviews shell commands during planning.
  • Otherwise, commands outside the built-in read-only set prompt you as usual.

There is one exception. In an interactive terminal session that was started with bypass permissions available, plan mode is not enforced. Claude is still told to plan, but edits and commands run without prompting. If you rely on plan mode as a guard, do not combine it with --dangerously-skip-permissions.

What happens when the plan is ready?

Claude presents the plan and asks how to proceed. The choices are:

  • Yes, and use auto mode. Approve and let Claude carry it out with the classifier reviewing actions. If auto mode is not available to you, this reads Yes, auto-accept edits.
  • Yes, manually approve edits. Approve the plan and review each edit as it comes.
  • No, keep planning. Send it back with your comments.

Accepting a plan also gives the session a title based on the plan, unless you had already named it. That makes it easier to find later with claude --resume.

How do I edit the plan before approving it?

Press Ctrl+G. The plan opens in your text editor, and you can cut steps, reorder them or add constraints before you approve.

This is often quicker than explaining a correction in chat. If step four says “migrate the database” and you do not want that today, delete the line.

How do I leave plan mode without approving?

Press Shift+Tab when no prompt is open, or Esc at the approval prompt.

How do I make plan mode the default?

Set it in the project’s .claude/settings.json, and every terminal session in that project starts in plan mode:

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

That is a good fit for a repository where mistakes are expensive, or one you share with people who are new to it. Put it in ~/.claude/settings.json if you want it everywhere.

A session that ended in plan mode comes back in plan mode when you resume it from the terminal.

When is plan mode worth the extra step?

Situation Plan first?
A change that touches several files or modules Yes
A codebase you do not know yet Yes
A task where you have a firm idea of the approach Yes, to check Claude shares it
A one-line fix, a rename, a typo No
Something you can describe as an exact diff No

The Claude Code docs make the cost argument for it: Claude explores and proposes an approach for your approval, which prevents expensive re-work when the first direction is wrong. Reading and planning use far fewer tokens than writing code and then undoing it.

How do I get a better plan?

  1. Say what done looks like. Name the behaviour you want and how to check it, such as a test that should pass.
  2. Name the files that matter and the ones that must not change.
  3. Ask for the plan as numbered steps with the files each step touches. It is easier to edit in Ctrl+G.
  4. Ask what it is unsure about. A plan that lists its open questions is more useful than a confident one.
  5. Push back once. If the plan looks heavier than the task, say so and choose “No, keep planning”.

Can I skip the approval prompt?

You can, with a hook, though you give up the review that makes plan mode useful. The docs include a PermissionRequest hook that auto-approves ExitPlanMode, the tool Claude calls when a plan is ready:

{
  "hooks": {
    "PermissionRequest": [
      {
        "matcher": "ExitPlanMode",
        "hooks": [
          {
            "type": "command",
            "command": "jq -c '{hookSpecificOutput: {hookEventName: \"PermissionRequest\", decision: {behavior: \"allow\", updatedInput: .tool_input}}}'"
          }
        ]
      }
    ]
  }
}

Keep the matcher exactly as narrow as that. The docs warn that an empty matcher or .* here would auto-approve every permission prompt, including file writes and shell commands. More hook examples are in the Claude Code hooks guide.

What is the catch with plan mode?

It adds a second moment where Claude waits for you. You give it the task, switch to something else while it explores, and the plan sits in the terminal until you come back. Nothing is built in the meantime. With two or three sessions planning at once, it is easy to leave one waiting for a quarter of an hour.

The free fix is a Notification hook, so you hear when Claude is waiting. See getting notified when Claude Code is waiting.

NotchDaddy takes that a step further on a MacBook. Each session is listed in the notch with its state, and a session that is waiting on you is marked, so a finished plan does not go unnoticed behind another window. When Claude asks you a multiple-choice question while it plans, you can answer it from the notch with a click.

You do not need it if you watch the terminal while Claude plans, which for a short plan is the sensible thing to do anyway. The session list is described on the agents page.

Start a 3-day trial for $0. After that it is $19 once.