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

hook

Use capture and ingest for event-batch pipelines. The other subcommands are internal entrypoints invoked by installed agent callbacks, Git hooks, and background workers. Manage those integrations with setup and remove.

Usage

span hook <subcommand>

Subcommands

CommandPurpose
hook capture vercel-ai-sdkSave Vercel AI SDK event batches locally.
hook ingestUpload event batches from stdin with receipts.
hook agentHandle installed Claude Code and Codex lifecycle callbacks.
hook nativeHandle supported native agent callbacks.
hook gitHandle the installed Git post-commit hook.
hook syncSynchronize an agent transcript in a background worker.
hook commitSynchronize a session associated with a Git revision.

Options

There are no parent options. See each subcommand for its arguments and options.

Examples

bun run agent.ts | span hook capture vercel-ai-sdk span hook ingest < batches.ndjson