Files
claude-hud/scripts/capture-event.sh
Jarrod Watts fc0128ac73 Initial commit: Claude HUD plugin
Real-time terminal HUD for Claude Code showing:
- Context usage meter
- Tool activity stream
- Subagent visualization
- MCP status indicators
- Todo list tracking
- Modified files

Built with React/Ink for terminal UI.
Supports tmux, iTerm2, Kitty, WezTerm, Zellij, Windows Terminal.
2026-01-02 12:41:08 +11:00

18 lines
394 B
Bash
Executable File

#!/bin/bash
INPUT=$(cat)
SESSION_ID=$(echo "$INPUT" | jq -r '.session_id')
EVENT_FIFO="$HOME/.claude/hud/events/$SESSION_ID.fifo"
if [ -p "$EVENT_FIFO" ]; then
echo "$INPUT" | jq -c '{
event: .hook_event_name,
tool: .tool_name,
input: .tool_input,
response: .tool_response,
session: .session_id,
ts: (now | floor)
}' >> "$EVENT_FIFO" 2>/dev/null || true
fi
exit 0