Skip to main content
Plan mode is a read-only mode for research. While it’s on, the model can read, search, and fetch, but it can’t edit files, write files, or run shell commands. Use it when you want the model to study the code and propose an approach before anything changes.

Turn plan mode on and off

There are three ways in and out:
  • Press Shift+Tab in the prompt to toggle plan mode.
  • Type /plan to turn it on. The model can call exit_plan_mode to turn it off when it’s ready to implement.
  • The model can turn it on itself by calling the enter_plan_mode tool.
/plan isn’t listed in /help, but it works. To move the toggle to another key, bind the toggle_plan_mode action in [keybindings]. While plan mode is on, PLAN appears on the left of the prompt box’s bottom edge. Each time the mode changes, o4 tells the model which mode it’s in and which tools work. Each tab has its own plan mode. Shift+Tab, /plan and the model’s own switch change only the tab you’re in, and a new tab starts with plan mode off. A typical flow:
  1. Press Shift+Tab.
  2. Ask for a plan, for example:
  3. Read the plan, ask questions, and ask for changes.
  4. Press Shift+Tab again, or tell the model to go ahead. The model calls exit_plan_mode, and all its tools work again.

What the model can use in plan mode

Plan mode limits the model to this fixed list of tools: Every other tool stays in the model’s tool list, but o4 refuses a call to one with “Tool ’…’ is blocked in plan mode. Call exit_plan_mode first, or ask the user to leave plan mode.” That covers write, edit, bash, the agent and campaign tools, MCP tools, and the plan_* tools described below. Plan mode can’t search file contents. Since 0.4.34 the model searches by running rg with bash, which plan mode refuses, so it reads files and lists folders instead. The tool list and o4’s instructions to the model stay the same in both modes, so switching doesn’t make Claude lose its earlier reasoning.
Plan mode is separate from your approval mode. Approvals still apply to the tools that plan mode allows, and switching plan mode on or off doesn’t change your approval mode.

The Plan approval mode

o4 also has an approval mode named Plan. It’s one of the options for --permission-mode (ask, accept-edits, plan, review, auto, bypass), and Alt+A cycles through the approval modes in a session. In the Plan approval mode, o4 denies every tool call that would normally need your approval: edits, writes, shell commands, web fetches, and so on. It denies them even when an allow rule or a hook would let them run. Tools that never ask, such as read and ls, still run. A search runs rg with bash, so it’s denied too. As in plan mode, the model still sees its full tool list. Unlike plan mode, nothing tells it which tools are off limits: it finds out only when a call is refused with “Tool execution refused: approvals are set to Plan, so only tools that read or search can run. Ask the user to change the approval setting to run it.” Start a read-only session from the command line:
For the full list of approval modes, see permissions.

Structured plans

Outside plan mode, the model has tools for keeping a multi-step plan on disk: Plans are JSON files in .o4/plans/ in your project. A plan’s status is one of draft, approved, executing, completed, or failed. A step’s status is one of pending, in_progress, completed, failed, or skipped. plan_create asks for approval once per session in the default approval mode. plan_status and plan_modify never ask (before 0.3.90, plan_modify asked once). checkpoint_create asks once, and checkpoint_restore asks every time. The checkpoint tools need a git repository. checkpoint_restore overwrites tracked files with their content at the tag. It refuses to run while you have uncommitted changes, including untracked files, unless the model passes force, which discards those changes.
Read the approval prompt before you allow checkpoint_restore, and check whether it uses force. To undo the model’s file edits, you can also use undo and rewind.

Approving a plan

When the model creates a plan, the tool result tells it to ask you whether to go ahead before it starts, and the model waits for your answer. There’s no approval dialog: you approve by replying, for example Looks good, go ahead or Do step 2 before step 1. Before 0.3.90, the result said “Plan saved. Awaiting user approval.” Replying doesn’t change the plan’s status on disk: the plan stays a draft while the model works through it. A draft is still the session’s plan. From 0.3.90, the model marks each step with plan_modify as it goes: in_progress when it starts a step, completed when the step is done. Once every step is completed or skipped, the plan is completed. A step marked failed keeps the plan open: the model retries it, or marks it skipped if you agree to leave it out, so a failure never ends as a completed plan. In earlier versions nothing marked a step done, so a plan’s progress never moved. A session’s plan is the latest one it created, until that plan is completed or abandoned. A plan the session replaced with a new one doesn’t come back. While the session has a plan, o4 shows the model its title and steps with every message, so the model keeps track of it in a long session. The steps are shown without their progress, so ticking a step doesn’t add another copy of the plan to the conversation; the model checks progress with plan_status. Before 0.3.90, only a resumed session’s model was shown its plan.

The plan status row

o4 shows the session’s plan in the status row while the model is idle, for example Plan 2/5 · Add the refresh endpoint: the number of steps done, the total, and the step being worked on (or the next step not done yet). After each reply, o4 reloads the row from .o4/plans/. When the last step is done, the row clears and o4 shows Plan complete. With several tabs open, the row shows the plan of the tab on screen. Before 0.3.90, only a plan marked approved or executing showed, so a plan the model made never did. To hide the row, run:
/plan dismiss and /plan close do the same. They only hide the row; the plan file stays as it is. The row stays hidden for that plan, and the session’s next plan shows again. Before 0.3.90, the row came back after the next reply.

Plans across sessions

Each plan is linked to the session that created it. When you resume that session with o4 resume, o4 restores its linked plan, shows it in the status row, and asks Continue or Abandon. Abandon marks the plan as failed and clears the row. A completed or abandoned plan is neither restored nor shown to the model; before 0.3.85, an abandoned plan was. A fork (/fork, or forking from the Time Machine) starts with no plan. The plan stays with the original session, and nothing done in the fork changes it, even by naming the plan’s id. Before 0.3.90, resuming a fork restored the original’s plan. A new session never restores a plan. If a plan marked approved or executing from another session is unfinished, o4 only tells you it exists and how to resume its session. To keep a restored plan without being asked, set auto_approve_plans in .o4/config.toml or ~/.o4/config.toml:
  • Subagents: the built-in Plan subagent designs a plan in its own context.
  • Todos and background tasks: a lighter checklist the model keeps while it works.
  • Goals: keep the model working toward one objective.