Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

17 pages for permissionrequest.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …fallback | Give Claude model-specific guidance for the new model | | `PermissionRequest` | Yes | Yes | A tool call needs a permission decision | Custom permission handling | | `PermissionDenied` | No… Configure permissions Claude Code CLI · in the page agent-sdk/permissions …sdk/typescript#options), your callback isn't called at this step. A [`PermissionRequest` hook](/docs/en/hooks#permissionrequest) still gets a chance to decide, and if it doesn't, Claude Code denies th… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …ion events "SubagentStart", # Called when a subagent starts "PermissionRequest", # Called when a permission decision is needed ] ``` > [!NOTE] > > The TypeScript SDK supports additional hoo… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …ptToolName`, denies any tool call that would have prompted unless a [`PermissionRequest` hook](/docs/en/hooks-guide#limitations) allows it, and this event reports those denials as well as the ones Cla… Handle approvals and user input Claude Code CLI · in the page agent-sdk/user-input …nd what happens in `dontAsk` and `auto` mode. You can also use the [`PermissionRequest` hook](/docs/en/agent-sdk/hooks#available-hooks) to send external notifications (Slack, email, push) when Claude… Manage multiple agents with agent view Claude Code CLI · in the page agent-view …e waits in the queue. To answer the dialog, attach with `→` When a [`PermissionRequest`](/docs/en/hooks#permissionrequest) or [`PreToolUse`](/docs/en/hooks#pretooluse) hook returns output Claude Code… Claude Code changelog Claude Code CLI · in the page changelog …s to read "Sandbox commands" instead of "Sandbox BashTool" * Changed `PermissionRequest` hooks in Cowork cloud sessions: a `setMode` update in a hook's allow is now ignored; the rest of the approval s… Channels reference Claude Code CLI · in the page channels-reference …d, // so this schema is both the validator and the dispatch key const PermissionRequestSchema = z.object({ method: z.literal('notifications/claude/channel/permission_request'), params: z.object({… Debug your configuration Claude Code CLI · in the page debug-your-config …ession and in `claude doctor`. If the array is under `PreToolUse` or `PermissionRequest`, none of that file's other hooks load either. * The hook is in a skill's frontmatter, and neither you nor Claud… Desktop application Claude Code CLI · in the page desktop …-rules-and-workspace-trust). * **A hook that answers**: configure a [`PermissionRequest` hook](/docs/en/hooks#permissionrequest) in `~/.claude/settings.json` on the remote machine to allow or deny req… Error reference Claude Code CLI · in the page errors …) | | `Managed settings contain invalid entries, including PreToolUse/PermissionRequest hooks that are NOT loaded; fix or remove each entry:` | [Configuration warnings](#managed-settings-hooks-not-loa… Run Claude Code programmatically Claude Code CLI · in the page headless …at needs approval is denied unless something approves it, such as a [`PermissionRequest` hook](/docs/en/hooks#permissionrequest) or a [`--permission-prompt-tool`](/docs/en/cli-reference#cli-flags). Wi… Hooks reference Claude Code CLI · in the page hooks …mptExpansion for slash commands, the nested agentic loop (PreToolUse, PermissionRequest, PostToolUse, PostToolUseFailure, PostToolBatch, SubagentStart/Stop, TaskCreated, TaskCompleted), and Stop or St… Automate actions with hooks Claude Code CLI · in the page hooks-guide …uires your hook to write a JSON decision to stdout. Claude Code runs `PermissionRequest` hooks when it's about to ask you for permission, and if your hook returns `"behavior": "allow"`, Claude Code an… Monitoring Claude Code CLI · in the page monitoring-usage …d these failures as `"user_reject"`. * `"hook"`: A `PreToolUse` or `PermissionRequest` hook returned the decision. * `"user_permanent"`: Emitted when the user chose "Yes, and don't ask again for .… Choose a permission mode Claude Code CLI · in the page permission-modes …even in `auto` mode and without a time limit. In modes that ask, a [`PermissionRequest` hook](/docs/en/hooks#permissionrequest) can answer the prompt. ### Time limits and denials in auto and bypassP… React to events with a mod Claude Code CLI · in the page plugins/mods/events …rmission-modes#eliminate-prompts-with-auto-mode)'s classifier, or a [`PermissionRequest`](/docs/en/hooks#permissionrequest) hook This hook refuses `git push` while the current branch is `main`: ```j…
Feedback