Search the documentation
18 pages for permissionmode.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
How the agent loop works
Claude Code CLI · in the page
agent-sdk/agent-loop
…r that rules are checked before a tool runs. * **`permission_mode` / `permissionMode`** controls how much human oversight you want. The SDK evaluates the active mode together with your allow and deny…
Configure your agent
Claude Code CLI · in the page
agent-sdk/configuration
…model-setting) rather than the `model` you passed in options. * **`setPermissionMode()` / `set_permission_mode()`**: switches the permission mode TypeScript also has `applyFlagSettings()` and `update…
Rewind file changes with checkpointing
Claude Code CLI · in the page
agent-sdk/file-checkpointing
…ointing const opts = { enableFileCheckpointing: true, permissionMode: "acceptEdits" as const, // Auto-accept file edits without prompting extraArgs: { "replay-user-messages": nul…
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…e> **Prefer `allowedTools` over permission modes for MCP access.** `permissionMode: "acceptEdits"` does not auto-approve MCP tools (only file edits and filesystem Bash commands). `permissionMode: "b…
Configure permissions
Claude Code CLI · in the page
agent-sdk/permissions
…CLAUDE_SDK_CAN_USE_TOOL_SHADOWED`. Two configurations trigger it: * `permissionMode: 'bypassPermissions'`, which auto-approves every call that reaches the permission mode step apart from the [actions…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…interrupt(self) -> None async def set_permission_mode(self, mode: PermissionMode) -> None async def set_model(self, model: str | None = None) -> None async def rewind_files(self, user_mess…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…wedTools: ["Read", "Edit", "Glob"], // Auto-approve these tools permissionMode: "acceptEdits" // Auto-approve file edits } })) { // Print human-readable output if (message.type ===…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…| | `permissionMode` | `PermissionMode` | No | Permission mode for tool execution wit…
Track todos
Claude Code CLI · in the page
agent-sdk/todo-tracking
…rompts ask Claude to do real work on a project, so each example sets `permissionMode: "acceptEdits"` (TypeScript) or `permission_mode="acceptEdits"` (Python) to auto-approve the file edits that work p…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…| Enable bypassing permissions. Required when using `permissionMode: 'bypassPermissions'`, at startup or later through `setPermissionMode()`. See [plan mode](/docs/en/agent-sdk/permis…
Claude Code changelog
Claude Code CLI · in the page
changelog
…ode, overriding the target directory's `defaultMode` and the agent's `permissionMode` * Fixed `keybindings.json` rebinds of Ctrl+G being ignored in `claude agents`; its Ctrl+S / Ctrl+T are now rebin…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…| `name`, `description`, `tools`, `disallowedTools`, `model`, `permissionMode`, `maxTurns`, `skills`, `mcpServers`, `hooks`, `memory`, `background`, `effort`, `isolation`, `color`, `initialProm…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…in the permission mode conversations start in, set `claudeCode.initialPermissionMode` in your VS Code user settings to `default`, `manual`, `acceptEdits`, `plan`, or `bypassPermissions`. The setting d…
Plugins reference
Claude Code CLI · in the page
plugins-reference
…**Not supported, for security reasons**: `hooks`, `mcpServers`, and `permissionMode`. Claude Code ignores these when loading an agent from a plugin. To use them, copy the agent file into `.claude/age…
Claude Code settings
Claude Code CLI · in the page
settings
…gnores an [agent definition's](/docs/en/sub-agents#permission-modes) `permissionMode: bypassPermissions`, so the subagent runs with the parent session's mode. Before v2.1.223, Claude Code applied the…
All settings
Claude Code CLI · in the page
settings-reference
…gnores an [agent definition's](/docs/en/sub-agents#permission-modes) `permissionMode: bypassPermissions`, so the subagent runs with the parent session's permission mode. * **Scope**: [`Any file`](#sc…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…-fields) fields: `description`, `tools`, `disallowedTools`, `model`, `permissionMode`, `mcpServers`, `hooks`, `maxTurns`, `skills`, `initialPrompt`, `memory`, `effort`, `background`, `omitClaudeMd`, a…
Use Claude Code in VS Code
Claude Code CLI · in the page
vs-code
…/en/permission-modes#switch-permission-modes) from `claudeCode.initialPermissionMode` or a pick that carries over from an earlier conversation * You have `claudeCode.claudeProcessWrapper` configured…