Claude Code’s plan mode makes it read your code and write a plan without changing a file. Press Shift+Tab until the status bar says plan mode on, or start a prompt with /plan. When the plan looks right, you approve it and Claude starts editing.
It is still in the product, even if it seems to have gone missing. Interactive terminal sessions now start in auto mode, so the first Shift+Tab does not land on plan mode. Keep pressing, or type /plan.
The one limit to know before you lean on it is that a plan lives in the session you made it in. Once a build outgrows one session, it needs a home outside it.
- Turn it on: press
Shift+Tabuntil the status bar showsplan mode on, type/plan(add a task after it to start at once), or start the session with the plan mode flag shown below. - What it does: Claude reads files, runs shell commands to explore and writes a plan. It does not edit your source until you approve.
- Approve or leave: choose an approve option and Claude starts editing, or press
Shift+Tabagain to leave without approving.Ctrl+Gopens the plan in your editor first. - Plan with Opus, build with Sonnet: the
opusplanmodel alias switches models at the plan boundary. - The limit: a plan lives in one session. For a build that spans many, Context Board keeps the plan in a doc that Claude Code or Codex reads and updates.
How to enter plan mode
There are three ways in from the terminal, and Anthropic’s docs give each one.
- Shift+Tab. Press it to cycle permission modes. The status bar shows which one is active, and plan mode reads
⏸ plan mode on. /plan. The command reference says it enters plan mode directly from the prompt, with an optional description./plan fix the auth bugswitches modes and starts on that task in one go.- A launch flag.
claude --permission-mode planstarts the session in plan mode. The same flag works with-pfor non-interactive runs.
Why Shift+Tab seems to skip it
On Claude Code v2.1.283 or later, a session you start in a terminal or through the VS Code extension begins in auto mode, where a classifier reviews risky actions instead of asking you each time. The docs say the cycle runs from auto to default, then accept edits, then plan. Default shows in the status bar as manual mode. Optional modes slot in after plan, so a session with auto available loops back to auto on the next press.
So in a fresh terminal session you press Shift+Tab a few times and watch the status bar. Stop when it says plan mode on. If you would rather not count, type /plan.
/ultraplan is gone. The command reference lists it as removed and says to use plan mode instead. If a tutorial tells you to run it, the tutorial is out of date.
Make plan mode the default
To start every terminal session in a project in plan mode, set defaultMode in .claude/settings.json:
{
"permissions": {
"defaultMode": "plan"
}
}
The docs say a plan value applies from any settings file. Only auto and bypassPermissions are ignored in the project files.
Other places it works
| Where | Switch into plan mode | Start there by default |
|---|---|---|
| Terminal | Shift+Tab, /plan, or a launch flag | permissions.defaultMode set to plan |
| VS Code | Click the mode indicator and pick Plan | The claudeCode.initialPermissionMode setting. Picking Plan in the indicator applies to that conversation only |
| JetBrains | Same as the terminal: the plugin runs Claude Code in the IDE terminal | Pass the permission-mode flag when launching |
| Desktop app | The mode selector in the Code tab | Plan applies to the current session only |
| Web and mobile | The mode dropdown offers Plan for cloud sessions and Remote Control sessions | Pick it per session |
How to exit plan mode
Press Shift+Tab again and you move to the next mode in the cycle with no plan approved. To plan again, cycle back or start your next prompt with /plan.
Approving a plan also exits plan mode, and Claude starts editing in the mode you chose. The next section covers those choices.
What Claude can and cannot do in plan mode
Anthropic’s permission modes page describes plan mode as telling Claude to “research and propose changes without making them.” A permission mode sets what Claude can do without asking you first, and plan mode sits next to manual, accept edits and auto.
It can read files, run shell commands to explore, and write a plan. It can also write its own plan files. The docs name “the current session’s own plan files in ~/.claude/plans/” (or the folder you set with plansDirectory) as exempt from the protection on the .claude folder.
It cannot edit your source. Edits stay blocked until you approve the plan.
What happens to a shell command depends on your setup, and the docs give the cases in order:
- Auto mode is available and
useAutoModeDuringPlanis on, which is the default. The classifier reviews shell commands instead of asking you. Approved commands run and rejected ones are blocked. - Auto mode is not available, or
useAutoModeDuringPlanis off. Commands outside the built-in read-only set prompt you for approval.
Plan mode keeps its blocks in non-interactive -p runs, in Agent SDK sessions and in the VS Code chat panel.
The bypass exception
In an interactive terminal session started with bypass permissions available, Claude Code does not enforce plan mode’s blocks. The docs say Claude “is still instructed to plan without editing, but a file edit or shell command it attempts during planning runs without prompting.”
So plan mode is a hard stop in most setups, and an instruction in that one. If you run with bypass permissions, treat plan mode as a request, not a lock.
Read, edit and approve the plan
When the plan is ready, Claude presents it and asks how to proceed. These are the choices the docs list:
- Yes, and use auto mode. Approve and start in auto mode. If auto mode is not available to your session, for example because your organization turned it off, this option reads Yes, auto-accept edits instead. If you started with bypass permissions enabled, it offers to switch to bypass permissions for the session.
- Yes, manually approve edits. Approve, then review each edit one by one.
- No, keep planning. Stay in plan mode and tell Claude what to change.
A plan waits for you until you answer, so if you step away, Claude Code notifications shows how to get pinged when one is ready.
Edit the plan before Claude starts
Press Ctrl+G to open the proposed plan in your default text editor and change it directly. This is the fastest way to cut a step you do not want or fix an assumption, and it beats arguing with Claude about wording.
Clear the context on approval
If you turn on showClearContextOnPlanAccept, the list gains a first option that approves the plan and clears the planning context. That gives the build a clean start. The exploration is behind you and only the plan comes with you.
Accepting a plan also gives the session a generated title based on the plan, unless you already named the session. That helps later when you hunt for it in /resume.
Plan mode and opusplan
Anthropic’s model configuration page has a model alias built around plan mode. With opusplan:
- In plan mode Claude Code uses
opusfor complex reasoning and architecture decisions. - In execution mode it switches to
sonnetfor code generation and implementation.
On the Anthropic API, opus is Opus 5.5 and sonnet is Sonnet 5.5. Set it like any model, with /model opusplan inside a session, claude --model opusplan at launch, or the model setting. The docs also describe opusplan[1m] for a 1M context window in both phases.
On Pro, Max, Team and Enterprise plans the default model is already Opus 5.5, so a normal session plans and builds on Opus. opusplan moves the build half to Sonnet. Anthropic’s cost guide says Sonnet “handles most coding tasks well and costs less than Opus,” and suggests keeping Opus for complex architectural decisions. That is the split opusplan automates. Whether it saves enough to notice depends on your work, so watch /usage for a week before you decide.
When plan mode is enough
Plan mode fits when the whole job fits in one sitting and one conversation:
- The change touches a few files and you can hold it in your head. A plan is a page, and one session will build it.
- You are not sure of the approach. Reading first and committing second is what plan mode is for. The cost guide says it is for “preventing expensive re-work when the initial direction is wrong.”
- You want to read before it edits. In a repo you do not know, a plan is a cheap way to find out what Claude thinks it is looking at.
Planning is not free: exploring a codebase reads files, and reading spends the same plan allowance as editing. What you save is the work thrown away when Claude builds the wrong thing. Our guide to Claude usage limits explains how the two windows work, and how to check Claude Code usage shows where to watch them.
For a change you could describe in one sentence, skip it. Planning a typo fix costs more than the typo.
Where plan mode stops: a plan lives in one session
A plan made in plan mode belongs to the session it was made in. Claude presents the plan inside the conversation, accepting it titles that session, and the plan files sit under “the current session’s own” folder. Resuming restores the conversation: a terminal session that ended in plan mode resumes in plan mode.
A fresh session starts with an empty context. Anthropic’s best practices page says what to do about it. For work you have not fully thought through, ask Claude to interview you and write a spec to a file such as SPEC.md. Then, in its words, “start a fresh session to build from it, so the build begins with a clean context and a written definition of done.”
That works, and a Markdown file is a fine plan. In our Claude for project management test, a fresh session read a PLAN.md file and wrote the week’s status in under 10 seconds. It starts to strain when the build is big:
- The five-hour window runs out halfway. The plan is in a conversation that is now stuck waiting. The next session needs the plan and also needs to know which steps are done.
- Step status is a guess. A file says what to build. It does not say what was built, what was dropped, or which step stopped half done, unless someone updates it by hand.
- A second agent starts blind. If you move a step to Codex, it has the file but none of the conversation. Our Claude Code vs Codex guide covers why people end up using both, and our Codex plan mode guide covers how its plan mode differs.
- Questions wait inside the session that asked them. Answering one means going back to that session.
For a build that spans many sessions: a doc on the board
On Context Board, the plan can live in a doc your agent writes with you, outside any one session. We build it. A Doc board is pages inside pages, with to-dos, toggles and live widgets. You write the plan there with your agent before anything is built, and Claude Code or Codex reads it from the board.
The agent needs the board added by its address first, which any app that speaks MCP over HTTP can do with a sign-in on an Allow page. It reads and writes pages in Markdown. It can add to the end of a page, insert after a part, or replace one, so it can tick off a to-do and note what it built. The board’s own chat writes with you and does not build. The building happens in your coding agent, on your own plan.
That is what fixes the one-session problem. A new session, or Codex instead of Claude Code, reads the doc and starts from what is ticked and written there instead of from nothing.
Plan mode is how you think through the step in front of you inside a session. The doc is where the whole build lives while sessions come and go. It’s free for 3 days, then $12 a month, with every board type included.