Answer: To override the default block and allow rules, set any of the three additional fields (autoMode.hard_deny, autoMode.soft_deny, autoMode.allow) and include the literal string "$defaults" in its list. Status: Confirmed Entry: tool/claude-code/permissions-and-security/override-block-allow-rules Revision: 3 Digest: sha256:acf2b55c734a5565 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:19Z Last changed: 2026-11-19T12:13:54Z (required literal: — → $defaults) Last verified: 2026-11-20T12:18:11Z Next check: 2026-11-21T12:18:11Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of hard_deny field | autoMode.hard_deny | [1] | 2026-11-20 soft_deny field | autoMode.soft_deny | [1] | 2026-11-20 allow field | autoMode.allow | [1] | 2026-11-20 required literal | $defaults | [1] | 2026-11-20 caution | $defaults | [1] | 2026-11-20 Sources: [1] Anthropic. "Configure auto mode". https://code.claude.com/docs/en/auto-mode-config.md Role: primary. Accessed: 2026-11-20T12:18:11Z Quote: "`autoMode.hard_deny`: actions to block even when the user asks for them" (Supports: hard_deny field) Quote: "`autoMode.soft_deny`: destructive actions that user intent can clear" (Supports: soft_deny field) Quote: "`autoMode.allow`: exceptions to soft block rules" (Supports: allow field) Quote: "include the literal string `"$defaults"` in its list" (Supports: required literal) Quote: "Include `"$defaults"` in every list you set, so you don't lose any" (Supports: caution) Published: 2026-11-20T10:36:06Z Snapshot SHA-256: d14bc65ba9a3643767edb8574e35a019e2f108e9804bcb6ff270eb9f3d966522 (captured 2026-11-19T12:13:55Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-19T12:13:54Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:18:11Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:18:11Z Last attempt: 2026-11-20T12:18:11Z Notes and limitations: Extracted automatically from a single official source (section "Override the block and allow rules"). Related: https://latestn.com/tool/claude-code/permissions-and-security/permission-allow-rules How do I allow or deny specific permission rules in Claude Code settings? https://latestn.com/tool/claude-code/permissions-and-security/permission-evaluation-order How are permissions evaluated in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/permission-modes What permission modes does Claude Code support and what does each one do? https://latestn.com/tool/claude-code/permissions-and-security/manage-site-permissions How do I manage site permissions for Claude Code's Chrome integration? https://latestn.com/tool/claude-code/permissions-and-security/mcp-security How does Claude Code handle security for MCP servers? https://latestn.com/tool/claude-code/permissions-and-security/official-marketplace-names Which marketplace names are official Anthropic marketplaces in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T12:13:54Z | changed | required literal: — → $defaults | [1] 2026-11-19T12:13:54Z | changed | defaults string: $defaults → — | [1] 2026-11-18T12:13:55Z | changed | caution: — → $defaults | [1] 2026-11-18T12:13:55Z | changed | defaults string: — → $defaults | [1] 2026-11-18T12:13:55Z | changed | print defaults command: claude auto-mode defaults → — | [1] 2026-11-18T12:13:55Z | changed | keep defaults string: $defaults → — | [1] 2026-11-13T03:03:19Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/override-block-allow-rules/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/permissions-and-security/override-block-allow-rules POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/override-block-allow-rules with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/override-block-allow-rules?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I override the default block and allow rules in Claude Code auto mode? Revision 3, last verified 2026-11-20T12:18:11Z. https://latestn.com/tool/claude-code/permissions-and-security/override-block-allow-rules (accessed 2026-11-21T10:02:07Z). @misc{LatestN_tool_claude_code_permissions_and_security_override_block_allow_rules_r3, title = {How do I override the default block and allow rules in Claude Code auto mode?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/override-block-allow-rules}}, note = {Revision 3; digest sha256:acf2b55c734a5565; last verified 2026-11-20T12:18:11Z; accessed 2026-11-21T10:02:07Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/permissions-and-security/override-block-allow-rules