mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-05-21 07:22:44 +00:00
340fe5d2efbaf06d67544b0db14167a50f11eef1
- Add node fallback when bun is unavailable - Better command availability checking - Support macOS Terminal.app (Apple_Terminal) - Add xterm support for Linux desktops - Adjust tmux split width to 50 for better fit - Reduce WezTerm/Windows Terminal split to 25% - Improve error handling with && return 0 pattern - Add LOG_FILE variable for cleaner code 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Claude HUD 🖥️
Real-time terminal HUD (Heads-Up Display) for Claude Code. Shows context usage, tool activity, MCP status, todos, and modified files in a split pane.
Features
- Context Meter - Live token count, percentage, and remaining context
- Tool Stream - Real-time feed of all tool calls with status
- MCP Status - Connected MCP server indicators
- Todo List - Current tasks with progress highlighting
- Modified Files - Files changed during the session
Installation
claude /plugin install github.com/jarrod/claude-hud
The plugin will automatically:
- Install dependencies on first run (bun preferred, falls back to npm)
- Build the TUI
- Create a split pane in your terminal
Supported Terminals
| Terminal | Split Support |
|---|---|
| tmux | Native split pane |
| iTerm2 | Native split (AppleScript) |
| Kitty | Native split (remote control) |
| WezTerm | Native split (CLI) |
| Zellij | Native split |
| Windows Terminal | Native split (WSL) |
| macOS Terminal | Companion window |
| Others | Background process |
Usage
Once installed, the HUD appears automatically when you start Claude Code.
Keyboard Shortcuts
| Key | Action |
|---|---|
Ctrl+H |
Toggle HUD visibility |
Ctrl+C |
Exit HUD |
Configuration
The HUD uses sensible defaults. Future versions will support configuration via .claude/claude-hud.local.md.
How It Works
- SessionStart hook - Spawns the HUD TUI in a terminal split pane
- PostToolUse hook - Captures all tool calls and writes to a FIFO
- SubagentStop hook - Tracks subagent completion
- SessionEnd hook - Cleans up the HUD process and FIFO
Data flows from Claude Code hooks → FIFO → HUD TUI (React/Ink).
Development
cd tui
bun install
bun run build
bun run start -- --session test --fifo /tmp/test.fifo
Requirements
- Claude Code
- Node.js 18+ or Bun
- jq (for JSON parsing in hooks)
License
MIT
Description
Languages
JavaScript
63.2%
TypeScript
36.8%
