# What is Claude Code plan mode, and how do you use it?

> How Claude Code's plan mode works, from Shift+Tab and /plan to the approval options, and what to do when one approved plan has to guide several sessions.

- URL: https://www.latticerun.com/blog/claude-code-plan-mode
- Topic: Planning
- Published: 2026-11-28
- Facts checked: 2026-11-28
- Publisher: LatticeRun (Sequel AI Ltd)

Plan mode is a Claude Code permission mode in which Claude researches your code and proposes a plan without editing your source. You enter it with `Shift+Tab`, the `/plan` command or `claude --permission-mode plan`, and in most setups edits stay blocked until you approve the plan. Approving it switches the same session into an editing mode; plan mode itself doesn't split one approved plan across several agents.

This article is for founders and developers who run Claude Code on real projects. It covers how plan mode works according to Anthropic's documentation, checked in November 2026, and what to do when a plan has to outlive the session that wrote it.

## Key takeaways

- Anthropic's "Choose a permission mode" page says plan mode "tells Claude to research and propose changes without making them": Claude reads files and runs shell commands to explore, but doesn't edit your source.
- In the CLI, `Shift+Tab` cycles Manual (`default`) → `acceptEdits` → `plan`; `/plan` (optionally followed by a task, such as `/plan fix the auth bug`) switches into plan mode from the prompt; `--permission-mode plan` or `defaultMode: "plan"` starts there.
- The approval prompt offers to approve and continue with auto mode (or auto-accept edits), approve and review each edit, or keep planning. `Ctrl+G` opens the plan in your editor first.
- In interactive terminal sessions with bypass permissions available, Anthropic says not to rely on plan mode's blocks: edits and commands Claude attempts during planning can run without prompting.
- As of November 2026, Ultraplan has been removed; Anthropic points planning users to local plan mode or to cloud sessions.
- Plan mode saves plans as files, in `~/.claude/plans/` unless you set `plansDirectory`. To guide several sessions or agents, put the plan where they can all read it and where its steps have owners.

## What does plan mode do in Claude Code?

Plan mode is one of six permission modes in Claude Code, alongside Manual (`default`), `acceptEdits`, `auto`, `dontAsk` and `bypassPermissions`. Anthropic's permission modes page describes it this way: "Claude reads files, runs shell commands to explore, and writes a plan, but does not edit your source." The same page lists its best use as "Exploring a codebase before changing it".

What runs without asking depends on your setup. The page gives three cases, and the first that matches applies:

1. **Interactive terminal session with bypass permissions available.** Planning commands can run with neither the classifier nor a prompt. The docs warn: "don't rely on plan mode's blocks. A file edit or shell command Claude attempts during planning can run without prompting." Explicit ask rules and recognised `rm` and `rmdir` critical-path removals still prompt.
2. **Auto mode available and `useAutoModeDuringPlan` on** (the default). A classifier reviews shell commands, other than critical-path removals, instead of prompting you, and blocks the ones it rejects.
3. **Auto mode unavailable or that setting off.** Commands outside Claude Code's built-in read-only set ask for your approval.

The first case is the one to watch. If bypass permissions are available in your terminal session, even if you only added them to the cycle with `--allow-dangerously-skip-permissions`, plan mode stops being a reliable block: apart from explicit ask rules and critical-path removals, what Claude attempts can run without prompting. Outside the interactive terminal, the docs say plan mode "keeps its blocks", including in non-interactive runs with `-p`, Agent SDK sessions and the VS Code extension's chat panel.

## How do you turn on plan mode?

Here are the ways in, from Anthropic's permission modes page and its commands reference.

| Where | How | Lasts for |
|---|---|---|
| CLI, during a session | Press `Shift+Tab` until the status bar shows "⏸ plan mode on". The cycle runs `default` (Manual) → `acceptEdits` → `plan`, and optional modes slot in after `plan` | Until you approve a plan or press `Shift+Tab` again |
| CLI, from the prompt | Type `/plan`, optionally followed by a task: `/plan fix the auth bug` | Until you approve a plan or leave plan mode |
| CLI, at launch | `claude --permission-mode plan` | Until you approve a plan or switch mode |
| Every terminal session in a project | Set `defaultMode` to `"plan"` in the project's `.claude/settings.json` | Each new terminal session, until you approve a plan |
| VS Code extension | The mode indicator, or `claudeCode.initialPermissionMode` set to `plan` in your VS Code user settings | Picking Plan applies to that conversation only |
| Desktop app | The mode selector | The current session only |

One catch in that table: the docs say conversations the VS Code extension starts "don't read project settings for the starting permission mode", so `defaultMode` in `.claude/settings.json` won't put them in plan mode. Use the VS Code setting instead.

To leave plan mode without approving anything, press `Shift+Tab` again. If the approval prompt is open, press `Esc` first: Anthropic's docs warn that pressing `Shift+Tab` at that prompt approves the plan.

## How do you approve or change a plan?

When the plan is ready, Claude presents it and asks how to proceed. As of November 2026, the main choices are:

- **Yes, and use auto mode**: approve and continue in auto mode. If auto mode isn't available to you, for example because your organisation turned it off, the option reads **Yes, auto-accept edits**. If you started the session with bypass permissions enabled, it reads **Yes, and switch to BYPASS PERMISSIONS (no further prompts) for this session** instead.
- **Yes, manually approve edits**: approve, then review each edit as it comes.
- **No, keep planning**: stay in plan mode and tell Claude what to change.

If the `showClearContextOnPlanAccept` setting is on, a first option appears that, in the words of Anthropic's settings reference, "approves the plan, clears the conversation context, and starts implementing from the plan alone". Before choosing, you can press `Ctrl+G` to open the proposed plan in your default text editor and change it directly.

Approval exits plan mode and switches the session to the mode you picked, so Claude starts editing straight away. To plan again, cycle back with `Shift+Tab` or put `/plan` in front of your next prompt. Accepting a plan also gives the session a generated title based on the plan, unless you've already named it.

The plan itself is saved as a file. Anthropic's permission modes page lists the session's plan files in `~/.claude/plans/` by default, and Anthropic's settings reference says `plansDirectory` chooses "where Claude Code stores the plan files it writes in plan mode", resolved relative to the project root (for example `"./plans"`).

## What happened to Ultraplan?

Some guides still describe Ultraplan, a research preview that, in the words of Anthropic's commands reference, "sent a planning task to a cloud session for review in your browser". As of November 2026, Anthropic's Ultraplan page is titled "Ultraplan is no longer available" and says "Anthropic has removed the Ultraplan research preview". The removal covers the `/ultraplan` command, the `ultraplan` keyword trigger and the plan-approval option that sent a plan to Claude Code on the web. For planning workflows, the page points to local plan mode and to running Claude Code in the cloud.

## When should you use plan mode?

Plan mode costs a round trip, so it earns its place when a wrong first step is expensive. Our own rule of thumb, which is opinion rather than Anthropic guidance:

- **Use it** for changes that touch several files, unfamiliar code, migrations, and anything where you would want to see the approach before the diff.
- **Skip it** for a one-line fix, a rename, or a change you could describe exactly in one sentence.
- **Use an interview instead** when you don't yet know what you want. Anthropic's "Best practices for Claude Code" suggests asking Claude to "Interview me until you could write the spec, then write it to SPEC.md", then starting a fresh session to build from that file "so the build begins with a clean context and a written definition of done".

That last pattern matters for the next section. It works because the spec is a file that the next session reads. A plan file can play the same part, but nothing in plan mode assigns its steps to other sessions or tracks progress against them.

## Where should the plan live when several agents share it?

Plan mode is designed around one session: Claude plans, you approve, and the same session switches into an editing mode and carries the plan out. That suits one developer and one task. In our reading of the docs, it gets awkward when the plan is bigger than one session, for three reasons:

1. **Approval is a moment, not a sign-off.** Your choice in the approval prompt changes the session's mode. It doesn't produce a sign-off that another developer or agent can check later.
2. **Nobody owns the parts.** A plan with five steps doesn't say which session is doing step three. Two sessions given the same plan can start on the same step. We cover how that goes wrong in [what breaks when agents share task state](https://www.latticerun.com/blog/failure-modes-when-agents-share-task-state).
3. **Progress isn't tied back to the plan.** A plan file doesn't update itself: when step two is done, nothing in it changes unless someone edits it.

Claude Code does have one built-in way to fan work out: the bundled `/batch` skill, which, according to Anthropic's commands reference, "decomposes the work into 5 to 30 independent units, and presents a plan. Once approved, spawns one background subagent per unit in an isolated worktree." That suits a large mechanical change you can split into independent pieces. It doesn't keep a shared plan that other sessions, people or later agents can pick up.

The fix is to put the approved plan where every session can read it and where its steps become owned tasks. The light version is a file. Point `plansDirectory` at a folder in the repository, or copy the approved plan into a `PLAN.md`, commit it and reference it from CLAUDE.md, so every session can read it. We explain what CLAUDE.md does and doesn't carry between sessions in [does Claude Code have memory?](https://www.latticerun.com/blog/claude-code-memory). A file still leaves ownership and progress to you.

## A worked example: from a plan-mode plan to a shared Project Plan

LatticeRun, our product, takes the heavier route. Here is how a plan-mode plan for "add rate limiting to the public API" becomes a plan several agents can work from. The plan content is illustrative; the steps and tool names come from LatticeRun's [MCP connector page](https://www.latticerun.com/mcp), its [Agent Guide](https://www.latticerun.com/guide) and the connector's code.

**1. Plan in Claude Code as usual.** In plan mode, Claude reads the API code and proposes, say: a per-key limit stored in Redis, middleware on the public routes, a 429 response with a `Retry-After` header, and tests.

**2. Ask the agent to draw it as a Project Plan.** Connected over MCP, the agent calls `latticerun_create_plan` (for a project with no current plan), then `latticerun_apply_plan_operations` to write the flowchart. A plan is made of typed nodes and links between them, for example:

| Plan node | Kind | Becomes a task on release? |
|---|---|---|
| Public API is rate limited | Objective | No, stays as context |
| Per-key limits, not per-user | Decision | No, stays as context |
| Limiter middleware and Redis store | Deliverable | Yes |
| 429 response with Retry-After | Work item | Yes, inside the deliverable |
| Load tests for the limiter | Work item | Yes |
| Redis outage blocks all traffic | Risk | No, stays as context |

**3. Submit it for review.** The agent can submit the draft for review, and that is as far as it can go: the connector refuses approval and activation to agents, so the plan stays a proposal until you act.

**4. Approve and release.** You approve the plan in the app and release it. On release, the executable nodes (phases, deliverables and work items) create or link tasks in the project's task tree, and their progress rolls back up into the plan as those tasks move. Objectives, decisions, risks and milestones stay on the plan as context.

**5. Agents claim branches.** Each agent claims one branch with `latticerun_start_task` and receives the project brief, the task's place in the tree, bounded Project Memory and Project Plan context. One agent holds a branch at a time, and in Strict mode (where new projects start) task writes outside the claimed branch are refused. How claims keep several agents on one plan is explained in [agent task trees](https://www.latticerun.com/blog/agent-task-trees).

Plan mode stays useful in this flow: it is still how Claude thinks before it writes. LatticeRun's connector page says planning is optional and doesn't require plan mode; you can draw the flowchart yourself, have an agent draw it, or both. The Project Plan, the MCP connector and Project Memory are on paid plans, from Solo Pro at $12/month; the free plan keeps projects in your browser. For a wider look at planning tools that work with agents, see our guide to [a visual project planner that works with Claude](https://www.latticerun.com/blog/free-project-planner-claude-ai-agents).

## Frequently asked questions

### Can Claude run commands in plan mode?

Yes. Anthropic's documentation says Claude "runs shell commands to explore" while planning. Whether a command runs without asking depends on your setup: a classifier reviews commands when auto mode is available and `useAutoModeDuringPlan` is on (the default); otherwise commands outside the built-in read-only set ask for approval. In interactive terminal sessions with bypass permissions available, they can run without prompting.

### Does plan mode work in non-interactive runs?

Yes. The permission modes page says plan mode "keeps its blocks" wherever Claude Code runs without an interactive terminal, including `claude -p` runs and Agent SDK sessions. For `claude -p`, pass `--permission-mode plan`; Agent SDK sessions set the permission mode in their own options.

### Why didn't my project's defaultMode start VS Code in plan mode?

Because the VS Code extension doesn't read project settings for the starting permission mode. Anthropic's documentation says to set `claudeCode.initialPermissionMode` to `plan` in your VS Code user settings instead.

## Sources

- [Choose a permission mode](https://code.claude.com/docs/en/permission-modes) — Anthropic, Claude Code Docs
- [Best practices for Claude Code](https://code.claude.com/docs/en/best-practices) — Anthropic, Claude Code Docs
- [Commands](https://code.claude.com/docs/en/commands) — Anthropic, Claude Code Docs
- [All settings](https://code.claude.com/docs/en/settings-reference#plansdirectory) — Anthropic, Claude Code Docs
- [Ultraplan is no longer available](https://code.claude.com/docs/en/ultraplan) — Anthropic, Claude Code Docs
- [MCP connector for Claude Code and other agents](https://www.latticerun.com/mcp) — LatticeRun
- [Agent Guide: keeping an agent on the plan](https://www.latticerun.com/guide) — LatticeRun

*This article was drafted with AI assistance and checked by the LatticeRun team against the sources listed. Product details describe LatticeRun as it works on the date the facts were checked.*
