Skip to content
BENIBIX Learn

Permission Prompt

AI⌨️ Claude CodeConfiguration

Also known as Yes, and don't ask again, approval prompt

The question Claude Code asks when no rule allows a call.

Think of it like

It is like a child asking, can I have a cookie? You say yes once, or yes always.

Example

Claude asks to run npm test. Emma picks don't ask again, and from then on npm test runs in that repo without a prompt.

Why it matters

Each answer can become a rule. The prompt is how most rule lists grow.

Definition

A permission prompt is the question Claude Code shows before a tool call that no rule allows. It shows what Claude wants to do and gives you choices. Yes, and don't ask again saves a rule. For a shell command or a web site, that rule goes in .claude/settings.local.json and lasts. For a file edit, it lasts until the session ends.

Example code

console
Bash command
  npm test
Do you want to proceed?
> 1. Yes
  2. Yes, and don't ask again for: npm test *
  3. No
The shape of a prompt for a shell command.

Common mistake

Picking don't ask again on a broad command without reading what it saves.

Key takeaways

  1. 1
    Shown when no rule allows. Then you choose.
  2. 2
    Don't ask again. Saves a rule.
  3. 3
    Edits last a session. Commands last.