# Why does Claude Code still ask after I allow a command?

Canonical: https://cwyn.com/pages/claude-code-guide-permission-allowlist-prompts.html
Last updated: 2026-11-23T07:34:54-05:00

Claude Code setup guide

Claude Code can still prompt when an `ask` rule takes precedence over `allow` or the command differs from the one you allowed. Open `/permissions` to see which file supplied each rule. An exact rule for `npm run build` leaves an added `--watch` flag outside its scope. For commands joined by `&&`, check both sides.

By CWYN · Last updated November 23, 2026 · Not affiliated with Anthropic · [Permission rules and command matching](https://code.claude.com/docs/en/permissions) (as of Nov 18, 2026) · Published November 18, 2026

## 1. Find the rule and its source

Open `/permissions` in the affected session. Look for the tool named in the prompt and the file that supplied each matching rule. For a personal rule in one repository, the relevant file is `.claude/settings.local.json`. The team’s shared settings live in `.claude/settings.json`.

## 2. Check whether a higher-priority rule matches

Claude Code evaluates `deny` first, then `ask`, then `allow`. For example, an `ask` rule for `Bash` still prompts for a build covered by a narrower allow rule. If the prompt comes from an intentional team or managed rule, keep the approval step.

## 3. Compare the entire command

The documented rule `Bash(npm run build)` matches `npm run build` exactly. An added `--watch` falls outside that rule. If the prompt includes `&&`, inspect both sides. Each command in the chain needs its own basis for running without approval.

## 4. Retest the intended build

If a missing allow rule explains the prompt and you trust this repository’s build script, add the exact rule through `/permissions` for this project only. Ask Claude to run the reviewed build command alone. With that rule active and no other restriction, it can run without another approval. If a prompt remains, compare the tool and full command it shows with the saved rule.

Sources · [Permission rules and Bash matching](https://code.claude.com/docs/en/permissions) · [Settings files and scope](https://code.claude.com/docs/en/settings)

## Related guides

- [Claude Code ignoring CLAUDE.md or not loading it?](https://cwyn.com/pages/claude-code-guide-claude-md-not-loading.html)
- [Why is my Claude Code hook not firing?](https://cwyn.com/pages/claude-code-guide-hooks-not-firing.html)
- [Create a read-only project subagent in Claude Code](https://cwyn.com/pages/claude-code-guide-first-project-subagent.html)
- [Why is my MCP server missing from Claude Code?](https://cwyn.com/pages/claude-code-guide-mcp-servers-not-loading.html)
- [Claude Code plan mode vs accept edits vs auto mode](https://cwyn.com/pages/claude-code-guide-plan-mode.html)

## Next steps

- [All 34 Claude Code guides](https://cwyn.com/guides/claude-code/)
- [Claude Code setup walkthrough](https://cwyn.com/setup/claude-code/)
- [Check your CLAUDE.md](https://cwyn.com/score/setup-file-checker/?profile=claude)
- [Claude Code Complete Setup Pack ($12.95)](https://cwyn.com/pages/pack-claude-code-complete-setup-pack.html)

### Set up your Claude Code project

Compare your project settings with the JSON permission presets in the [Claude Code Complete Setup Pack ($12.95)](https://cwyn.com/pages/pack-claude-code-complete-setup-pack.html).
Kit details as of Nov 22, 2026

Claude Code Complete Setup Pack $12.95

Set up project instructions, permission rules, hooks, a reviewer skill and subagent, and MCP connections for Claude Code.
