Overview
Sessions track active coding agent conversations in a workspace. They’re created and managed automatically by IDE hooks — you don’t typically call these endpoints directly.Hook Endpoint
The primary endpoint. Handles all IDE hook events.Event Types
| Event | IDE | Effect |
|---|---|---|
sessionStart / SessionStart | Cursor / Claude Code, Codex | Creates session, returns context briefing |
preToolUse / PreToolUse | Cursor / Claude Code | Checks file reservation, may deny write |
postToolUse / PostToolUse | Cursor / Claude Code | Reserves file for this conversation |
beforeSubmitPrompt / UserPromptSubmit | Cursor / Claude Code, Codex | Captures task text |
sessionEnd / SessionEnd / Stop | Cursor / Claude Code, Codex | Releases reservations, ends session |
file_check | Any | Updates heartbeat |
sessionStart Response
additional_context field is injected as system context by the IDE.