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

setup hooks

Install automatic metadata sharing for the selected agent. Claude Code and Codex are selected by default. Agents without a supported callback use sharing skills; see supported agents for availability.

Usage

span setup hooks [--agent AGENT] [--cwd DIR | --global] [--reasoning-summaries]
Kimi, Hermes, and OpenClaw hooks require --global. Hermes and OpenClaw also require their CLI on PATH for plugin registration.
With --agent vercel-ai-sdk, generate .halfspan/vercel-ai-sdk.ts in the selected project directory. Import traceVercelRun and register it in your server; see Trace a Vercel AI SDK application.

Options

See setup options. --reasoning-summaries enables available summary text on Stop for Claude Code and Codex; native hooks reject it. Vercel AI SDK requires project scope and uses application-level summaryForStep instead.

Examples

span setup hooks --agent codex --reasoning-summaries span setup hooks --agent kimi --global span setup hooks --agent vercel-ai-sdk