Agent support · Hooks & Lifecycle

Generic tool use hooks

Pre and post hooks around any tool execution — inspect, modify, block, or log tool calls

Baseline Widely available Fully supported by every tracked agent since Mar 2026, when Codex added it. 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
1.0.38 - 2.1.311
0.117.0 - 0.164.0
0.0.396 - 1.0.103
3.2 - 3.27
0.3.114 - 1.19.4
0.2.31 - 1.0.37
0.2.0 - 0.116.0
0.0.374 - 0.0.395
3.0
0.1.30 - 0.3.102
—
—
—
2.5
—
—
—
—
2.4
—
—
—
—
2.0
—
—
—
—
1.7
—
—
—
—
0.45 - 1.3
—

Supported by all 5 agents.

HoverTap any cell for version details.

Agent event mapping

  • claude-code PreToolUse, PostToolUse, PostToolUseFailure, PostToolBatch
  • codex PreToolUse, PostToolUse
  • copilot preToolUse, postToolUse
  • cursor preToolUse, postToolUse, postToolUseFailure
  • opencode tool.execute.before, tool.execute.after

Sub-capabilities

  • Pre-tool: inspect and optionally block or modify tool input before execution
  • Post-tool: observe results, trigger side effects (linting, formatting, logging)
  • Claude Code: richest event set — includes PostToolUseFailure and PostToolBatch