Skip to content
BENIBIX Learn

--permission-prompts Flag

Also known as claude --permission-prompts, --permission-prompts none, --permission-prompts host

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

Think of it like

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

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.

Why it matters

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

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 code

bash
claude -p --permission-prompts none "Run the tests"
Deny anything that would need a yes.
--permission-prompts none is the third limit: no waiting for a yes.

Common mistake

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

Key takeaways

  1. 1
    host. The program or a tool.
  2. 2
    none. Deny, do not wait.
  3. 3
    Allow with rules. Not with this flag.

Learn it properly