vibecast hook

stable

Claude Code hook handler for streaming session metadata

Usage: vibecast hook [options]
Category: broadcasting

Examples

$ vibecast hook

Run as a Claude Code hook handler

vibecast hook

The hook subcommand is invoked by Claude Code's hook system to stream session metadata (prompts, tool calls, responses) to the Agentic Live server. This enables the viewer overlay that shows what Claude is doing in real-time.

How It Works

  1. Claude Code invokes vibecast hook as a configured hook command
  2. The hook reads event data from stdin
  3. Metadata is sent to the Agentic Live server via the /api/lives/metadata endpoint
  4. The server fans out the metadata to connected viewers

Configuration

Add to your Claude Code hooks configuration:

{
  "hooks": {
    "onPromptSubmit": "vibecast hook",
    "onToolCall": "vibecast hook",
    "onResponse": "vibecast hook"
  }
}