Point Claude at your database.

Try free
← Blog

Claude Code Plan Mode: How to Turn It On, What It Blocks, and What to Do With the Plan (2026)

Plan mode makes Claude Code read and propose before it edits. Every documented way to turn it on (Shift+Tab, /plan, --permission-mode plan, defaultMode), the three choices when a plan is ready, the opusplan model setting, all six permission modes in a table, and a worked example on a SQL report with real DuckDB output. Checked against Anthropic's docs and Claude Code 2.1.284 on 20 November 2026.

Fastero Dev TeamFastero Dev Team2026-11-20

Plan mode is for the first half of a task, when you want Claude to look before it touches anything. Turning it on takes one key, but what it blocks depends on how the session started, and the approval screen decides how Claude works once you say yes.

The short answer: plan mode is one of Claude Code's six permission modes. Claude reads files, runs commands to explore and writes a plan, and Claude Code blocks edits to your source until you approve it. Turn it on with Shift+Tab (three presses from auto mode, where sessions start since v2.1.283; two from Manual), by starting a prompt with /plan, with claude --permission-mode plan, or for a whole project with "defaultMode": "plan" in .claude/settings.json. When the plan is ready you approve it and continue in auto mode (or accept edits), approve it and review each edit, or keep planning; Ctrl+G opens the plan in your editor first. The opusplan model setting plans on Opus and builds on Sonnet.

Fastero

Point Claude at your database.

Add Fastero to claude.ai or Claude Code. Claude builds the dashboard, deploys the app or publishes a live page, and your team opens it in Fastero.

Try free →

How to turn on plan mode

Way How Applies to
Keyboard Shift+Tab until the status bar shows ⏸ plan mode on; Alt+M on Windows when the runtime doesn't enable VT input mode This session (terminal and JetBrains)
Slash command /plan, or /plan fix the auth bug to enter plan mode and start that task This session
CLI flag claude --permission-mode plan; works with -p too One session
Setting "permissions": { "defaultMode": "plan" } in .claude/settings.json Every terminal session in the project
VS Code Plan in the mode indicator, a typed /plan (v2.1.280+), or claudeCode.initialPermissionMode set to plan One conversation, or every new one
Desktop and web Plan in the mode selector under the prompt box That session only

From auto, "the first press switches to default, and the cycle then runs default → acceptEdits → plan": three presses. Claude Code's own tip, "Press Shift+Tab twice to enable", counts from Manual. Claude can also switch itself with its EnterPlanMode tool, which needs no permission; ExitPlanMode, which presents the plan, does.

What Claude can and can't do in plan mode

From the docs: "Claude reads files, runs shell commands to explore, and writes a plan, but does not edit your source." Research can go to the built-in Plan subagent, whose tools are read-only ("Write and Edit are denied"), so the exploration stays out of your main conversation; more in Claude Code subagents. The plan itself is a file in ~/.claude/plans, unless plansDirectory names a folder inside the project.

Shell commands follow the first rule that matches:

  1. Interactive terminal session with bypass permissions available: no prompt and no classifier.
  2. Auto mode available and useAutoModeDuringPlan on, which is the default: the auto-mode classifier reviews each command instead of you; approved ones run, rejected ones are blocked.
  3. Anything else: commands outside the built-in read-only set ask first.

The first rule is the trap: "In interactive terminal sessions with bypass permissions available, Claude Code also doesn't enforce plan mode's blocks." Claude is still told to plan, but an edit it attempts runs. Bypass is available after starting with --dangerously-skip-permissions, --allow-dangerously-skip-permissions or --permission-mode bypassPermissions, or with it as your default; since v2.1.299 a one-time note says so. In -p runs, the Agent SDK and VS Code's chat panel, plan mode keeps its blocks.

When the plan is ready: your three choices

  • Yes, and use auto mode: approve and continue in auto mode. It reads "Yes, auto-accept edits" when auto mode isn't available, and offers bypass permissions if the session started with them.
  • Yes, manually approve edits: approve, then review every edit.
  • No, keep planning: stay in plan mode and say what to change.

Before you pick, Ctrl+G opens the plan in your text editor to change it directly. "showClearContextOnPlanAccept": true adds a first option that approves and clears the planning context, so Claude builds from the plan alone; it has been hidden by default since v2.1.81. At this prompt Shift+Tab approves, so press Esc first if you only meant to leave. In VS Code the plan opens as a Markdown document you can comment on inline. The whole flow:

Diagram of Claude Code plan mode in three steps: the ways to turn it on, what Claude does while exploring with edits blocked, and the three approval choices (Yes, and use auto mode; Yes, manually approve edits; No, keep planning) with where each leads, plus the bypass-permissions exception

Plan mode from start to approval, drawn from Anthropic's Claude Code docs, checked 20 November 2026.

Plan on Opus, build on Sonnet: opusplan

The opusplan model setting "uses opus during plan mode, then switches to sonnet for execution". Pick it with /model opusplan or claude --model opusplan; opusplan[1m] asks for the 1M-token context window. A haiku session likewise plans on Sonnet. One cost note: since 2.1.326, automatic compaction in plan mode uses "the model answering you, such as Opus with opusplan, so it can cost more".

Plan mode and the other permission modes

Mode Status bar What runs without asking Best for, per Anthropic
default (Manual) ⏸ manual mode on File reads in your working directories and other actions that need no approval Sensitive work, unfamiliar code
acceptEdits ⏵⏵ accept edits on Reads, file edits, common filesystem commands (mkdir, touch, mv, cp) Iterating on code you're reviewing
plan ⏸ plan mode on Reads, plus classifier-approved commands when auto mode is available Exploring a codebase before changing it
auto ⏵⏵ auto mode on Everything, with background safety checks Long tasks, fewer prompts
dontAsk ⏵⏵ don't ask on Reads and pre-approved tools; anything that would prompt is denied Locked-down CI and scripts
bypassPermissions ⏵⏵ bypass permissions on Everything Isolated containers and VMs only

"Deny rules block in every mode, including bypassPermissions." dontAsk never appears in the Shift+Tab cycle; the desktop app lacks it, and cloud sessions offer only Accept edits, Plan and Auto. Flags and shortcuts for every mode are in our Claude Code cheat sheet.

Point Claude at your database.

Start free →

What claude --help lists

We ran it on Windows 11 on 20 November 2026 without starting a session. Our install was 2.1.284; the newest release that day was 2.1.329.

$ claude --version
2.1.284 (Claude Code)
 
$ claude --help
  ...
  --allow-dangerously-skip-permissions  Enable bypassing all permission checks
                                        as an option, without it being enabled
                                        by default. Recommended only for
                                        sandboxes with no internet access.
  ...
  --permission-mode <mode>              Permission mode to use for the session
                                        (choices: "acceptEdits", "auto",
                                        "bypassPermissions", "manual",
                                        "dontAsk", "plan")

The list says manual where the docs say default; both work, and "claude --help lists it in place of default". The first flag is the one that weakens plan mode: with bypassPermissions in the cycle of an interactive terminal session, "most edits and commands Claude attempts in plan mode run with no prompt, before you approve a plan."

A worked example: add a column to a SQL report

An example we wrote, not a transcript of a session. The repository holds reports/monthly_channel.sql: orders and revenue per sales channel for the last three full months, over the invented sample data Fastero ships (4,734 orders, November 2024 to October 2026). The task, as a prompt:

/plan Add an average order value column to reports/monthly_channel.sql.
AOV = revenue divided by distinct orders, per month and channel.
Find everything that reads this report (scripts, tests, dashboards, docs)
and say which of them change. Don't rename or reorder existing columns.
End the plan with how you will check the numbers.

A plan worth approving:

  1. Names the files it will change, and the readers it checked and will leave alone.
  2. Writes the formula out: SUM(revenue) / NULLIF(COUNT(DISTINCT order_id), 0), rounded like revenue.
  3. Adds the column last, so anything reading columns by position keeps working.
  4. Lists the follow-on edits: a test's expected output, the README's column list, an export header.
  5. Ends with a check you can rerun: run the query, recompute one row by hand.

Push back when the plan averages the wrong thing. AVG(unit_price) sounds like average order value but ignores quantity. We ran both on the sample with DuckDB 2.0.0 (Python 3.14):

month       channel     avg_unit_price  avg_order_value
----------  ----------  --------------  ---------------
2026-08-01  Online              131.52           345.20
2026-08-01  Partner             139.41           346.30
2026-08-01  Sales team          179.40           351.44
2026-09-01  Online              129.14           291.11
2026-09-01  Partner             103.54           263.53
2026-09-01  Sales team          125.54           291.56
2026-10-01  Online              116.57           282.14
2026-10-01  Partner             112.31           271.27
2026-10-01  Sales team          149.40           300.25

The query file and the full run, unedited:

Terminal showing the SQL file that computes AVG(unit_price) next to revenue divided by distinct orders, then its DuckDB 2.0.0 output: 4,734 invented orders, and for each channel and month from August to October 2026 an average unit price far below the average order value

Average unit price against average order value on invented sample data, run in DuckDB 2.0.0 on 20 November 2026.

The shortcut comes out at 38% to 51% of the real figure. The hand check from step 5 holds: August's Online row is 42,460.16 of revenue over 123 orders, which is 345.20.

Push back, too, on a plan that reaches past the ask (renaming revenue, tidying other reports), that says "update related files" without naming them, or that checks its numbers against a production database it can write to. For a report other people read, choose "Yes, manually approve edits": there are few enough edits to read each one. If every plan should end with a check, say so once in CLAUDE.md.

When the plan needs a team's real numbers

Claude Code enforces plan mode on your machine, with the exception above. When the report reads a team's database, a server that can't write is a second lock. Fastero is an AI and data platform where people and AI agents work together on a team's data, and a remote HTTP MCP server with OAuth sign-in, tested with Claude and Claude Code:

  • Add it with claude mcp add --scope user --transport http fastero https://api.fastero.com/api/v1/mcp, then /mcp to sign in through the browser.
  • Its SQL tool runs one SELECT, WITH, EXPLAIN or SHOW statement and refuses anything that could change data, in any permission mode, and returns at most 500 rows (as of 20 November 2026).
  • fastero_get_definitions returns the SQL your team saved for a number such as average order value, so the plan can use it instead of inventing its own.
  • The finished chart can go on a dashboard colleagues open with their own login; viewers are free.

Fastero's AI Agent Access screen, Connect your agent: Copy setup instructions for Claude Code, Cursor or another agent, and a button that opens Claude's connector directory for Claude in the browser or desktop app

Settings, AI Agent Access: an agent signs in through the browser, so there is no key to copy.

More in Claude Code and MCP and Claude Code Desktop.

FAQ

How do I turn on plan mode in Claude Code?

Press Shift+Tab until the status bar shows ⏸ plan mode on, type /plan (optionally followed by the task), or start with claude --permission-mode plan. For every terminal session in a project, set permissions.defaultMode to "plan" in .claude/settings.json.

What is the shortcut for plan mode?

Shift+Tab cycles the permission modes: two presses from Manual, three from auto mode, where interactive sessions start since v2.1.283. On Windows, Alt+M does the same when the runtime doesn't enable VT input mode.

Can Claude edit files in plan mode?

Not your source: edits stay blocked until you approve the plan. The exception is an interactive terminal session with bypass permissions available, where plan mode's blocks aren't enforced.

How do I exit plan mode?

Approve the plan, which switches to the mode the option names, or press Shift+Tab with no approval prompt open. At the approval prompt, press Esc first, because Shift+Tab there approves the plan.

Where does Claude Code save plans?

In ~/.claude/plans by default. Set plansDirectory, for example to "./plans", to keep them in the project; a path outside the project root falls back to the default.

Sources

Read on 20 November 2026; the --help output is from Claude Code 2.1.284 on Windows 11, and the SQL ran in DuckDB 2.0.0 on Fastero's invented sample data:

Point Claude at your database. Get a dashboard your team can open.

Sign in from claude.ai, or add one line to Claude Code, and ask for the dashboard. No credit card required.

Follow Fastero on LinkedIn for new articles and examples.

Keep reading

Related articles

2026-11-20

Claude Code in VS Code: Installing the Extension, What It Adds Over the Terminal, Shortcuts and Settings (2026)

Claude Code for VS Code is Anthropic's free extension, with 30.6 million installs on the Marketplace: a chat panel with plans you can comment on, per-change diffs and @-mentions with line ranges, running its own bundled copy of Claude Code. How to install it in VS Code, Cursor and other forks, how it differs from the CLI in VS Code's terminal, the shortcuts and settings read from the installed extension, and its limits, checked 20 November 2026.

claude-codeclaudevscode

2026-11-20

Claude Code Statusline: Setup, Every JSON Field, and 3 Tested Scripts for Bash, Python and PowerShell (2026)

How to set up Claude Code's status line with /statusline or the statusLine setting, every field Claude Code sends your script, and three scripts we tested on Windows 11: Bash with git branch, Python with context, cost and the 5-hour limit, and PowerShell. Two of the docs' examples failed as written on our Windows machine, and here is the fix.

claude-codeclaudeai-agents

2026-11-20

Claude Code Settings: Where settings.json Lives, Which File Wins, and Permission Rules That Work (2026)

Claude Code reads up to four settings files, and the highest one that sets a key wins: managed, then --settings, local, project, user. Where each file lives, the allow, ask and deny rule syntax, the keys and environment variables worth setting, managed settings for teams, and a four-file example we validated against the published schema, which lacks 42 documented keys. Checked against Claude Code 2.1.284 on 20 November 2026.

claude-codeclaudeai-agents