Agent support · Hooks & Lifecycle

Session lifecycle management

Hooks for session start and end — initialize environment, load context, clean up resources, or log session activity

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.62 - 2.1.311
0.114.0 - 0.164.0
0.0.402 - 1.0.103
2.4 - 3.27
0.15.19 - 1.19.4
0.2.31 - 1.0.61
0.2.0 - 0.113.0
0.0.401
0.45 - 2.0
0.3.114 - 0.7.2
—
—
0.0.374 - 0.0.400
—
0.1.30 - 0.3.102

Supported by all 5 agents.

HoverTap any cell for version details.

Agent event mapping

  • claude-code SessionStart, SessionEnd
  • codex SessionStart, SessionEnd
  • copilot sessionStart, sessionEnd
  • cursor sessionStart, sessionEnd
  • opencode session.created, session.deleted

Sub-capabilities

  • Session start: initialize env vars, load context, inject configuration
  • Session end: clean up resources, flush logs, save state
  • Claude Code: SessionStart (1.0.62) and SessionEnd (1.0.85) shipped separately
  • Codex: SessionStart (start, resume, /clear, compact, fork) and SessionEnd (0.145.0)
  • Cursor: both events, fire-and-forget (non-blocking); sessionEnd includes reason and duration