# Claude HUD: a live status line for Claude Code (jarrodwatts/claude-hud) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-13 against commit 9d2b6fa (version 0.15.3).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/jarrodwatts/claude-hud/

> Note: the pack has changed since this check; re-read its files before relying on details.

## Explain it to a non-programmer
A small two-line panel sits under the box where you type to Claude Code. It shows which model you are on, your project and branch, how full the conversation memory is, and how much of your plan's limits you have used. You change what it shows by asking in plain words, and it shows a preview before saving.

## Who it is for
- You use Claude Code and want to see at a glance how full the context is and how close you are to your limits
- You want to watch what the assistant is doing right now (tools, helper agents, to-do progress)
- You want to change the look by asking, not by editing settings files
- Not for: You use another assistant: it is built only for Claude Code
- Not for: You already have a status line you like: setting it up replaces it (it asks first and keeps the old one)

## What it is
- Kind: always-on, command, scripts
- License: MIT
- Repository: https://github.com/jarrodwatts/claude-hud

## What it does
- Claude Code runs the HUD after each message and prints its lines below the input
- Line 1: model, a provider label (Bedrock, Vertex, MiniMax) when detected, project path and git branch
- Line 2: how much of the context window is used, and the subscriber rate limits with a reset countdown
- Opt-in lines: tool activity, running subagents with their model and time, todo progress, and many other display options
- The /hud skill sets it up, looks up options, previews a change, saves it after you approve, undoes it, and replays the last render to explain what you see
- For a real bug it builds a scrubbed report that you read in full before anything is filed

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| hud | /hud [what you want] | no | Sets up, checks, changes or previews the status line, and prepares bug reports |

### hud
- Asks for: What you want shown or hidden, or what looks wrong ("the HUD is blank", "use the compact layout")
- Asks for: Your OK before it writes settings or replaces another status line
- Asks for: Your OK before a bug report is filed
- Gives: A health check of the setup with a fix named for each problem
- Gives: A preview of the change before it is saved
- Gives: The saved change (or an undo of the last one)
- Gives: A scrubbed bug report you can read, file or paste
- Say: "/hud show tool activity"

## Know before installing
- Setup writes your Claude Code settings.json (the statusLine entry). It backs the file up first, and Claude Code asks you before it runs.
- Its code runs on your machine after every message. The display logic runs in a locked-down Node process that may write only its own data folder.
- It reads Claude Code's input, the session transcript, Claude config files and git or jj data for the current folder.
- Off for one session: start Claude Code with CLAUDE_HUD_DISABLE=1. Settings live in ~/.claude/plugins/claude-hud/config.json.
- Updates are not automatic by default; turn on auto-update for the marketplace in /plugin, or update by hand.

## Install (official commands)
- Claude Code: `/plugin marketplace add jarrodwatts/claude-hud` && `/plugin install claude-hud` && `/reload-plugins` && `/hud` — /hud checks the setup and points the status line at the HUD after asking you. Needs Node.js 22.18+.
- Claude Code (terminal): `claude plugin marketplace add jarrodwatts/claude-hud` && `claude plugin install claude-hud@claude-hud` — Then run /reload-plugins and /hud inside a session.

## What runs on the user's machine
- Code on the machine: yes (the Claude Code plugin)
- Network: optional
- After each message (and /compact, mode changes, rate-limit resets, prompt-cache expiry): Claude Code runs hud.mjs. It starts a second Node process under Node's permission model with an import fence that blocks network modules; that process reads only the paths it is granted and writes only ~/.claude/plugins/claude-hud/data/.
- Each render: collector.mjs runs fixed git or jj commands for the current folder (git never reaches the network), vm_stat on macOS for the optional memory line, and writes heartbeat.json and stripped/ in ~/.claude/plugins/claude-hud/.
- Only with CLAUDE_HUD_ALLOW_EXTRA_CMD=1 and --extra-cmd: Runs a shell command you choose on every refresh and shows its output on line 1.
- Only if display.externalUsageWritePath is set: Writes a private usage snapshot JSON to the path you chose.
- /hud is opened: The skill runs `hud doctor` right away to collect facts; doctor, schema, preview and report are pre-approved, install and set ask you first.
- hud install: Copies a launcher to ~/.claude/plugins/claude-hud/statusline.mjs, backs up settings.json and writes the statusLine entry.
- hud set: Writes ~/.claude/plugins/claude-hud/config.json and keeps an undo copy.
- hud report, only with your OK: The skill files the scrubbed case as a GitHub issue on jarrodwatts/claude-hud with the gh CLI, or gives you the text to paste.

## Settings
- `CLAUDE_HUD_DISABLE`: 1 blanks the HUD for one session and keeps the statusLine setting
- `CLAUDE_HUD_ALLOW_EXTRA_CMD`: 1 allows --extra-cmd to run a shell command on every refresh
- `CLAUDE_CONFIG_DIR`: Moves the config folder; settings then live under it
- `~/.claude/plugins/claude-hud/config.json`: All display options; change them through /hud
- `display.externalUsagePath / display.externalUsageWritePath`: Read or write a local usage snapshot file; edit config.json by hand for these
- `statusLine.refreshInterval`: Seconds; keeps countdowns ticking while idle (set in settings.json)

## Examples (from the pack's own files)
- The default two lines: output format defined in README.md
- Optional activity lines: output format defined in README.md

## Steps only the person can do
- Approve the settings.json change when /hud runs install (and say yes or no to replacing another status line) (Claude Code permission prompt) Then: The status line points at the HUD from the next message
- Install Node.js 22.18+ if no supported Node is on the machine (https://nodejs.org) Then: /hud reruns install with that Node
- Read the scrubbed bug report and agree before it is filed (Claude Code chat) Then: The agent files it with gh issue create, or gives the text to paste

## Mistakes to avoid
- Not: Install the plugin and expect the status line to appear on its own. Instead: Run /hud after installing and approve the setup. Why: Plugins cannot set the status line themselves, so the setup step writes settings.json
- Not: Run it on an old Node.js. Instead: Use Node.js 22.18 or later (Bun can start it, but the work runs on Node). Why: On older Node the status line shows only an upgrade line
- Not: Use hud install --replace without asking. Instead: Ask the person before replacing another tool's status line. Why: The skill allows --replace only after the user agrees
- Not: Expect usage bars with an API key, Bedrock or Vertex. Instead: Usage shows only for subscriber sessions, after the first response. Why: Those sessions send no rate limits
- Not: Set externalUsagePath or externalUsageWritePath through hud set. Instead: Edit config.json by hand for these two keys. Why: hud set refuses keys that name files the HUD reads or writes

## What leaves the machine
- A scrubbed bug report (the HUD's input with words removed, config, and your one-line note) → A public GitHub issue on jarrodwatts/claude-hud, Only when you use /hud report and agree to file it. Opt out: Do not agree, or paste the text yourself

## Lines in the pack aimed at agents (ask the person first)
- "!`node "${CLAUDE_PLUGIN_ROOT}/hud.mjs" doctor || echo '{"runtime":"none"}'`" (skills/hud/SKILL.md): Opening /hud runs the plugin's doctor command at once, before the model reads the skill; it is read-only by design
- "allowed-tools: Bash(node "${CLAUDE_PLUGIN_ROOT}/hud.mjs" doctor*) Bash(node "${CLAUDE_PLUGIN_ROOT}/hud.mjs" schema*) Bash(node "${CLAUDE_PLUGIN_ROOT}/hud.mjs" preview*) Bash(node "${CLAUDE_PLUGIN_ROOT}/hud.mjs" report*)" (skills/hud/SKILL.md): Four subcommands run without a permission prompt; install and set still ask
- "(2) install Node 24 with the user's own version manager (nvm, fnm, mise, volta, asdf) without changing their default, then (1)" (skills/hud/SKILL.md): Installing a Node runtime changes the machine; ask the person first

## May I use it like this?
- commercial-app: yes (MIT: keep the license notice)
- redistribute-files: yes (MIT: keep the copyright and permission notice in copies)
- client-work: yes (MIT)

## Which one to pick
- If You want a live status line under the Claude Code input with context, usage, tools and agents: skill:jarrodwatts/claude-hud
- If You want a separate dashboard to monitor Claude Code and Codex sessions in the browser: skill:hoangsonww/Claude-Code-Agent-Monitor
- If You want tips for using Claude Code, with a simple custom status line script among them: skill:ykdojo/claude-code-tips

## Works well with
- agent:claude-code: The HUD is a Claude Code status line plugin

## Works in and needs
- Works in Claude Code: plugin
- Needs Node.js 22.18 or later: The HUD runs on Node
- Needs Claude Code v2.1.260 or later: It reads the status line input of newer Claude Code
- Needs gh CLI (optional): Only to file a bug report from /hud

## How to tell it works
Install it, run /hud and approve the setup. Send any message: two lines appear under the input with the model, your project and a context bar. Then type "/hud show tool activity" and approve the preview; a tools line appears.

## Safety
The author describes the display code as running in a locked-down Node process and asks that security issues be reported through GitHub's private advisory flow. The optional extra command runs any shell command you give it: only use your own.
