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

hook native

Internal entrypoint used by supported native integrations. Read the agent's lifecycle JSON payload from stdin and share the matching session metadata. Payloads are limited to 1 MiB and their session fields vary by adapter.

Usage

span hook native <agent> <project>
The installed callback supplies the agent and canonical project path, or home directory for global integrations. Pi and Oh My Pi callbacks invoke span share directly and do not use this entrypoint. Manage callbacks with setup hooks and remove hooks.

Options

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

Examples

Installed Cursor callback invocation with its payload on stdin:
span hook native cursor /path/to/project < lifecycle.json