⌨️Don't Ask Mode
Also known as dontAsk, --permission-mode dontAsk, dontAsk mode
Claude never asks. Anything not allowed up front is turned down at once.
Think of it like
It is like a party door. Only names on the list get in.
Example
Emma's CI job should only run the tests. She uses don't ask mode with one allowed command, so any other command fails at once.
Why it matters
An unattended job can never be talked into doing more than you listed.
Definition
Example code
bash
claude -p "run the test suite" --permission-mode dontAsk --allowedTools "Bash(npm test)" "Read"Common mistake
Key takeaways
- 1Never asks. Denies instead.
- 2Allow list only. Set it up front.
- 3For CI. Locked-down runs.