Claude Code Plan Mode, Before It Hits Prod
What is Claude Code plan mode? It’s the permission mode where Claude reads your code, runs shell commands to look around, and writes a plan, but doesn’t edit your source until you approve it. That’s how the Claude Code permission modes page describes it, checked November 23, 2026. You get into it by pressing Shift+Tab until the status bar says ⏸ plan mode on, by starting a single prompt with /plan, or by launching with claude --permission-mode plan.
That’s the docs answer. Here’s the founder answer: plan mode is the cheapest code review you will ever get, and most people building apps with Claude Code skip it because the default flow feels faster. It is faster, right up until the AI rewrites your auth middleware to fix a button colour.
How to turn it on (three ways)
Shift+Tab cycles the modes in the terminal. The order on the docs page is auto (when your account has it), manual, accept edits, plan, and bypass permissions if you enabled that. So depending on where you start, it’s two or three presses. Watch the status bar, not your count.
/plan in front of a prompt plans just that one request. I use this most. “/plan add Stripe webhooks for subscription cancel” gets me a plan, and the next prompt without /plan goes back to normal.
To make it the default for a project, put "defaultMode": "plan" under permissions in .claude/settings.json. One catch the docs mention: conversations started from the VS Code extension don’t read the project setting for this. There you set claudeCode.initialPermissionMode to plan in your VS Code user settings.
To leave without approving anything, press Shift+Tab again. But if the approval prompt is already on screen, press Esc first. At that prompt Shift+Tab approves the plan. I’ve seen two people do that by accident in the same week.
What it actually blocks, and what it doesn’t
It blocks edits to your files. It does not block reading, and it doesn’t fully block shell commands. What happens to a command depends on your session. If auto mode is available and the useAutoModeDuringPlan setting is on (it is by default), a classifier reviews each command and blocks the ones it rejects. Without auto mode, anything outside the built-in read-only set asks you first.
So “plan mode” doesn’t mean “nothing can happen”. A planning session can still run npm test, git log, or a script that hits your staging database if you approve it. If your .env points at production, a “read-only” query is still a query against production. Fix that before you trust any mode: a local or branch database for development, and production keys only in your hosting provider’s secrets.

The approval prompt is the important bit
When the plan is ready you get three choices:
- Yes, and use auto mode (or “Yes, auto-accept edits” if auto mode isn’t available to you). Claude edits without asking per file.
- Yes, manually approve edits. You approve each edit as it comes.
- No, keep planning. You stay in plan mode and say what to change.
Approving switches the session to that mode and Claude starts writing code. Press Ctrl+G before you approve and the plan opens in your text editor, so you can cut steps out of it or add “don’t touch supabase/migrations” yourself. There’s also a setting, showClearContextOnPlanAccept, that adds an option to approve and clear the planning context, which helps when the research ate half your context window.
My opinion: pick “manually approve edits” for anything touching money, auth, or the database schema. Auto-accept is fine for a landing page. People get burned by using one choice for both.
opusplan: the setting most people don’t know
Claude Code has a model alias called opusplan. Per the model configuration docs, it uses Opus during plan mode and switches to Sonnet for execution. You set it with /model opusplan or --model opusplan.
For founders on a Pro plan this matters, because the expensive model does the thinking and the cheaper one does the typing. We wrote up what a month of Claude Code costs in Claude Code pricing. On Max or Ultra the default is already Opus 5.5, so the saving is smaller, but the split still keeps long sessions from hitting limits as early.
A plan that saved a launch
A founder we work with was adding team accounts to a booking app. The prompt was roughly “let users invite teammates to their workspace”. In normal mode Claude would have started writing. In plan mode, step 4 of the plan read: “Update the RLS policy on bookings to allow access where workspace_id matches the user’s workspace.”
That sounds right. It wasn’t. The app had no workspace_id on bookings yet, the plan added the column with a default, and the new policy would have matched every existing booking to whichever workspace got the default value. Every customer’s bookings, visible to one team. We caught it reading the plan for ninety seconds. Without the plan it would have been a migration, a passing test suite (the tests used one user), and a support email a week later.
That’s the whole value. Not that the AI plans better. That you get to read the plan while it’s still text.
Where plan mode doesn’t help
It won’t catch what it doesn’t know about. If your production database has a column the code doesn’t mention, the plan won’t mention it either. It won’t stop a bad plan you approve because you were tired. And it doesn’t replace tests that run in CI on every change, since the plan is only as good as the files Claude read that session.
There’s also a cost. Plan mode reads more files before doing anything, so a short task takes longer and uses more tokens. For a typo fix, skip it. For a schema change, never skip it.
The setup we’d use for a real app
Plan mode as the project default, so nobody forgets. A CLAUDE.md that lists the folders Claude must not touch without asking (migrations, payment webhooks, auth). opusplan if you’re on Pro. Manual edit approval for anything in those folders. And CI that runs tests, lint, and a security scan on every pull request, so the second line of defence doesn’t depend on someone reading carefully at 11pm.
That last part is the piece most solo founders don’t have. It’s exactly what our AI-ready setup from $600 puts in place, and the guardrail retainer (from $500 a month) is us reviewing what Claude writes within 24 hours on workdays. If the app is already built and you need it live, see Claude Code or Cursor app to production, from $500. Not sure what it should cost? The app development cost calculator compares AI-built and agency numbers.