Agent support · Hooks & Lifecycle

Permission request hook

Runs when the agent is about to ask you to approve a tool call — approve or deny it automatically instead of showing the prompt

Baseline Limited availability Partial in OpenCode. Not in Cursor. Based on web.dev's Baseline
Lifecycle Hooks Hooks & Lifecycle
Supported
Partial
No
Unknown
Not released
Claude Code Current · Oct 2026
Codex Current · Oct 2026
GitHub Copilot Current · Oct 2026
Cursor Current · Oct 2026
OpenCode Current · Oct 2026
2.0.54 - 2.1.311
0.122.0 - 0.164.0
1.0.16 - 1.0.103
0.45 - 3.27
1.2.27 - 1.19.4
2.0.45 - 2.0.53
0.2.0 - 0.121.0
0.0.374 - 1.0.15
—
0.3.127 - 1.1.43
0.2.31 - 2.0.44
—
—
—
0.1.30 - 0.3.114

Supported by 4 of 5 agents.

HoverTap any cell for version details.

Agent event mapping

  • claude-code PermissionRequest
  • codex PermissionRequest
  • copilot permissionRequest
  • opencode permission.ask (plugin, until 1.2.26), permission.asked event

Sub-capabilities

  • Different from PreToolUse: it fires only when an approval prompt would show, not on every tool call
  • Claude Code, Codex and Copilot can allow or deny; Claude Code can also change the input and apply permission rules
  • Codex: if any matching hook denies, the request is denied