Answer: Claude Code evaluates each tool request through six steps in order: hooks, deny rules, ask rules, permission mode, allow rules, and the canUseTool callback. Each step can decide the call, send it to your canUseTool callback, or pass it on. Status: Check failed Entry: tool/claude-code/permissions-and-security/permission-evaluation-order Revision: 2 Digest: sha256:08ea44cac6b2b008 (changes whenever the content changes) Timeline: Created: 2026-11-13T12:06:54Z Last changed: 2026-11-16T12:05:45Z Last verified: 2026-11-19T12:12:45Z Last attempt: 2026-11-20T12:17:00Z (failed) Next check: 2026-11-20T13:17:00Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of evaluation steps | six-step permission evaluation flow | [1] | 2026-11-19 step 1 | Hooks | [1] | 2026-11-19 step 2 | Deny rules | [1] | 2026-11-19 step 3 | Ask rules | [1] | 2026-11-19 step 4 | Permission mode | [1] | 2026-11-19 step 5 | Allow rules | [1] | 2026-11-19 step 6 | canUseTool callback | [1] | 2026-11-19 step behavior | Each step can decide the call, send it to your `canUseTool` callback, or pass it on | [1] | 2026-11-19 Sources: [1] Anthropic. "Configure permissions". https://code.claude.com/docs/en/agent-sdk/permissions.md Role: primary. Accessed: 2026-11-19T12:12:45Z Quote: "Diagram of the six-step permission evaluation flow matching the steps above" (Supports: evaluation steps) Quote: "**1. Hooks**" (Supports: step 1) Quote: "**2. Deny rules**" (Supports: step 2) Quote: "**3. Ask rules**" (Supports: step 3) Quote: "**4. Permission mode**" (Supports: step 4) Quote: "**5. Allow rules**" (Supports: step 5) Quote: "**6. canUseTool callback**" (Supports: step 6) Quote: "Each step can decide the call, send it to your `canUseTool` callback, or pass it on" (Supports: step behavior) Published: 2026-11-19T04:09:15Z Snapshot SHA-256: becebe536f1b288485a5cdab00cb0271f8db80518d3c3a5c76110387c4fd6c65 (captured 2026-11-14T12:12:35Z) 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-16T12:05:45Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T12:12:45Z. No independent second source is configured for this entry Last successful check: 2026-11-19T12:12:45Z Last attempt: 2026-11-20T12:17:00Z (failed) Notes and limitations: Extracted automatically from a single official source (section "How permissions are evaluated"). Related: 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/pin-permission-mode-self-hosted How do I pin a permission mode or pre-approve specific tools for Claude Code self-hosted sessions? https://latestn.com/tool/claude-code/permissions-and-security/plugin-capabilities What can a Claude Code plugin do on my machine? 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/claude-code/permissions-and-security/override-block-allow-rules How do I override the default block and allow rules in Claude Code auto mode? 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/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:17:00Z | check-failed | Extraction did not pass verification: answer does not contain any extracted value | — 2026-11-16T12:05:45Z | recovered | Check succeeded again | — 2026-11-16T12:05:45Z | changed | step behavior: — → Each step can decide the call, send it to your `canUseTool` callback, or pass it on | [1] 2026-11-16T12:05:45Z | changed | evaluation steps: hooks, deny rules, ask rules, permission mode, allow rules, and canUseTool → six-step permission evaluation flow | [1] 2026-11-14T12:12:35Z | check-failed | Extraction did not pass verification: answer does not contain any extracted value | — 2026-11-13T12:06:54Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/permission-evaluation-order/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/permission-evaluation-order POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/permission-evaluation-order with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/permission-evaluation-order?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How are permissions evaluated in Claude Code? Revision 2, last verified 2026-11-19T12:12:45Z. https://latestn.com/tool/claude-code/permissions-and-security/permission-evaluation-order (accessed 2026-11-21T10:02:18Z). @misc{LatestN_tool_claude_code_permissions_and_security_permission_evaluation_order_r2, title = {How are permissions evaluated in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/permission-evaluation-order}}, note = {Revision 2; digest sha256:08ea44cac6b2b008; last verified 2026-11-19T12:12:45Z; accessed 2026-11-21T10:02:18Z} } 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/permission-evaluation-order