mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-05-12 01:06:21 +00:00
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.
18 lines
394 B
Bash
Executable File
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
|