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