Guides

Fewer permission prompts in Claude Code, without giving up safety

By JamesUpdated November 14, 2026

Short answer: In Manual mode, Claude Code asks before it edits files or runs commands. You can reduce the asking in two ways: switch to a permission mode that approves more by itself, or write allow rules for the specific commands you trust. Use deny rules for anything that should never run. Deny rules apply in every mode.

Why does Claude Code keep asking?

In Manual mode (its config value is default), Claude Code reads files freely but asks before file edits, shell commands and network actions. That keeps you in control, and it also means a long task can stall for minutes while a prompt waits for you.

Recent versions of Claude Code (v2.1.283 or later) start interactive sessions in auto mode instead, where a second model reviews actions in your place. If you are prompted for every edit, you are in Manual mode: either a setting selected it, or auto mode is not available to you.

What are the permission modes?

Mode What runs without asking What it still asks about
default (Manual) Reading files Edits, shell commands, network actions
acceptEdits Reads, file edits and common file commands inside your working directory Other shell commands, and paths outside the project
plan Reading and exploring. No edits until you approve a plan Shell commands beyond read-only ones, unless auto mode is available, in which case its checker reviews them
auto Everything, with a separate model checking shell commands and other riskier actions first Your explicit ask rules, and whatever the checker blocks
dontAsk Reads, plus what you have pre-approved. Anything else is denied, not asked Nothing
bypassPermissions Everything Almost nothing

Press Shift+Tab during a session to cycle through the main modes. To start in one, use a flag:

claude --permission-mode plan

Or set a default in your settings:

{ "permissions": { "defaultMode": "acceptEdits" } }

Which mode should I use?

  • Everyday work in Manual mode: acceptEdits removes the most common prompts, the ones for file edits, and still asks before most shell commands. It also runs file commands such as rm and mv inside your project without asking.
  • Risky or unfamiliar changes: plan lets Claude explore and propose a plan before it touches anything.
  • Long tasks you trust: auto cuts prompts the most, and recent versions start in it. Anthropic’s documentation is clear that it reduces prompts but does not guarantee safety, so keep reviewing sensitive work yourself.
  • Avoid on your own machine: bypassPermissions gives no protection against mistakes or hostile content. The documentation says to use it only in isolated environments such as containers or virtual machines.

How do allow, ask and deny rules work?

Rules let you decide per command instead of per mode.

  • Allow rules let Claude use a tool without asking.
  • Ask rules always prompt.
  • Deny rules block the tool.

They are checked in a fixed order: deny first, then ask, then allow. The first match wins. So a broad deny rule beats a narrower allow rule, and an allow rule cannot carve an exception out of a deny rule.

Type /permissions in Claude Code to see every rule and which settings file it came from. You can also add rules there.

What does a rule look like?

A rule is a tool name, optionally followed by a pattern in parentheses.

Rule What it matches
Bash(npm run build) Exactly the command npm run build
Bash(npm test *) npm test on its own, or followed by anything
Read(./.env) Reading the .env file in the current directory
WebFetch(domain:example.com) Web requests to example.com
Bash Every shell command. Avoid it as an allow rule

In a settings file they look like this:

{
  "permissions": {
    "allow": ["Bash(npm run build)", "Bash(npm test *)"],
    "deny": ["Read(./.env)", "Bash(rm *)"]
  }
}

Deny rules match the command as Claude usually writes it. They are a guard rail, not a security boundary: /bin/rm or a script can get around them. For hard limits, use the sandbox.

Claude Code understands shell operators, so allowing Bash(npm test *) does not also allow npm test && something-else. Each part of a combined command has to match a rule by itself.

What is the quickest way to cut prompts?

  1. If you are in Manual mode, switch to acceptEdits. If you are already in auto mode, skip to step 4.
  2. When a prompt appears for a command you run all the time, choose “Yes, and don’t ask again”. For shell commands, Claude Code remembers that for the repository.
  3. After a week, open /permissions and tidy the list. Remove anything broader than you meant.
  4. Add deny rules for the few things that should never happen, such as reading secret files.

That keeps the prompts that matter and removes the ones you were approving without reading.

What about Codex?

Codex has the same idea with different settings, in ~/.codex/config.toml. Put these at the top of the file, above any [section] line.

approval_policy = "on-request"
sandbox_mode = "workspace-write"

approval_policy controls when Codex pauses for approval. The documented values are on-request for interactive work, never for non-interactive runs, and a granular form that lets you allow or reject individual kinds of prompt. sandbox_mode = "workspace-write" lets Codex write inside your project, with network access off unless you turn it on. danger-full-access removes the sandbox, and OpenAI’s documentation says to use it only when your environment already isolates the process.

What about the prompts that are left?

Some prompts should stay. A command that deploys, deletes or spends money deserves a human yes. The remaining problem is noticing those prompts quickly, so a task does not sit waiting. There is a guide to every way to get notified.

Where does Nubby fit?

Nubby sits on your desk and tells you when your AI agents need you, finish or fail. When a permission prompt is waiting, it lets you know, and you can answer yes or no without switching windows. It suits people who keep sensible prompts on and do not want to babysit the terminal.

Nubby’s Founder Edition is not open yet. You can join the waitlist and we will email you the day it opens.

Sources

Last checked against the official documentation on November 14, 2026. Nubby is not affiliated with, endorsed by or sponsored by Anthropic or OpenAI. Claude and Claude Code are products of Anthropic. Codex is a product of OpenAI.

No spam. Only Nubby news.