# Permission Prompt

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Yes, and don't ask again, approval prompt

## Think of it like

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

## 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

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.

## 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.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [Permission Rule](https://learn.benibix.com/term/ai/permission-rule)
- [/permissions Command](https://learn.benibix.com/term/ai/permissions-command)
- [Permission Mode](https://learn.benibix.com/term/ai/permission-mode)

---

Source: https://learn.benibix.com/term/ai/permission-prompt
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
