Claude Code setup guide

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

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 · Not affiliated with Anthropic · Permission rules and command matching (as of Nov 18, 2026) · Published

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 · Settings files and scope

Next steps

Set up your Claude Code project

Compare your project settings with the JSON permission presets in the Claude Code Complete Setup Pack ($12.95).
Kit details as of Nov 22, 2026