Learning resourcesReviewed · Anthropic

Claude Code: Choose a permission mode

This Claude Code guide helps developers and administrators choose when the coding assistant must ask permission, but fewer prompts do not guarantee safety. It explains six permission modes, interface-specific defaults, classifier review and exceptions for protected files and destructive commands.

Researched 25 Nov 2026

In short.

This Claude Code guide helps developers and administrators configure approval boundaries for AI-assisted coding, but separate isolation is needed to restrict what shell commands can reach. It documents six permission modes, settings precedence, model requirements and exceptional prompts. According to the page, eligible interactive terminal and VS Code sessions default to auto from v2.1.283; non-interactive runs default to Manual from v2.1.302 unless configured otherwise. Important catches include repository pushes that can proceed without human approval, plan-mode edits that can run when bypass permissions are available in an interactive terminal, and classifier token charges on some accounts. No execution results, classifier accuracy measurements or prices are supplied.

Researched and written by an AI model and checked by a second AI model. How it works

The evidence covers the complete selected page at [https://code.claude.com/docs/en/permission-modes.md], including warnings, version and interface differences, protected paths, destructive-command safeguards and their documented exceptions. Linked pages, the documentation index, external announcements and engineering articles, and the embedded video's contents are excluded. Commands and SDK snippets are documentation examples only; nothing was executed. Actual behavior, classifier reliability, security effectiveness, latency and total cost remain untested. Prices and redistribution terms are not established.

The overview

Resource identity

The resource is Anthropic's Claude Code documentation page, Choose a permission mode, at [https://code.claude.com/docs/en/permission-modes.md]. It explains how sessions approve, deny or request human permission for actions involving files, shell commands, network access and connected tools.

Its scope includes terminal, VS Code, JetBrains, Desktop, web and mobile interfaces, along with non-interactive CLI and Agent SDK runs. It also explains protected configuration paths and special handling for destructive removal commands.

Practical assessment

The guide is useful when choosing an approval model, investigating an unexpected prompt or denial, or configuring unattended work. Its detailed exceptions explain why a mode's name alone is insufficient to predict whether an action will run.

The central distinction is between permission and isolation: permission modes decide whether an action needs approval, while sandboxing and outer containment determine what it can reach after approval. The page supplies detailed vendor descriptions, but no measured evidence of classifier accuracy or security effectiveness.

Who it helps

Developers new to Claude Code can use it to understand Manual, automatic editing and planning before granting broader autonomy. Experienced developers can use the settings, command-line flags and rule exceptions to configure local work or automation.

Team administrators get organization-level controls for disabling auto or bypass modes. CI and Agent SDK authors get guidance on approvals that become denials when no interactive prompt is available. The configuration examples assume some familiarity with terminal commands and JSON settings.

What the guide explains

Manual mode uses the configuration value default, with manual accepted as a CLI alias. It allows working-directory reads and other no-approval actions while prompting for most changes and commands. acceptEdits adds automatic file edits and common filesystem commands within the working-directory scope, including some deletion commands, subject to protected-path and other checks.

Plan mode supports investigation and proposed changes, with editing blocks subject to an important interactive-terminal bypass exception. Auto mode replaces routine approval prompts with background review for actions requiring classifier assessment.

dontAsk retains no-approval actions and approved calls while denying calls that would otherwise prompt; installed mods can approve some otherwise denied calls. bypassPermissions removes routine permission prompts and safety checks, while retaining documented exceptions. The guide restricts its recommended use to isolated environments.

Using it

Requirements and availability

The page says auto mode is available on all plans, subject to supported models, organization settings and server availability. For Anthropic API, Claude Platform on AWS and Anthropic-managed Google Cloud, it lists Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5 and Fable models. For Bedrock, Google's Agent Platform, Microsoft Foundry and signed-in Claude apps gateway sessions, it lists Sonnet 5 or later, Opus 4.7 or later, Haiku 5.5 and Fable models.

Administrators can disable auto through permissions.disableAutoMode. An unavailable auto mode falls back to Manual at startup. bypassPermissions must be enabled at launch, is refused in restricted mode, and normally cannot start as root or under sudo on Linux and macOS; recognized sandboxes receive an exception.

The guide assumes an existing Claude Code installation. Installation instructions and hardware requirements are not established by this page.

How approvals work

Auto mode uses a decision order. Explicit permission rules generally resolve first, qualifying reads and working-directory edits can be approved next, and remaining actions go to the classifier. Protected paths, network paths, interaction-required tools and commands requesting particular network hosts introduce exceptions. Server-side review can also block edits, read-only shell commands and sandboxed commands.

Entering auto temporarily drops broad allow rules that grant arbitrary execution, such as Bash(*), while retaining narrow rules such as Bash(npm test). The documented default client classifier is Sonnet 5, with configuration-dependent alternatives and fallbacks. Server-side review can replace separate client classifier requests; an action receiving no server verdict is denied.

For client classifier requests, the page says the classifier receives user messages, relevant tool calls and CLAUDE.md content, with tool results stripped out. A separate server-side probe examines incoming tool results for suspicious content. Subagent tasks, actions and most final reports also receive checks under the documented rules.

Configuration

Start a terminal session in Manual with claude --permission-mode default, or request planning with claude --permission-mode plan. Shift+Tab cycles the available interactive modes. dontAsk must be selected explicitly with --permission-mode dontAsk because it never appears in that cycle.

For a user-wide terminal default, the page gives this ~/.claude/settings.json configuration: {"permissions":{"defaultMode":"default"}}. Terminal project settings cannot activate auto or bypassPermissions: a project auto value sends startup to the built-in default, while a project bypassPermissions value starts Manual.

VS Code uses its mode indicator and its own startup precedence. It ignores project settings for the starting mode, and claudeCode.initialPermissionMode does not accept auto. To retain Auto there, the page says to leave that setting unset and select Auto from the indicator once. Desktop and cloud sessions have additional differences, so their visible selectors matter.

Documented example

For CI, the page gives: claude -p "run the test suite" --permission-mode dontAsk --allowedTools "Bash(npm test)" "Read".

The documented behavior is to allow the named tools while denying calls that would require a prompt. Baseline actions requiring no approval still run, and installed mods can approve certain additional calls. This is an unexecuted documentation example; no test-suite outcome or runtime behavior has been verified.

Assessment & evidence

Important limitations

Auto mode permits substantial activity by default, including local operations, declared dependency installation, reading .env files, sending credentials to matching APIs and ordinary pushes to repository branches, including the default branch. Content checks and remote branch protections still apply. A push therefore does not inherently create a human checkpoint.

Plan mode can allow edits and commands without prompting in an interactive terminal where bypass permissions are available. dontAsk can still receive approvals from installed mods. bypassPermissions offers no protection against prompt injection or unintended actions, and some removal safeguards can be disabled through launch-environment settings.

Critical-path deletion checks can miss commands and do not cover every deletion mechanism. Rules matching shell command text also have documented limits. The outside-directory write-block setting restricts Write, Edit and NotebookEdit, while shell commands, MCP tools and hook programs need separate containment. No classifier accuracy, false-positive rate or measured security guarantee is supplied.

Choosing an appropriate approach

Choose according to which actions need human approval and the consequences of a mistaken approval. Manual provides frequent human checkpoints; acceptEdits suits work reviewed afterward; auto delegates more judgment to a classifier; dontAsk supports unattended refusals for unapproved work.

For a requirement such as human review before pushing, the page supports adding a persistent ask rule. Conversation boundaries influence classifier-reviewed actions but can disappear through context compaction. Because permission checks and containment address different problems, sandboxing remains relevant even when the approval mode appears restrictive.

Approaches compared

The page describes Manual plus the Bash sandbox's auto-allow mode as an alternative to classifier-driven auto on macOS, Linux and WSL2. This can reduce command prompts while retaining sandbox restrictions and applicable rules. acceptEdits provides a narrower convenience option for local editing, while dontAsk supports predefined approvals in automation.

The evidence compares Claude Code configurations. It supplies no comparison with other coding assistants, so relative cost, safety and usability across products are unknown.

Evidence and confidence

The evidence is one complete capture of the first-party documentation at [https://code.claude.com/docs/en/permission-modes.md]. It supports statements about the documented settings, examples, availability requirements and exceptions.

The page contains illustrative commands and configuration snippets, without runtime logs, benchmark measurements or independent security validation. Software behavior, classifier decisions and example outcomes remain untested. Linked documentation and external engineering articles provide references whose contents are outside the selected evidence.

Access & freshness

Costs and latency

Prices and total operating cost are unknown. The page supplies no subscription prices, token rates, typical classifier token counts or measured latency.

Separate classifier calls count toward token usage on Enterprise plans and accounts using Claude API, Claude Platform on AWS, Amazon Bedrock, Google's Agent Platform or Microsoft Foundry. Each check sends part of the transcript and the pending action, adding a round trip. When review happens within the session's server-side model requests, there are no separate classifier calls to count. Sandboxed network connections add no per-connection classifier requests.

Reuse and redistribution

The captured page provides no explicit licence or redistribution grant for its text, examples or embedded media. Reuse and redistribution rights are unknown from this evidence. The original documentation is available at [https://code.claude.com/docs/en/permission-modes.md].

Version sensitivity

The supplied capture is dated 2026-11-25T23:50:12.903Z. The page does not establish a publication or last-updated date.

Behavior is explicitly version-sensitive. Examples include interactive auto defaults from v2.1.283, non-interactive Manual defaults from v2.1.302, outside-directory file-write blocking from v2.1.314 and changed HIPAA-configuration defaults from v2.1.326. Provider availability, server-side rollout and organization settings can also change behavior. Later changes are unknown.

Suggested next steps

Check the installed Claude Code version, active mode indicator, provider, model and managed settings before changing defaults. Use Manual for unfamiliar or sensitive work, and review the bypass exception before relying on plan mode to prevent edits.

Before enabling auto, decide which actions must retain human approval and encode durable rules for them. Configure sandboxing or outer isolation to limit command reach. For unattended jobs, define narrow tool approvals and account for denied calls. Confirm how classifier usage is billed for the account before estimating operating cost.

Evidence for this report

selected-page.txtselected · checked 2026-11-25