# Claude Code plan mode: how it works and what it does not enforce

> Claude Code plan mode explained: Shift+Tab and /plan, what runs while planning, approving a plan, opusplan, and the rules a plan does not enforce.

Plan mode in Claude Code is a permission mode: the agent reads and researches, writes a plan, and waits for your approval before it edits anything. It is the answer to "what is plan mode in Claude Code" — not a separate planning product, but one of the six permission modes, with its own entry shortcut, its own rules for what runs during planning, and an approval step that exits back into a working mode. This post covers how to use plan mode in Claude Code, what actually runs while it plans, and what an approved plan does not enforce.

## Entering and leaving plan mode

Three ways in, all documented on the [permission modes page](https://code.claude.com/docs/en/permission-modes):

- Press `Shift+Tab` to cycle modes until the status bar shows plan. This is the Claude Code plan mode shortcut.
- Prefix a single prompt with `/plan` to plan for that prompt only.
- Start the session in it: `claude --permission-mode plan`.

To exit plan mode in Claude Code, press `Shift+Tab` again when no approval prompt is open. At the approval prompt, press `Esc` first — pressing `Shift+Tab` there approves the plan instead of leaving. Approving a plan also exits plan mode, into whichever mode the approve option names.

## What runs while Claude plans

Edits stay blocked until you approve the plan. Reads and read-only commands run. What happens to other shell commands depends on the session, and the first matching case applies:

| Session | Shell commands during planning |
| ------- | ------------------------------ |
| Interactive terminal with bypass permissions available | Planning commands can run with neither the classifier nor a prompt |
| Auto mode available, `useAutoModeDuringPlan` on (the default) | The classifier reviews commands other than critical-path removals; approved ones run, rejected ones are blocked |
| Auto mode unavailable, or the setting off | Commands outside the built-in read-only set prompt for approval |

So "plan mode is read-only" is true for your files, and close to true for commands: depending on the session, a classifier or a prompt still gates the rest. Research itself is often delegated: Claude Code's built-in Plan subagent gathers codebase context in its own window while the main conversation stays read-only. The [subagents documentation](https://code.claude.com/docs/en/sub-agents) has the details.

![Diagram of one plan-mode round: enter with Shift+Tab or /plan, the agent researches read-only and writes a plan, you approve or keep planning, and approval exits plan mode into the mode the approve option names. Edits stay blocked until approval.](/blog/claude-code-plan-mode-guide/plan-flow.svg)

## Reviewing and approving a plan

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

- **Yes, and use auto mode** — approve and start in auto mode. Where auto mode is unavailable the option reads **Yes, auto-accept edits**; in a session started with bypass permissions it offers to switch to bypass for the session.
- **Yes, manually approve edits** — approve and review each edit individually.
- **No, keep planning** — stay in plan mode and say what to change.

Two controls worth knowing: `Ctrl+G` opens the proposed plan in your text editor so you can edit it before Claude proceeds, and the `showClearContextOnPlanAccept` setting adds an option that approves the plan and clears the planning context. This is also the practical difference in the plan mode vs acceptEdits question: acceptEdits auto-approves edits as they come, while plan mode holds every edit until one approval of the whole plan — after which the session runs in the mode you picked. The [permissions guide](/blog/claude-code-permissions-guide) covers the full mode table.

## Opus plan mode

The `opusplan` model alias splits the work by phase: Opus does the planning in plan mode, and the session switches to Sonnet for execution. Set it with `/model opusplan`, or `opusplan[1m]` to request the 1M context window where the models lack it by default. The [model configuration page](https://code.claude.com/docs/en/model-config) documents the alias and how it behaves when your allowlist restricts models. This is what people mean by Claude Code Opus plan mode: reasoning priced for the plan, execution priced for the typing.

## What an approved plan does not enforce

A plan is text the agent wrote and you approved. Nothing in plan mode checks the finished work against that text, and nothing carries the plan's rules into your next session. The decay is measurable: in [our Claude Code benchmark](/blog/claude-code-benchmark-with-and-without-besydr), rules from an earlier session were broken 47 times per 100 requests on five projects, and 4 times with Besydr.

| Per 100 requests, five projects | Claude Code alone | With Besydr |
| ------------------------------- | ----------------- | ----------- |
| Rules from an earlier session broken | 47 | 4 |

![Bar chart: rules from an earlier session broken, per 100 requests on five projects. Claude Code alone 47, with Besydr 4. Means of three runs per setup.](/blog/claude-code-plan-mode-guide/rules-decay.svg)

Besydr (say: besider) is a program that runs beside a coding agent and learns from its sessions. It does not read Claude Code's plan — no client exposes its plan to an extension, as the [client table](/docs/clients) documents — so it keeps its own: before work starts it writes a checklist of what would show your request is fulfilled, from the request alone, and when the agent stops, a model compares the checklist with the tool calls, their results and the diff. When the agent stops to ask for plan approval, the check judges whether that stop is genuine and whether the work possible before it is done; it does not send the agent on to work you have not approved. The local program is free with octomind and needs a [licence](/pricing) with Claude Code after a trial.

## Sources and method

- Entry, exit, planning-time command rules and approval options: the [permission modes page](https://code.claude.com/docs/en/permission-modes), read 2026-11-30.
- The Plan subagent: the [subagents page](https://code.claude.com/docs/en/sub-agents), read 2026-11-30.
- `opusplan`: the [model configuration page](https://code.claude.com/docs/en/model-config), read 2026-11-30.
- The 47-to-4 number: [our benchmark](/blog/claude-code-benchmark-with-and-without-besydr), five projects, three runs per setup, means reported.
- Besydr's checklist and its plan limits: the [mechanics](/docs/mechanics) and [clients](/docs/clients) documentation.
- This post was drafted with AI assistance from these sources.
