Answer: You set the permission mode using the `permission_mode` option in Python or `permissionMode` in TypeScript, choosing from modes such as `"default"`, `"acceptEdits"`, `"plan"`, `"dontAsk"`, `"auto"`, or `"bypassPermissions"`. Status: Confirmed Entry: tool/claude-code/permissions-and-security/change-permission-mode Revision: 4 Digest: sha256:5520d59e0247ee1e (changes whenever the content changes) Timeline: Created: 2026-11-13T02:27:53Z Last changed: 2026-11-20T12:16:14Z (Bypass permissions mode: — → "bypassPermissions") Last verified: 2026-11-20T12:16:14Z Next check: 2026-11-21T12:16:14Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Python option name | permission_mode | [1] | 2026-11-20 TypeScript option name | permissionMode | [1] | 2026-11-20 Default mode | "default" | [1] | 2026-11-20 Accept edits mode | "acceptEdits" | [1] | 2026-11-20 Bypass permissions mode | "bypassPermissions" | [1] | 2026-11-20 Sources: [1] Anthropic. "How the agent loop works". https://code.claude.com/docs/en/agent-sdk/agent-loop.md Role: primary. Accessed: 2026-11-20T12:16:14Z Quote: "The permission mode option (`permission_mode` in Python, `permissionMode` in TypeScript)" (Supports: Python option name, TypeScript option name) Quote: "| `"default"` | Tool calls that need approval and aren't covered by allow rules trigger your `canUseTool` callback; no callback means deny" (Supports: Default mode) Quote: "| `"acceptEdits"` | Auto-approves file edits and common filesystem commands" (Supports: Accept edits mode) Quote: "| `"bypassPermissions"` | Runs tool calls without asking for approval, including calls to tools you didn't list in `allowedTools`." (Supports: Bypass permissions mode) Published: 2026-11-20T02:53:15Z Snapshot SHA-256: 55a463c38057a4f24a8c6ffe8eb4984a5285d0e3eda21f982a81cc193bb4ad5b (captured 2026-11-20T12:16:13Z) 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:14Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:16:14Z Last attempt: 2026-11-20T12:16:14Z Notes and limitations: Extracted automatically from a single official source (section "Permission mode"). Related: https://latestn.com/tool/claude-code/permissions-and-security/change-permission-mode-2 How do I change the permission mode in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/choose-sandbox-for-threat-model How do I choose the right sandbox environment for my threat model in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/cloud-network-access-levels What network access levels can I choose for a Claude Code cloud environment and how do I allow specific domains? https://latestn.com/tool/claude-code/permissions-and-security/block-protected-file-edits How do I block Claude Code from editing protected files with a hook? https://latestn.com/tool/claude-code/permissions-and-security/block-reads-generated-vendored-code How do I block reads of generated and vendored code in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/built-in-security-features What built-in security features does Claude Code have? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:16:14Z | changed | Bypass permissions mode: — → "bypassPermissions" | [1] 2026-11-20T12:16:14Z | changed | Accept edits mode: — → "acceptEdits" | [1] 2026-11-20T12:16:14Z | changed | Default mode: — → "default" | [1] 2026-11-20T12:16:14Z | changed | TypeScript bypass requirement: allowDangerouslySkipPermissions: true → — | [1] 2026-11-20T12:16:14Z | changed | Isolated environments mode: "bypassPermissions" → — | [1] 2026-11-20T12:16:14Z | changed | Dev machine edits mode: "acceptEdits" → — | [1] 2026-11-20T12:16:14Z | changed | Interactive mode: "default" → — | [1] 2026-11-17T12:20:10Z | changed | Isolated environments mode: — → "bypassPermissions" | [1] 2026-11-17T12:20:10Z | changed | Dev machine edits mode: — → "acceptEdits" | [1] 2026-11-17T12:20:10Z | changed | Interactive mode: — → "default" | [1] 2026-11-17T12:20:10Z | changed | Bypass permissions mode: "bypassPermissions" → — | [1] 2026-11-17T12:20:10Z | changed | Accept edits mode: "acceptEdits" → — | [1] 2026-11-17T12:20:10Z | changed | Default mode: "default" → — | [1] 2026-11-13T03:02:36Z | changed | TypeScript bypass requirement: — → allowDangerouslySkipPermissions: true | [1] 2026-11-13T03:02:36Z | changed | Bypass permissions mode: — → "bypassPermissions" | [1] 2026-11-13T03:02:36Z | changed | Accept edits mode: — → "acceptEdits" | [1] 2026-11-13T03:02:36Z | changed | Default mode: — → "default" | [1] 2026-11-13T03:02:36Z | changed | TypeScript option name: — → permissionMode | [1] 2026-11-13T03:02:36Z | changed | Python option name: — → permission_mode | [1] 2026-11-13T03:02:36Z | changed | blocks before pause: three blocks in a row → — | [1] 2026-11-13T03:02:36Z | changed | auto mode position: between the two → — | [1] 2026-11-13T03:02:36Z | changed | shell command: claude --permission-mode manual → — | [1] 2026-11-13T03:02:36Z | changed | keyboard shortcut: Shift+Tab → — | [1] 2026-11-13T02:27:53Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/change-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/change-permission-mode POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/change-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/change-permission-mode?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I change the permission mode for a Claude Code SDK agent? Revision 4, last verified 2026-11-20T12:16:14Z. https://latestn.com/tool/claude-code/permissions-and-security/change-permission-mode (accessed 2026-11-21T10:03:27Z). @misc{LatestN_tool_claude_code_permissions_and_security_change_permission_mode_r4, title = {How do I change the permission mode for a Claude Code SDK agent?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/change-permission-mode}}, note = {Revision 4; digest sha256:5520d59e0247ee1e; last verified 2026-11-20T12:16:14Z; accessed 2026-11-21T10:03:27Z} } 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/change-permission-mode