1span hook <subcommand>
| Command | Purpose |
| hook capture vercel-ai-sdk | Save Vercel AI SDK event batches locally. |
| hook ingest | Upload event batches from stdin with receipts. |
| hook agent | Handle installed Claude Code and Codex lifecycle callbacks. |
| hook native | Handle supported native agent callbacks. |
| hook git | Handle the installed Git post-commit hook. |
| hook sync | Synchronize an agent transcript in a background worker. |
| hook commit | Synchronize a session associated with a Git revision. |
12bun run agent.ts | span hook capture vercel-ai-sdk span hook ingest < batches.ndjson