Claude Code Plan Mode: How to Turn It On and Exit (2026)

3 min read

Claude Code plan mode: Claude reads and plans but does not edit. Four ways to turn it on, how to approve a plan and leave. From the official docs, read 2026-11-28.

What is plan mode?

Plan mode is a Claude Code permission mode where Claude researches and proposes changes without making them. It reads files and runs shell commands to explore, then writes a plan. It does not edit your source until you approve that plan. Use it when a change touches many files and you want to review the approach first.

How to turn plan mode on

Claude Code docs list these ways to enter plan mode:

MethodHowScope
Shift+TabPress Shift+Tab until the status bar shows ⏸ plan mode onCurrent session
/planStart one prompt with /planOne prompt
Command-line flagclaude --permission-mode plan; the same flag works with -pOne run
Project settingSet permissions.defaultMode to plan in .claude/settings.jsonEvery session in that project

In VS Code, the setting claudeCode.initialPermissionMode can start sessions in plan mode.

How to approve a plan and leave

When the plan is ready, Claude Code shows three options:

  1. Yes, and use auto mode: approve and switch to auto mode.
  2. Yes, manually approve edits: approve and switch to the default mode, where you confirm each edit.
  3. No, keep planning: stay in plan mode.

Press Ctrl+G to open the plan in your text editor before you choose. To leave plan mode without a plan, press Shift+Tab again when no approval prompt is open.

Permission modes

The permission modes named in the docs are default (also called manual), acceptEdits, plan, auto, dontAsk and bypassPermissions. Plan mode is the one that holds all edits until you approve a plan.

One limit: in an interactive terminal session with bypass permissions available, a file edit or shell command that Claude tries during planning can run without a prompt. The docs call this out. Plan mode keeps its blocks in -p runs, Agent SDK sessions and the VS Code chat panel.

Memory and plan mode

Plan mode changes what Claude may do, not what it remembers. A plan lives for the task. Rules that should hold across sessions belong in CLAUDE.md; see Claude Code commands for /memory and /init.

If you want decisions from past sessions to come back, a memory layer is needed. Hindsight ships one Coding Agents package, @vectorize-io/hindsight-coding-agents, that covers 22 CLI agents including Claude Code, Codex CLI and Cursor. Its limit: it returns more context per retrieval by default, so set max_tokens lower if your sessions are short. For the rest of the coding-agent options, see AI coding agent memory.

Sources