# Don't Ask Mode

> Claude never asks. Anything not allowed up front is turned down at once.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** dontAsk, --permission-mode dontAsk, dontAsk mode

## Think of it like

It is like a party door. Only names on the list get in.

## Definition

Don't ask mode never stops to ask you. Instead, anything that would need a yes is turned down. Claude can read files in your working folders and use the tools you allowed in advance, and nothing else. Its value in settings files is dontAsk. It is made for locked-down scripts and CI jobs, where nobody is there to answer and you want an exact list of what may run.

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

## Example code

```bash
claude -p "run the test suite" --permission-mode dontAsk --allowedTools "Bash(npm test)" "Read"
```

A CI run that may only read and run the tests.

## Why it matters

An unattended job can never be talked into doing more than you listed.

## Common mistake

Forgetting a tool the job needs. It will not ask, it will just fail, so test the allowed list before you rely on it.

## Three principles

- **Never asks.** Denies instead.
- **Allow list only.** Set it up front.
- **For CI.** Locked-down runs.

## Related terms

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

## Told apart from

- [Don't Ask Mode vs Bypass Permissions Mode](https://learn.benibix.com/compare/dont-ask-mode-vs-bypass-permissions-mode): People think Don't Ask mode means Claude stops asking and does everything. It is the opposite. Don't Ask mode refuses any tool your allow rules have not already approved, so nothing new can run. Bypass mode is the one that lets almost everything run without a question. Only deny rules still hold there.
- [denyInsteadOfPrompting vs Don't Ask Mode](https://learn.benibix.com/compare/deny-instead-of-prompting-setting-vs-dont-ask-mode): People think denyInsteadOfPrompting is just don't ask mode. It is not. Don't ask mode is a mode. It runs only what your rules allow and denies the rest. The key keeps whatever mode you are in, such as auto, and only turns a prompt that would wait into a no. So in auto mode, the checker can still approve calls.

## Taught in

- [Claude Code Permission Modes](https://learn.benibix.com/learn/ai-claude-code/claude-code-permission-modes): Claude Code, 5/16

![The six permission modes on a line from asking about everything to asking about nothing.](https://learn.benibix.com/diagrams/cc-permission-mode.svg)

---

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