claude-hud CLAUDE.md
From jarrodwatts
This file provides guidance to Claude Code when working with this repository.
Facts
- Repository
- jarrodwatts/claude-hud
- Status
- Actively maintained
- Last commit
- Source file
- CLAUDE.md
Source preview
The instructions Claude Code reads when this claude.md runs.
# CLAUDE.md
This file provides guidance to Claude Code when working with this repository.
## Project Overview
Claude HUD is a Claude Code plugin that displays a real-time multi-line statusline. It shows context health, tool activity, agent status, and todo progress.
## Build Commands
```bash
npm ci # Install dependencies
npm run build # Build TypeScript to dist/
# Test with sample stdin data
echo '{"model":{"display_name":"Opus"},"context_window":{"current_usage":{"input_tokens":45000},"context_window_size":200000}}' | node dist/index.js
```
## Architecture
### Data Flow
```
Claude Code → stdin JSON → parse → render lines → stdout → Claude Code displays
↘ transcript_path → parse JSONL → tools/agents/todos
```
**Key insight**: The statusline is invoked every ~300ms by Claude Code. Each invocation:
1. Receives JSON via stdin (model, context, tokens - native accurate data)
2. Parses the transcript JSONL file for tools, agents, and todos
3. Renders multi-line output to stdout
4. Claude Code displays all lines
### Data Sources
**Native from stdin JSON** (accurate, no estimation):
- `model.display_name` - Current model
- `context_window.current_usage` - Token counts
- `context_window.context_window_size` - Max context
- `transcript_path` - Path to session transcript
**From transcript JSONL parsing**:
- `tool_use` blocks → tool name, input,View full source on GitHub →Other claude.md files
ECC CLAUDE.md
★ 229,918This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
affaan-mupdated 15d agoMITui-ux-pro-max-skill CLAUDE.md
★ 105,847This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
nextlevelbuilderupdated 14d agoMITcaveman CLAUDE.md
★ 89,686README = product front door. Non-technical people read it to decide if caveman worth install. Treat like UI copy.
JuliusBrusseeupdated 25d agoMITservers CLAUDE.md
★ 88,502This file provides guidance to Claude Code when working with code in this repository.
modelcontextprotocolupdated 19d agoNOASSERTIONclaude-mem CLAUDE.md
★ 87,329Claude-mem is a Claude Code plugin providing persistent memory across sessions. It captures tool usage, compresses observations using the Claude Agent SDK, and injects relevant context into future ses
thedotmackupdated 13d agoApache-2.0agent-skills CLAUDE.md
★ 78,448This is the agent-skills project — a collection of production-grade engineering skills for AI coding agents.
addyosmaniupdated 16d agoMIT