⌨️--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
Example code
bash
claude -p --permission-prompts none "Run the tests"Common mistake
Key takeaways
- 1host. The program or a tool.
- 2none. Deny, do not wait.
- 3Allow with rules. Not with this flag.