Claude Code permissions guide

Claude Code plan mode vs accept edits vs auto mode

Use plan mode to review Claude’s approach before editing, accept edits to let Claude edit files without asking, and auto mode to run tools with background safety checks. Enter /plan or cycle modes with Shift+Tab. At the approval prompt, press Esc then Shift+Tab to leave without approving. Start a planning session with claude --permission-mode plan.

Last updated · Published

By CWYN · Published · Checked against docs, not run · Permission modes and the claude --permission-mode plan command and Plan before editing (as of )

1. Start with a plan mode prompt

In the terminal, Shift+Tab cycles from default to acceptEdits to plan. Stop when the status bar reads ⏸ plan mode on.

For a single prompt, try /plan Trace how a search query reaches the results list. Which files would change to add a category filter, and how would we test it? When you read the plan, check whether it covers a filter that returns no matches.

If Claude needs an MCP tool to investigate your question and the tool is missing, check whether its server loaded in this project.

2. Plan mode vs accept edits vs auto mode

ModeWhat Claude can doWhen to use it
Plan mode (plan)Read files, run commands to explore, and write a plan for review.You want to trace how search works and agree on an approach before any source edits.
Accept edits (acceptEdits)Read and edit files and run common filesystem commands without asking.You know where the filter belongs and want to review the diff as you iterate.
Auto mode (auto)Use all tools with background safety checks.You have agreed on the scope of a longer task and want Claude to carry it through.

Accept edits vs auto mode

Choose accept edits (acceptEdits) when you want to review the diff as you work. Claude can read and edit files and run common filesystem commands such as mkdir and mv in your working directories without asking. Shell commands outside the read-only and preapproved sets still prompt you.

Choose auto mode (auto) for a longer task once you agree on its scope. A separate classifier reviews shell commands and other tool calls that would normally need your approval. Actions it approves run without asking you, and it blocks actions it judges risky.

At the terminal input prompt, press Shift+Tab until the status bar shows accept edits on or auto mode on. Auto appears in the cycle only when it’s available for your session.

Checked against docs, not run. Claude Code permission modes (as of ).

3. Review and approve a plan

Check the proposed files and tests. If a detail is missing, press Ctrl+G to open the plan in your text editor. At the approval prompt, Shift+Tab approves the plan. To leave without approving, press Esc to dismiss the prompt, then Shift+Tab to change modes.

  • Yes, and use auto mode starts implementation with background safety checks. If auto mode is unavailable, this option reads Yes, auto-accept edits and switches to accept edits.
  • Yes, manually approve edits exits plan mode and asks you to approve edits during implementation.
  • No, keep planning leaves the plan open for another pass. Tell Claude which part of the approach to revisit.

If planning used a lot of context, enable showClearContextOnPlanAccept to add Yes, clear context and ... as the first option. It approves the plan, clears the conversation, and starts implementation from the plan alone. Put any constraints you still need into the plan before you choose it. Plan approval settings (as of ).

4. Make plan mode the default

In your project's .claude/settings.json, set defaultMode inside permissions. This example also sets plansDirectory to save plans in the project's plans folder. Merge the keys into your existing settings.

{
  "permissions": {
    "defaultMode": "plan"
  },
  "plansDirectory": "./plans"
}

The VS Code extension reads its starting mode from VS Code user settings. Add "claudeCode.initialPermissionMode": "plan" there. For other project and user preferences, see how Claude Code settings.json precedence works.

To decide which commands can run without approval, start with the permission presets in the Claude Code Complete Setup Pack and adapt them to your project.

5. Plan with Opus and build with Sonnet

Run /model opusplan at the Claude Code prompt, then enter plan mode. The opusplan alias selects Opus to research and write the plan. When you approve the plan, Claude Code switches to Sonnet to carry it out. Model aliases and opusplan (as of ).

If you use an API key for this workflow, estimate your monthly Claude Code cost using the charges for both models.

6. Why plan mode still asks about shell commands

A command prompt during planning asks whether Claude can run that command to explore the project. When auto mode is available and useAutoModeDuringPlan is on (the default), the classifier reviews shell commands. If auto mode is unavailable or you turn the setting off, commands outside the built-in read-only set prompt for approval.

To review each command outside that set, turn off Use auto mode during plan in /config, or set "useAutoModeDuringPlan": false in your settings. If a command you already allowed still prompts, check which permission rule matches it.

7. Where does Claude Code save plans?

By default, Claude Code writes plan files to ~/.claude/plans. Set plansDirectory to a path relative to the project root if you want to keep the plans in the repository. Claude Code settings reference (as of ).

8. Claude Code plan mode FAQ

What is the Claude Code plan mode shortcut?

Press Shift+Tab until the status bar reads ⏸ plan mode on. If you already know what you want Claude to investigate, you can type /plan followed by the request.

Does plan mode work in VS Code?

Yes. Plan mode keeps source edits blocked in the VS Code chat panel. To start there by default, set claudeCode.initialPermissionMode to plan in VS Code user settings.

How do I leave plan mode without approving the plan?

If the approval prompt is open, dismiss it with Esc first. Then press Shift+Tab to change modes.

Can Claude edit files in plan mode?

Claude can write the plan file. Source edits stay blocked until you approve the plan, except in an interactive terminal session where bypass permissions are available. Plan mode keeps its edit restrictions in -p runs, Agent SDK sessions and the VS Code chat panel.

Next steps

Write project instructions for Claude

Open the free AI instruction builder

Set up project permissions

Get project instructions, permission rules and hooks in the Claude Code Complete Setup Pack ($12.95).