Claude Code keeps asking for permission: every mode, measured
7m read time

Claude Code keeps asking for permission: every mode, measured

I had Claude Code do the same jobs 101 times across seven setups and counted every permission prompt. How often it asks depends less on how much the agent does than on how it bundles the work and which paths it touches. And three traps stay silent until you hit them.

evidence6 files behind one yesclaude-code 2.1.3263 sourcesNovember 17, 2026
own measurement
101 runs in a throwaway repo: two tasks in seven setups with seven runs per combination, plus three runs with an ask rule, every permission prompt logged
tested on
claude-code 2.1.326
checked
November 17, 2026

"It keeps asking for permission." It is the Claude Code complaint I run into most, usually with a sequel: I clicked always allow, I even turned on --dangerously-skip-permissions, and it still asks.

So I measured it instead of guessing. Two tasks, seven setups, seven runs per combination, three extra runs for one separate check, and every permission prompt logged. How often it asks depends less on how much the agent does than on how it bundles the work and which paths it touches. A low count can even mean you reviewed less.

One Bash command that writes six files after a single permission prompt, including the git hook in .husky.

Where you start these days ​

First the change most explanations still miss. Since version 2.1.283, auto mode is the mode a new terminal or VS Code session starts in. The permission modes docs say so plainly: a second model, the classifier, reviews actions instead of you. My own permissions guide still called Manual the starting point, and gained a correction alongside this post.

If Claude Code keeps asking you, you are probably not in auto. You picked another mode yourself, your organisation turned auto off, or you are hitting one of the cases that ask in every mode. That last group is the interesting one, and I will get to it.

How I counted ​

A small Node repo as the test subject, with two tasks:

  • Task A: fix a broken slugify, add a maxLength option with tests, run the suite and commit.
  • Task B: prepare a release. A CLI in bin/, a GitHub Actions workflow, a .husky/pre-commit hook, a changelog entry, a commit and npm version patch.

Every run was claude -p on Claude Code 2.1.326 with Opus 5.5, in a clean config directory without my own hooks, plugins or rules. Permission prompts went through --permission-prompt-tool to a tiny MCP tool that logs each request and says yes.

Every line in that log is a click you would have made, and the run carries on as if you had. The folder counted as trusted, as it does for you once you have dismissed the trust dialog.

All 101 runs finished their task: green tests, a commit, and for task B the right tag. Having the same slugify fixed more than fifty times mostly produces the best-tested slugify function in Europe.

SetupTask A: fix + featureTask B: releaseWhat kept asking
manual4 (4–5)3 (2–8)nearly every edit and shell command
acceptEdits2 (2–3)3 (2–4)shell commands, and for edits only .husky/pre-commit
plan4 (4–5)5 (3–12)the plan, its own questions to you, then edits
auto00nothing
manual + 8 allow rules2 (2–3)3 (2–8)file writes, mkdir, npm version patch
manual + sandbox auto-allow3 (2–3)1 (1–2)Write and Edit, shell writes, and on B the one command with every release file
bypassPermissions00nothing

Median per run, with the range over seven runs in brackets. One caveat on plan: without a terminal, an approved plan continues in Manual here. Interactively you can pick "Yes, and use auto mode", which I did not measure.

Fewer prompts is not more oversight ​

The most telling number is missing from the table. In six of the seven Manual runs of task B, the agent wrote nearly the whole release in a single shell command: a row of heredocs and redirects, one after another. One prompt, one yes, and 5 or 6 files were on disk. Each of those six runs wrote the git hook in .husky/pre-commit, the script that now runs on every commit.

That is also why task B cost fewer prompts in Manual than the smaller task A. The agent did more and bundled it better.

If you treat the prompt count as a measure of oversight, you reward exactly that behaviour: the more fits in one command, the less you get to see. Nobody reads a seventy-line heredoc in a permission prompt. You click it away.

What acceptEdits does not cover ​

acceptEdits is the standard advice against prompt fatigue, and it does halve the prompts on task A. But it only approves edits made through the file tools, plus a short list of common commands such as mkdir and mv. When the agent writes a file through the shell, that is a shell command, and it asks. On task A every prompt left in acceptEdits was a Bash command, including tests appended to a test file with cat >>.

The sandbox in auto-allow covers a different piece. It lets most shell commands run free when they stay inside the sandbox, but it has no say over the Write and Edit tools, so those still ask.

Writing through the shell sometimes asked in the sandbox too: on task A in four of the seven runs. On task B the whole release mostly cost a single prompt there, and each time it was the one big shell command that wrote every file, .husky included. How to combine the two is in the sandboxing guide.

Three traps you do not hear coming ​

A repo's allowlist does nothing in a folder nobody trusted. With the folder untrusted, the allowlist gave 4 prompts, exactly as many as Manual with no rules at all, and with the folder trusted it dropped to 2. According to the docs on workspace trust, Claude Code applies permissions.allow from .claude/settings.json only after someone accepts the trust dialog for that folder. claude -p never shows that dialog.

What that means for a team is in the post on sharing your config. For CI it means a committed allowlist approves nothing, unless the job marks the folder trusted itself with hasTrustDialogAccepted in ~/.claude.json. Deny and ask rules do apply straight away, since they only restrict.

Protected paths ignore your allow rules. My first full round of 35 runs mostly measured the folder I keep my notes in. The test repo lived under ~/.claude, and acceptEdits asked more often in total than Manual there. .claude is on the list of protected directories, along with .git, .vscode and .husky, among others.

Writes there prompt in Manual and acceptEdits, even when an allow rule covers them. The same rule produced the only edit prompts acceptEdits had on task B: all three for .husky/pre-commit.

An ask rule beats bypass. With bypassPermissions and a single ask rule for git commit, Claude Code asked about that commit in three runs out of three, and about nothing else. The docs list more exceptions of this kind that no mode skips. If it still asks while --dangerously-skip-permissions is on, look for an ask rule in your settings first.

What I would do ​

  1. Check which mode you are in. If the prompts come in Manual or plan, switching to auto is the biggest single step: from four to zero in my runs. You trade your judgement for a classifier's, and I have measured what that costs before.
  2. If you do not want a classifier, use acceptEdits with allow rules for your regular commands. Put them in a file that actually gets read: your user settings, or the project folder once you have trusted it.
  3. Send shell work through the sandbox. It catches most of what acceptEdits leaves behind. Writing through the shell still asked now and then in my runs.
  4. Read the prompt you approve, especially the long one. A command with five redirects is five files, and one of them can be a hook that runs on every commit.

This is one small repo with two tasks, run without a terminal. A real working day has more kinds of commands, and "always allow" builds up a list over days that these runs never had. The direction holds: the prompt count measures how the agent packs its work, and says little about how much of it you saw.

(42 of 42)
1My Claude Code setup: status line, plugins and terminal2Superpowers: teaching Claude Code to think before it types3Claude Code hooks: deterministic control over AI workflows4The CLAUDE.md file: give your AI permanent memory5Stop asking your agent nicely6What's new in Claude Code: notes from the London talk7The best number in Opus 4.8 isn't a benchmark8Stale memory is worse than no memory9The agent is just a loop10Build an MCP server, then ask whether it should exist11Skill, subagent, hook, or slash command? Pick the right one12Log in to MCP servers from your shell13How to give Claude safe access to your SQL database14The day 'default' became 'Manual'15Claude Code skills: how to write one that works16How to write a proper Claude Code subagent17Claude Code permissions: the guide I wish the docs were18Sandboxing Claude Code: put your agent in a box that holds19Prompt injection defense for developers who ship agents20Best Claude model for coding: which one for which task21Refactoring legacy code with a coding agent: start with characterization tests22MCP server authentication: OAuth, scopes and rate limits23Opus 5 is here and your effort settings just expired24AI agent incident response: what to do when your coding agent goes wrong25Claude Code /doctor command: what it checks and fixes26Claude Code context management: when to /clear and when to /compact27Git worktrees for parallel coding agents: what they isolate and what they share28Claude Code plan mode: decide before the agent writes29Debugging with a coding agent: give it the search, keep the hypothesis30Claude Code checkpoints and /rewind: how to undo an agent's changes31Claude Code cross-session messaging: how to make your sessions talk to each other32Audit logging for AI agents: what Claude Code records and what deserves a human33Sharing Claude Code config across a team: what a repo can and cannot enforce34Claude Code timestamps: your session has no clock35Claude Code in a large codebase: scoping an agent to the part that matters36Recovering a Claude Code session your picker will not show you37Where Claude Code spends its time: a month of my own sessions, measured38Steering Claude Code mid-task: Esc, queued messages and /btw39Claude Code auto mode: why your Agent allow rule does nothing40Claude Code Superpowers: what subagent-driven development costs in tokens41Read-only database access for Claude: the role, the flag and Azure without passwords42Claude Code keeps asking for permission: every mode, measured