CLAUDE_CODE_RC_PERMISSION_NUDGE
Updated by Alex Sorokoletov
CLAUDE_CODE_RC_PERMISSION_NUDGE is a Claude Code environment variable: Overrides the permission-nudge settings as JSON: how many prompts before it may appear (default 5, minimum 1), the probability it shows (default 0, off), and the maximum times it is shown (default 3). Added between v2.1.143 and v2.1.212 and still present in v2.1.332. It is not in the official reference.
| Status | Present in v2.1.332 |
|---|---|
| Added | Added between v2.1.143 and v2.1.212 |
| Category | Permissions and sandbox |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_RC_PERMISSION_NUDGE=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_RC_PERMISSION_NUDGE": "<value>"
}
}Related variables
CLAUDE_BG_SESSION_PERMISSION_RULES: In a background session, supplies JSON permission rules with allow and deny arrays and optional addDirs; ignored when absent or malformed.CLAUDE_CHROME_PERMISSION_MODE: Permission mode for Claude for Chrome.CLAUDE_CODE_ADOPT_UNDERIVABLE_PARKED_PERMISSION: In print/SDK mode, when a host reconnects and a permission prompt was left parked with no persisted answer that can be rederived, adopt that prompt and retire the interrupted turn's tool-use IDs instead of re-running the tool call.CLAUDE_CODE_DISABLE_PERMISSION_PROMPT_NOTIFY_HOOKSCLAUDE_CODE_HOLD_UNANSWERED_PARKED_PERMISSION: Held an unanswered parked permission request open instead of retiring it, keeping the turn waiting on it; read until v2.1.269.CLAUDE_CODE_PARKED_PERMISSION_WAIT_MS: Sets how long in milliseconds to wait for a parked permission prompt's answer; defaults to 2000.CLAUDE_CODE_RETIRE_UNANSWERED_PARKED_PERMISSION: Set to retire the interrupted turn's pending tool calls when a parked permission prompt timed out unanswered.CLAUDE_CODE_AUTO_MODE_CANDIDATE_WORDING: Chose the auto-mode classifier wording; a truthy value requested the 'candidate' variant and a falsy one the 'baseline'.
Frequently asked questions
What does CLAUDE_CODE_RC_PERMISSION_NUDGE do?
Overrides the permission-nudge settings as JSON: how many prompts before it may appear (default 5, minimum 1), the probability it shows (default 0, off), and the maximum times it is shown (default 3).
Which Claude Code version has CLAUDE_CODE_RC_PERMISSION_NUDGE?
Added between v2.1.143 and v2.1.212 and still present in v2.1.332.
How do I set CLAUDE_CODE_RC_PERMISSION_NUDGE?
Export it before starting Claude Code (export CLAUDE_CODE_RC_PERMISSION_NUDGE=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.