Answer: You can set the permission mode once when starting a query by passing `permission_mode` (Python) or `permissionMode` (TypeScript), or change it dynamically mid-session by calling `set_permission_mode()` (Python) or `setPermissionMode()` (TypeScript). Status: Confirmed Entry: tool/claude-code/permissions-and-security/set-permission-mode Revision: 2 Digest: sha256:1d9d38939847864d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:52Z Last changed: 2026-11-15T12:16:26Z (Example mode: — → acceptEdits) Last verified: 2026-11-20T12:16:58Z Next check: 2026-11-21T12:16:58Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Python parameter | permission_mode | [1] | 2026-11-20 TypeScript parameter | permissionMode | [1] | 2026-11-20 Python dynamic method | set_permission_mode() | [1] | 2026-11-20 TypeScript dynamic method | setPermissionMode() | [1] | 2026-11-20 Example mode | acceptEdits | [1] | 2026-11-20 Sources: [1] Anthropic. "Configure permissions". https://code.claude.com/docs/en/agent-sdk/permissions.md Role: primary. Accessed: 2026-11-20T12:16:58Z Quote: "Pass `permission_mode` (Python) or `permissionMode` (TypeScript) when creating a query." (Supports: Python parameter, TypeScript parameter) Quote: "Call `set_permission_mode()` (Python) or `setPermissionMode()` (TypeScript) to change the mode mid-session." (Supports: Python dynamic method, TypeScript dynamic method) Quote: "for example switching to `acceptEdits` after reviewing Claude's initial approach." (Supports: Example mode) Published: 2026-11-20T02:56:53Z Snapshot SHA-256: 71a1150baab20a9356435f97bb11ff724e3216a955dd586527a03ea91b3f38ff (captured 2026-11-20T12:16:58Z) 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]. Cross-check: not-available at 2026-11-20T12:16:58Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:16:58Z Last attempt: 2026-11-20T12:16:58Z Notes and limitations: Extracted automatically from a single official source (section "Set permission mode"). Related: https://latestn.com/tool/claude-code/permissions-and-security/set-up-sandbox-runtime How do I set up and launch the Claude Code sandbox runtime? https://latestn.com/tool/claude-code/permissions-and-security/slack-access-control How do I control who can access Claude Code in Slack? https://latestn.com/tool/claude-code/permissions-and-security/stop-computer-use How do I stop Claude from controlling my screen during computer use? https://latestn.com/tool/claude-code/permissions-and-security/scheduled-task-permissions What permissions do scheduled tasks have in Claude Code Desktop? https://latestn.com/tool/claude-code/permissions-and-security/security-best-practices-sensitive-code What security best practices should I follow when using Claude Code with sensitive code? https://latestn.com/tool/claude-code/permissions-and-security/security-plugin-file-edit-checks What does the Claude Code security-guidance plugin check on each file edit? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-15T12:16:26Z | changed | Example mode: — → acceptEdits | [1] 2026-11-15T12:16:26Z | changed | example mode: acceptEdits → — | [1] 2026-11-13T03:02:52Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/set-permission-mode/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/set-permission-mode POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/set-permission-mode with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/set-permission-mode?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set the permission mode in Claude Code? Revision 2, last verified 2026-11-20T12:16:58Z. https://latestn.com/tool/claude-code/permissions-and-security/set-permission-mode (accessed 2026-11-21T10:02:09Z). @misc{LatestN_tool_claude_code_permissions_and_security_set_permission_mode_r2, title = {How do I set the permission mode in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/set-permission-mode}}, note = {Revision 2; digest sha256:1d9d38939847864d; last verified 2026-11-20T12:16:58Z; accessed 2026-11-21T10:02:09Z} } 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/set-permission-mode