Skip to content
BENIBIX Learn

denyInsteadOfPrompting vs Don't 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.

AI⌨️ Claude Code

permissions.denyInsteadOfPrompting

The key that says no to a call instead of waiting for you.

permissions.denyInsteadOfPrompting is a settings key. When true, a tool call that would wait for your yes is refused, and the turn goes on. It is for sessions no one is watching. A call still runs if an allow rule, the mode or the auto mode check lets it. Only your user file, managed settings or --settings can set it, so a repo cannot.

Example
Lucy leaves a long job running overnight. With this key on, a call that needs her yes is refused, and the job keeps going.
Why it matters
A prompt with no one there can stall a session for hours.
Full entry
AI⌨️ Claude Code

Don't Ask Mode

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

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.
Why it matters
An unattended job can never be talked into doing more than you listed.
Full entry

In one line

permissions.denyInsteadOfPrompting
The key that says no to a call instead of waiting for you.
Don't Ask Mode
Claude never asks. Anything not allowed up front is turned down at once.