Have a project in mind? Let's talk.

Claude Code permissions are the control layer that decides what Anthropic's terminal agent can touch on your machine: which shell commands run, which files change, which domains get fetched, and when it has to stop and ask you first. Teams that adopt Claude Code without learning this layer end up either clicking through a prompt every thirty seconds or waving through actions they never reviewed. Anthropic's documentation describes a fine-grained system of permission rules, modes, and managed policies, and the rules can be checked into version control so every developer in an organization shares the same baseline. This guide walks through how the pieces fit, using only the current official docs. Source: Claude Code permissions documentation
Claude Code uses what Anthropic calls a tiered permission system to balance power and safety, and the defaults differ by tool type. Read-only actions like file reads and Grep do not ask, as long as they stay within the working directory and any additional approved directories. Bash commands ask before running, except for a built-in set of read-only commands. File modifications ask, with the exception of Claude Code's own plan and auto memory files. WebFetch asks, except for a built-in set of preapproved documentation domains, and WebSearch always asks. When you answer a prompt with "Yes, and don't ask again," the approval is saved permanently per repository and command for Bash, and per repository and domain for WebFetch, while a file-modification approval only lasts until the session ends. Source: Claude Code permissions documentation
Where that saved rule lands matters for teams: permanent approvals go to .claude/settings.local.json at the root of the git repository, resolved through worktrees to the main checkout, and they apply to future sessions anywhere in that repository, including sessions started in subdirectories. Sometimes a prompt offers only a one-time approval with no "don't ask again" option; Anthropic notes that the durable options appear only when the prompt can show you everything they would allow, so a rule saved from a prompt covers only what its option named. Source: Claude Code permissions documentation
The /permissions dialog is the control panel: it lists every permission rule and the settings.json file each rule comes from, and you can open it while Claude is working. Changes apply starting with Claude's next tool call in the same turn (before v2.1.234 they queued until the turn finished). Rules come in three kinds. Allow rules let a tool run without manual approval. Ask rules force a confirmation prompt. Deny rules block the tool or pattern outright. Source: Claude Code permissions documentation
The evaluation order is the part most people get wrong: rules are evaluated deny, then ask, then allow, and the first match in that order wins. Specificity does not rescue you. A broad deny rule like Bash(aws *) blocks every matching call, including calls that also match a narrower allow rule like Bash(aws s3 ls); an allow rule cannot carve an exception out of a deny rule. The same precedence holds between ask and allow: a matching ask rule prompts even when a more specific allow rule also matches. Deny rules also behave differently depending on their shape. A bare tool name like Bash removes the tool from Claude's context entirely, so the model never sees it, while a scoped rule like Bash(rm *) leaves the tool available and blocks matching calls when Claude attempts them. One more grounding fact: permission rules are enforced by Claude Code itself, not by the model, so instructions in your prompt or CLAUDE.md shape what Claude tries but cannot change these rules. Source: Claude Code permissions documentation
Permission rules use tool-name-plus-specifier syntax: Bash(npm test) matches one command, wildcards like Bash(git *) match families, and tool name wildcards widen further. File tools take path specifiers, so Read(./src/*) or Edit rules can scope reads and writes, with documented behavior for special characters, ! negation, symlinks, and network paths. WebFetch rules scope by domain and can allow or deny every fetch, MCP tools get their own rules, and there are specific sections for Bash edge cases: compound commands, wrappers like watch, exec wrappers and find actions such as -delete, redirections, and PowerShell. If a rule is not matching what you expect, the docs recommend checking the parameters Claude actually sends. You can also extend the system with PreToolUse hooks, which run your own logic before a tool call. Source: Claude Code permissions documentation
Modes sit above the rules and decide the session's default posture. The default mode (labeled Manual in the CLI and IDE extensions) prompts before most edits, shell commands, and network requests, and is the starting point Anthropic pairs with sensitive work and unfamiliar code. Plan mode blocks edits until you approve a plan, for exploring before changing anything. Auto mode replaces your answers with a classifier that reviews actions; it became the built-in starting permission mode with v2.1.283, requires a supported model, and organizations can turn it off. For CI, dontAsk mode runs with an exact allowlist, as in claude -p "run the test suite" --permission-mode dontAsk --allowedTools "Bash(npm test)" "Read". Fully unattended runs use --dangerously-skip-permissions, which Anthropic says requires a container, VM, or the sandbox runtime, run as a non-root user on Linux and macOS. Notably, cloud sessions ignore dontAsk and dangerously-skip-permissions when they come from settings files. Source: Claude Code permission modes documentation
Permissions decide whether Claude asks; the Bash sandbox and outer isolation boundaries decide what an action can reach once it runs. The built-in Bash sandbox runs on macOS, Linux, and WSL2, and the documented pattern for fewer prompts without a classifier is Manual mode plus the sandbox in auto-allow mode, enabled interactively via /sandbox or in settings with sandbox.enabled and sandbox.autoAllowBashIfSandboxed. Deny rules still apply inside the sandbox, and ask rules that name a command, such as Bash(git push *), still prompt. Anthropic frames sandboxing as defense in depth under auto mode rather than a replacement for rules. We made a similar argument about layering execution isolation around agents in our post on Microsoft's execution containers. Source: Claude Code permission modes documentation
Start in Manual mode on a real project and approve deliberately: the durable "don't ask again" answers build your baseline .claude/settings.local.json as you work. Run /permissions weekly, promote stable rules into a shared settings file checked into version control, and write deny rules for the lines you never want crossed, force pushes, production deploys, credential file reads, because deny beats ask beats allow regardless of specificity. Use scoped denies like Bash(rm *) rather than removing Bash entirely, so the agent keeps working within boundaries. Add plan mode for exploratory sessions, reserve auto mode for well-understood repos, and keep --dangerously-skip-permissions for containers only. If you manage agents across a company, the managed settings and workspace trust sections cover how organization-wide rules take precedence and what runs before a folder is trusted. This is the same least-privilege thinking we apply in our AI agent tool permissions post, applied to one tool's concrete rule language.
Our assessment: Claude Code's permission model is mature enough to be a team policy surface, not just a UX nicety. The deny-ask-allow ordering with no specificity override is the right default for safety, the settings.local.json mechanism turns individual approvals into shared, reviewable configuration, and the enforcement happening in the harness rather than the model is exactly what we tell clients to demand from agent tooling. The sharp edge to watch is the mirror image of the Ruflo lesson: rules only protect the paths they cover, so audit what your allow rules actually permit, especially Bash wildcards and WebFetch domains, before you let auto mode run unattended.
Claude Code permissions are the rules, modes, and managed policies that control what Anthropic's terminal agent can access and do: shell commands, file reads and writes, web fetches, searches, and MCP tools. Rules can be shared through version control so a whole team runs the same baseline. Source: Claude Code permissions documentation
Allow rules let a tool run without approval, ask rules force a confirmation prompt, and deny rules block it. They are evaluated in the order deny, then ask, then allow, and the first match wins; a more specific allow rule cannot override a broader deny rule like Bash(aws *). Source: Claude Code permissions documentation
When you choose "Yes, and don't ask again," durable rules are saved to .claude/settings.local.json at the git repository root, resolved through worktrees, and apply to future sessions across that repository. File-modification approvals last only until the session ends, and the /permissions dialog shows every rule with its source file. Source: Claude Code permissions documentation
Manual (the default, prompts for most actions), plan (blocks edits until you approve a plan), auto (a classifier reviews actions; the built-in starting mode from v2.1.283, requires a supported model, and organizations can disable it), dontAsk for CI with an exact allowlist, and --dangerously-skip-permissions for fully unattended runs inside a container or VM as a non-root user. Source: Claude Code permission modes documentation
No. The built-in Bash sandbox on macOS, Linux, and WSL2 limits what commands can reach once they run, while permission rules decide whether Claude asks first. Deny rules still apply inside the sandbox, and named ask rules like Bash(git push *) still prompt, so Anthropic presents the two as layers that combine. Source: Claude Code permission modes documentation
Ready to take the first step towards unlocking opportunities, realizing goals, and embracing innovation? We're here and eager to connect.