Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

hook agent

Internal entrypoint installed by setup hooks. Read a lifecycle JSON payload from stdin, record the active session, and schedule hook sync. The integration must be enabled by setup.

Usage

span hook agent <agent> <project>
Installed callbacks use claude-code or codex and the canonical project path. Payloads contain session_id, transcript_path, cwd, and hook_event_name. Supported events are SessionStart, UserPromptSubmit, and Stop.

Options

No flags. Arguments are positional and supplied by the installed integration.

Examples

Installed callback invocation with a lifecycle payload on stdin:
span hook agent codex /path/to/project < lifecycle.json