Plan Mode vs Direct Execution
Permission modes
| Mode | What runs without asking | Best for |
|---|---|---|
default | Reads only | Reviewing every action |
acceptEdits | Reads, file edits, common filesystem commands | Iterating on code you review |
plan | Reads (plus classifier-approved commands when auto mode is available) | Exploring before changing |
auto | Everything, with background safety checks by a classifier | Long tasks, fewer prompts |
dontAsk | Pre-approved tools and reads only; anything that would prompt is denied | Locked-down CI |
bypassPermissions | Everything | Isolated containers and VMs only |
Auto mode reduces prompts but does not guarantee safety. Newer versions can start sessions in auto mode by default.
Plan mode
Claude researches and proposes without editing source. Edits stay blocked until you approve the plan.
- Enter with
Shift+Tab, prefix a prompt with/plan, or start withclaude --permission-mode plan.Shift+Tabagain leaves plan mode without approving. - When the plan is ready you can choose: approve and use auto mode (or auto-accept edits), approve and manually approve each edit, or keep planning with feedback.
Ctrl+Gopens the plan in your editor.- Make it the default for a project with
defaultMode: "plan"in.claude/settings.json.
Choosing (design guidance)
Plan first when the change is large, touches many files, has several viable approaches, involves an unfamiliar codebase or has expensive mistakes (migrations, public APIs, architecture).
Direct execution when the task is small, well specified and low risk (rename a variable, add a clear null check, fix a typo), or you can state the exact change in one sentence.
A hybrid is common: plan (or explore with a subagent) to decide the approach, then execute directly.
Exploration keeps main context clean
Delegate research to a subagent: it reads files in its own context and returns a summary (see Domain 1.3).
Exam traps
- Planning a one-line change, adding ceremony for nothing.
- Executing a multi-file refactor with an unclear approach without planning.
- Using
bypassPermissionsoutside an isolated environment. - Believing plan mode needs a different tool set. It is a permission mode: read and research, no edits until approval.
References
- Choose a permission mode — checked Oct 16, 2026
- Common workflows — checked Oct 16, 2026
Check your understanding
Migrate authentication across 40 files, two options on the table. Mode?Show answerHide answer
Answer
Plan mode first.Add a null check on line 12 of one file. Mode?Show answerHide answer
Answer
Direct execution.Mode for locked-down CI where anything unapproved should simply be denied?Show answerHide answer
Answer
dontAsk.