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