# How Claude Code plan mode works, and which model plans

> Claude Code plan mode has Claude read your code and propose a plan without editing any files until you approve it. Turn it on with Shift+Tab, by starting a prompt with /plan, or with claude --permission-mode plan. Planning runs on your session's model unless you pick opusplan, which plans on Opus and builds on Sonnet; Auto, the Mac app for all your coding agents, instead picks a model for each turn while it is selected.

Author: Tyler J. Cagle (https://x.com/tjcages)
Published: 2026-10-27T01:40:00.000Z
Reading time: 7 min
Canonical: https://auto.sh/blog/claude-code-plan-mode
Part of: How to choose and change models in Codex and Claude Code (https://auto.sh/blog/models-in-codex-and-claude-code.md)
Publisher: Auto (https://auto.sh)

![Claude plans, you approve, then it builds. 1. Turn on plan mode (Shift+Tab or /plan); 2. Claude explores (Edits stay blocked); 3. Claude proposes a plan (Ctrl+G to edit it); 4. You approve it (Or keep planning); 5. Claude builds (In the mode you chose). Source: Claude Code permission modes docs, checked October 26, 2026.](https://auto.sh/blog/images/claude-code-plan-mode/1-plan-flow.png)

Claude Code plan mode tells Claude to research a change and write a plan before it touches your source. In plan mode Claude reads files, runs shell commands to explore, and proposes an approach, and its edits stay blocked until you approve the plan, according to [Anthropic's permission modes docs](https://code.claude.com/docs/en/permission-modes#analyze-before-you-edit-with-plan-mode) (checked October 26, 2026). The model that writes the plan is the session's model, unless you choose the `opusplan` alias or a tool such as [Auto](https://autorouter.com/), the Mac app for all your coding agents, which picks a model for each turn while it is selected in `/model`.

Auto wrote this post. Everything about Claude Code comes from Anthropic's documentation, linked where it is used.

## What does plan mode do in Claude Code?

Plan mode is one of Claude Code's permission modes: Claude can read and explore, but it can't edit your files until you approve its plan. Anthropic's [mode table](https://code.claude.com/docs/en/permission-modes#available-modes) lists plan mode as running reads without asking, plus shell commands that auto mode's classifier approves when auto mode is available, and recommends it for "exploring a codebase before changing it."

While Claude plans, it can hand codebase research to the built-in Plan subagent, a read-only research agent that keeps exploration output in its own context window, [per the subagent docs](https://code.claude.com/docs/en/sub-agents#built-in-subagents). The status bar shows `⏸ plan mode on` while plan mode is active.

## How do you turn plan mode on and off?

Press `Shift+Tab` until the status bar shows `⏸ plan mode on`, or start a single prompt with `/plan`. From auto mode, the first press switches to Manual mode, and the cycle then runs Manual, accept edits, plan, [as the docs describe](https://code.claude.com/docs/en/permission-modes#switch-permission-modes). To start a session in plan mode from the command line:

```bash
claude --permission-mode plan
```

Press `Shift+Tab` again to leave plan mode without approving a plan. To make plan mode the starting mode for every terminal session in a project, set `permissions.defaultMode` in the project's `.claude/settings.json`:

```json
{
  "permissions": {
    "defaultMode": "plan"
  }
}
```

The VS Code extension doesn't read project settings for its starting mode; set `claudeCode.initialPermissionMode` to `plan` in your VS Code user settings instead ([docs](https://code.claude.com/docs/en/permission-modes#set-plan-mode-as-the-default)).

## What happens when you approve a plan?

Approving a plan ends plan mode and switches the session to the permission mode you chose, so Claude starts editing. When the plan is ready, Claude Code offers [three choices](https://code.claude.com/docs/en/permission-modes#review-and-approve-a-plan):

- **Yes, and use auto mode**: approve and continue in auto mode. It reads **Yes, auto-accept edits** when auto mode isn't available to your session.
- **Yes, manually approve edits**: approve and review each edit yourself.
- **No, keep planning**: stay in plan mode and tell Claude what to change.

Press `Ctrl+G` to open the plan in your text editor and change it before Claude proceeds. With the `showClearContextOnPlanAccept` setting on, the list gains a first option that approves the plan and clears the planning context. To plan again later, cycle back with `Shift+Tab` or start the next prompt with `/plan`.

## Which model writes the plan?

The plan comes from whatever model the session is on, so a session on Sonnet plans on Sonnet. Two settings change that. The `opusplan` alias "uses `opus` during plan mode, then switches to `sonnet` for execution," according to the [model configuration docs](https://code.claude.com/docs/en/model-config#opusplan-model-setting). And the same docs describe a Haiku session as normally upgrading to Sonnet while in plan mode.

| Setup                           | Model that plans                                                   | Model that builds                                | How to set it                                                          |
| ------------------------------- | ------------------------------------------------------------------ | ------------------------------------------------ | ---------------------------------------------------------------------- |
| Plan mode on its own            | The session's model                                                | The session's model                              | `Shift+Tab` or `/plan`                                                 |
| `opusplan`                      | Opus (`ANTHROPIC_DEFAULT_OPUS_MODEL` if set)                       | Sonnet (`ANTHROPIC_DEFAULT_SONNET_MODEL` if set) | `/model opusplan` or `claude --model opusplan`                         |
| Plan subagent                   | Inherits the main conversation's model                             | Not used for building                            | `CLAUDE_CODE_SUBAGENT_MODEL` with `CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1` |
| AutoRouter selected in `/model` | Picked for each turn: your rules first, then the turn's difficulty | Picked for each turn the same way                | Choose Auto with `/model`                                              |

![Plans come from the session's model unless split. Plan mode alone: 1. Session model plans; 2. Session model builds. opusplan: 1. Opus plans; 2. Sonnet builds. Auto: 1. Picks for planning; 2. Picks for building. Source: Claude Code model configuration docs, checked October 26, 2026.](https://auto.sh/blog/images/claude-code-plan-mode/2-who-plans.png)

Every switch between models has a cost of its own. Each model keeps its own prompt cache, so the first request after a switch "reads the entire conversation history with no cache hits," per the [prompt caching docs](https://code.claude.com/docs/en/prompt-caching#switching-models). With `opusplan`, each move in or out of plan mode is a model switch. [Every way to choose a model in Claude Code](/blog/claude-code-model-settings) covers the other model settings.

## Does plan mode save usage?

Plan mode can save usage by catching a wrong direction before Claude writes code. Anthropic's [cost guide](https://code.claude.com/docs/en/costs) lists plan mode for complex tasks as a way of "preventing expensive re-work when the initial direction is wrong." Planning still uses tokens: Claude reads files and runs commands to write the plan, and those requests count toward your plan's limits like any other.

Plan mode multiplies with agent teams. The same guide says agent teams use about seven times more tokens than standard sessions when teammates run in plan mode, because each teammate keeps its own context window ([costs](https://code.claude.com/docs/en/costs)).

For quick, clear changes, planning first mostly adds turns. Plan mode pays off on work that spans several files or where the approach is open. [How Claude Code usage limits work](/blog/claude-code-usage-limits) covers what else uses up a plan fastest.

## How does Auto handle planning and building?

AutoRouter picks a model for each turn while it is the model selected in Claude Code's `/model` picker, so planning and building turns can go to different models without a fixed split. Your own rules decide a turn first. Otherwise AutoRouter works out how hard the turn is, only considers models that clear the quality bar for it, sends hard work to the most capable model your plans cover, and sends everything else to the model that costs you least.

Auto's own examples show the spread (illustrations; real routes follow your plans and rules): a change across six files goes to Claude Opus 5.5 on the Claude plan, and a commit message is quick work, so a low-cost open model writes it and the plan isn't touched. In Claude Code, Claude models run on your Claude plan, and every turn shows its model, what it cost and why.

You can steer it with rules written in plain English, such as "Use Claude Opus 5.5 for UI work," which come before Auto's own. Picking `opusplan` or any other model in `/model` sends turns straight to it, because AutoRouter routes only while it is the model selected. [How AutoRouter picks a model for each turn](/blog/how-autorouter-picks-a-model) walks through the full order. Auto is in beta and runs on macOS 14 or later; Claude Code needs Node 22.18 or later.

## Questions

### Can Claude run commands in plan mode?

Yes, for exploring. When auto mode is available and the `useAutoModeDuringPlan` setting is on, which it is by default, a classifier reviews shell commands and runs the ones it approves. Without auto mode, commands outside Claude Code's built-in read-only set ask for your approval ([docs](https://code.claude.com/docs/en/permission-modes#analyze-before-you-edit-with-plan-mode)).

### What happened to Ultraplan?

Anthropic removed the Ultraplan research preview, including the `/ultraplan` command. [Its notice](https://code.claude.com/docs/en/ultraplan) points to plan mode for local planning and to Claude Code in the cloud for planning and reviewing in a browser.

### Can I edit the plan before Claude starts?

Yes. Press `Ctrl+G` at the approval prompt to open the plan in your default text editor, change it, and let Claude proceed from your version. You can also choose **No, keep planning** and tell Claude what to change.

### Does approving a plan give the session a name?

Yes. Accepting a plan gives the session a generated title based on the plan, unless you have already named the session, according to the permission modes docs.

### Does opusplan work with Auto?

Choosing `opusplan` in `/model` replaces Auto as the selected model, so turns go to Opus and Sonnet as `opusplan` decides. Pick Auto again with `/model` to go back to a model chosen for each turn.

## Sources

- [Choose a permission mode](https://code.claude.com/docs/en/permission-modes), checked October 26, 2026
- [Model configuration](https://code.claude.com/docs/en/model-config), checked October 26, 2026
- [Create custom subagents](https://code.claude.com/docs/en/sub-agents), checked October 26, 2026
- [Manage costs effectively](https://code.claude.com/docs/en/costs), checked October 26, 2026
- [Prompt caching](https://code.claude.com/docs/en/prompt-caching), checked October 26, 2026
- [Common workflows](https://code.claude.com/docs/en/common-workflows), checked October 26, 2026
- [Ultraplan is no longer available](https://code.claude.com/docs/en/ultraplan), checked October 26, 2026

## Read next

- [How to choose and change models in Codex and Claude Code](https://auto.sh/blog/models-in-codex-and-claude-code.md): To give each task the right model, use Auto, the Mac app for all your coding agents: it adds models from every leading provider to the picker you already use (Claude Code, Codex, Cursor, etc.) and can pick one for each turn. To choose yourself, give hard, multi-file work a frontier model such as Claude Opus 5.5 or GPT-6.2 Astra and quick edits a fast one such as Claude Haiku 5.5 or GPT-6 Luna. Switch with /model in either app, a launch flag for one session, or a settings file for every session.
- [How to use MiniMax in Claude Code and Codex](https://auto.sh/blog/minimax-in-claude-code-and-codex.md): Use Auto, the Mac app for all your coding agents: it puts MiniMax M3.1 Flash in each one's model picker (Claude Code, Codex, Cursor, etc.) with no MiniMax key or config. Natively, set Claude Code's `ANTHROPIC_BASE_URL` to `https://api.minimax.io/anthropic` with your M Plan key and `MiniMax-M3.1-Flash[1m]` model variables in `~/.claude/settings.json`, and add `https://api.minimax.io/v1` as a provider in Codex's `config.toml`.
- [How to use Kimi in Claude Code and Codex](https://auto.sh/blog/kimi-in-claude-code-and-codex.md): Use Auto, the Mac app for all your coding agents: it puts Kimi K3.1 Pro in each one's model picker (Claude Code, Codex, Cursor, etc.) with no Kimi account, key or config. Natively, set Claude Code's `ANTHROPIC_BASE_URL` to Moonshot's `https://api.moonshot.ai/anthropic` (or `https://api.kimi.ai/coding/` with a Kimi Code plan) with your key and model variables in `~/.claude/settings.json`, and add `https://api.moonshot.ai/v1` as a provider with `kimi-k3.1-pro` in Codex's `config.toml`.

Tags: [Claude Code](https://auto.sh/blog/tags/claude-code.md), [Models](https://auto.sh/blog/tags/models.md), [Guides](https://auto.sh/blog/tags/guides.md)

Drafted with AI from the sources linked above, then checked and edited by the Auto team.

Auto is a Mac app for AI model routing in Codex, Claude Code, Cursor and other supported coding agents. It uses eligible connected subscriptions first. See [setup](https://auto.sh/setup.md) and [pricing](https://auto.sh/pricing).
