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
1span 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: