# --permission-prompts Flag

> It says who answers the yes or no questions in print mode.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** claude --permission-prompts, --permission-prompts none, --permission-prompts host

## Think of it like

It is like you leave a note that says no one is home, so do not knock.

## Definition

--permission-prompts says who answers permission questions when claude -p runs. With host, the default, they go to the program running Claude Code, or to the tool named by --permission-prompt-tool. With none, nobody is asked and each such action is denied. It needs Claude Code 2.1.259 or later.

## Example

Emma's nightly job runs with no one watching. With --permission-prompts none, an action that needs a yes is denied at once, so the job does not hang.

## Example code

```bash
claude -p --permission-prompts none "Run the tests"
```

Deny anything that would need a yes.

## Why it matters

An unattended run that waits for a yes can hang until its time runs out.

## Common mistake

Thinking none lets everything through. It says no. To let an action run, add a rule that allows it.

## Three principles

- **host.** The program or a tool.
- **none.** Deny, do not wait.
- **Allow with rules.** Not with this flag.

## Related terms

- [Permission Rule](https://learn.benibix.com/term/ai/permission-rule)
- [Permission Mode](https://learn.benibix.com/term/ai/permission-mode)
- [Non-Interactive Mode](https://learn.benibix.com/term/ai/non-interactive-mode)

## Taught in

- [Tool and Settings Flags](https://learn.benibix.com/learn/ai-claude-code-commands/tool-and-settings-flags): Claude Code Commands, 15/17

![Three limits on a print mode run: turns, dollars, and permission prompts nobody can answer.](https://learn.benibix.com/diagrams/flag-limits.svg)

---

Source: https://learn.benibix.com/term/ai/permission-prompts-flag
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-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
