Session lifecycle management
Hooks for session start and end — initialize environment, load context, clean up resources, or log session activity
Lifecycle Hooks Hooks & Lifecycle
Supported
Partial
No
Unknown
2.1.140 - 2.1.197
3.0.0 - 3.0.34
0.131.0 - 0.142.4
1.0.46 - 1.0.66
3.7 - 3.9
2.1.73 - 2.1.139
—
0.114.0 - 0.130.0
1.0.4 - 1.0.45
3.0 - 3.2
2.1.30 - 2.1.72
—
0.95.0 - 0.113.0
0.0.401 - 1.0.3
2.5
2.1.16 - 2.1.29
—
0.89.0 - 0.94.0
0.0.389 - 0.0.400
2.4
1.0.62 - 2.1.15
—
0.11.0 - 0.88.0
0.0.374 - 0.0.388
1.7 - 2.0
0.2.31 - 1.0.61
—
0.2.0 - 0.10.0
—
0.45 - 1.2
Supported by all 5 agents.
HoverTap any cell for version details.
Agent event mapping
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 CLI: SessionStart only, can distinguish fresh start vs resume vs /clear
- Cursor: both events, fire-and-forget (non-blocking); sessionEnd includes reason and duration
- Cline: TaskStart in the CLI fires at the beginning of each agentic loop; v4.0.0 adds an SDK-backed session layer and plugin packaging for runtime extensibility