# permissions.denyInsteadOfPrompting

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** denyInsteadOfPrompting

## Think of it like

It is like a shop that says no when the boss is out. You do not have to wait.

## Definition

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.

## Example code

```json
{
  "permissions": {
    "defaultMode": "auto",
    "denyInsteadOfPrompting": true
  }
}
```

Run in auto mode, and refuse anything that would still ask.

## Why it matters

A prompt with no one there can stall a session for hours.

## Common mistake

Putting it in a project file. A repo cannot set it for you, so it goes in your user file.

## Three principles

- **Deny, do not wait.** The turn goes on.
- **Allowed calls still run.** Rules, modes.
- **User or managed.** Not a repo.

## Related terms

- [Permission Prompt](https://learn.benibix.com/term/ai/permission-prompt)
- [Auto Mode](https://learn.benibix.com/term/ai/auto-mode)
- [PermissionRequest Hook](https://learn.benibix.com/term/ai/permissionrequest-hook)

## Told apart from

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

---

Source: https://learn.benibix.com/term/ai/deny-instead-of-prompting-setting
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-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
