Curated Claude Code catalog
Updated 07.05.2026 · 19:39 CET
01 / Skill
jarrodwatts

claude-hud

Quality
9.0

The Claude HUD plugin provides a persistent, real-time statusline within your Claude Code session, offering immediate insights into context window usage, active tool execution, running agent statuses, and todo list progress. It's ideal for developers who need constant visibility into their AI's operations to optimize prompts, track task completion, and understand agent behavior without interrupting their workflow.

USP

Unlike external monitoring tools, Claude HUD integrates natively into Claude Code's statusline API, providing accurate, non-estimated token data and seamless updates every ~300ms directly in your terminal, without needing separate windows…

Use cases

  • 01Monitoring context window usage to prevent truncation
  • 02Tracking AI agent activity and subagent progress
  • 03Observing real-time tool execution (read, edit, grep)
  • 04Visualizing todo list completion within Claude Code
  • 05Optimizing prompt engineering by understanding AI's state

Detected files (1)

  • .claude-plugin/marketplace.jsonmarketplace
    Show content (662 bytes)
    {
      "name": "claude-hud",
      "owner": {
        "name": "Jarrod Watts",
        "email": "jarrodwattsyt@gmail.com"
      },
      "metadata": {
        "description": "Real-time statusline HUD for Claude Code - context health, tool activity, agent tracking, and todo progress",
        "version": "0.0.12"
      },
      "plugins": [
        {
          "name": "claude-hud",
          "source": "./",
          "description": "Real-time statusline showing context usage, active tools, running agents, and todo progress. Always visible below your input, zero config required.",
          "category": "monitoring",
          "tags": ["hud", "statusline", "monitoring", "context", "tools", "agents", "todos"]
        }
      ]
    }
    

README

Claude HUD

A Claude Code plugin that shows what's happening — context usage, active tools, running agents, and todo progress. Always visible below your input.

License Stars

Claude HUD in action

🌐 English | 中文文档

Install

Inside a Claude Code instance, run the following commands:

Step 1: Add the marketplace

/plugin marketplace add jarrodwatts/claude-hud

Step 2: Install the plugin

⚠️ Linux users: Click here first

On Linux, /tmp is often a separate filesystem (tmpfs), which causes plugin installation to fail with:

EXDEV: cross-device link not permitted

Fix: Set TMPDIR before installing:

mkdir -p ~/.cache/tmp && TMPDIR=~/.cache/tmp claude

Then run the install command below in that session. This is a Claude Code platform limitation.

/plugin install claude-hud

After that, reload plugins:

/reload-plugins

Step 3: Configure the statusline

/claude-hud:setup
⚠️ Windows users: Click here if setup says no JavaScript runtime was found

On Windows, Node.js LTS is the supported runtime for Claude HUD setup. If setup says no JavaScript runtime was found, install Node.js for your shell first:

winget install OpenJS.NodeJS.LTS

Then restart your shell and run /claude-hud:setup again.

Done! Restart Claude Code to load the new statusLine config, then the HUD will appear.

On Windows, make that a full Claude Code restart after setup writes the new statusLine config.


What is Claude HUD?

Claude HUD gives you better insights into what's happening in your Claude Code session.

What You SeeWhy It Matters
Project pathKnow which project you're in (configurable 1-3 directory levels)
Context healthKnow exactly how full your context window is before it's too late
Tool activityWatch Claude read, edit, and search files as it happens
Agent trackingSee which subagents are running and what they're doing
Todo progressTrack task completion in real-time

What You See

Default (2 lines)

[Opus] │ my-project git:(main*)
Context █████░░░░░ 45% │ Usage ██░░░░░░░░ 25% (1h 30m / 5h)
  • Line 1 — Model, provider label when positively identified (for example Bedrock, Vertex), project path, git branch
  • Line 2 — Context bar (green → yellow → red) and usage rate limits

Optional lines (enable via /claude-hud:configure)

◐ Edit: auth.ts | ✓ Read ×3 | ✓ Grep ×2        ← Tools activity
◐ explore [haiku]: Finding auth code (2m 15s)    ← Agent status
▸ Fix authentication bug (2/5)                   ← Todo progress

How It Works

Claude HUD uses Claude Code's native statusline API — no separate window, no tmux required, works in any terminal.

Claude Code → stdin JSON → claude-hud → stdout → displayed in your terminal
           ↘ transcript JSONL (tools, agents, todos)

Key features:

  • Native token data from Claude Code (not estimated)
  • Scales with Claude Code's reported context window size, including newer 1M-context sessions
  • Parses the transcript for tool/agent activity
  • Updates every ~300ms

Configuration

Customize your HUD anytime:

/claude-hud:configure

The guided flow handles layout, language, and common display toggles. Advanced overrides such as custom colors and thresholds are preserved there, but you set them by editing the config file directly:

  • First time setup: Choose a preset (Full/Essential/Minimal), pick a label language, then fine-tune individual elements
  • Customize anytime: Toggle items on/off, adjust git display style, switch layouts, or change label language
  • Preview before saving: See exactly how your HUD will look before committing changes

Presets

PresetWhat's Shown
FullEverything enabled — tools, agents, todos, git, usage, duration
EssentialActivity lines + git status, minimal info clutter
MinimalCore only — just model name and context bar

After choosing a preset, you can turn individual elements on or off.

Manual Configuration

Edit ~/.claude/plugins/claude-hud/config.json directly for advanced settings such as colors.*, pathLevels, maxWidth, threshold overrides, display.timeFormat, and display.promptCacheTtlSeconds. Running /claude-hud:configure preserves those manual settings while still letting you change language, layout, and the common guided toggles.

Chinese HUD labels are available as an explicit opt-in. English stays the default unless you choose 中文 in /claude-hud:configure or set language in config.

Options

OptionTypeDefaultDescription
languageen | zhenHUD label language. English is the default; set zh to enable Chinese labels.
lineLayoutstringexpandedLayout: expanded (multi-line) or compact (single line)
pathLevels1-31Directory levels to show in project path
maxWidthnumber | nullnullOptional fallback width used only when terminal width detection fails completely
forceMaxWidthbooleanfalseAlways use maxWidth when it is set, even if terminal width detection returns a smaller value
elementOrderstring[]["project","context","usage","promptCache","memory","environment","tools","agents","todos"]Expanded-mode element order. Omit entries to hide them in expanded mode.
display.mergeGroupsstring[][][["context","usage"]]Expanded-mode groups that should share a line when adjacent. Set [] to disable merged lines.
gitStatus.enabledbooleantrueShow git branch in HUD
gitStatus.showDirtybooleantrueShow * for uncommitted changes
gitStatus.showAheadBehindbooleanfalseShow ↑N ↓N for ahead/behind remote
gitStatus.pushWarningThresholdnumber0Color the ahead count with the warning color at or above this unpushed-commit count (0 disables it)
gitStatus.pushCriticalThresholdnumber0Color the ahead count with the critical color at or above this unpushed-commit count (0 disables it)
gitStatus.showFileStatsbooleanfalseShow file change counts !M +A ✘D ?U
gitStatus.branchOverflowtruncate | wraptruncateKeep current truncation behavior or let the git block wrap onto its own line boundary when possible
display.showModelbooleantrueShow model name [Opus]
display.showAddedDirsbooleantrueShow extra workspace directories from /add-dir (e.g. +sparkle +lib-foo); empty array renders nothing. In both layouts at most 5 dirs render (overflow shown as +N more) and basenames are truncated to 24 chars with
display.addedDirsLayoutinline | lineinlineinline puts dirs next to the project name with a +name prefix per dir; line renders them on a separate Added dirs: name1, name2 line (no + prefix, comma-separated)
display.showContextBarbooleantrueShow visual context bar ████░░░░░░
display.contextValuepercent | tokens | remaining | bothpercentContext display format (45%, 45k/200k, 55% remaining, or 45% (45k/200k))
display.showConfigCountsbooleanfalseShow CLAUDE.md, rules, MCPs, hooks counts
display.showCostbooleanfalseShow session cost using Claude Code's native cost.total_cost_usd when available, with a local estimate fallback for direct Anthropic sessions
display.showOutputStylebooleanfalseShow the active Claude Code outputStyle from settings files as style: <name>
display.showDurationbooleanfalseShow session duration ⏱️ 5m
display.showSpeedbooleanfalseShow output token speed out: 42.1 tok/s
display.showUsagebooleantrueShow Claude subscriber usage limits when available
display.usageBarEnabledbooleantrueDisplay usage as visual bar instead of text
display.usageCompactbooleanfalseDisplay usage in a shorter text form such as 5h: 25% (1h 30m); takes precedence over display.usageBarEnabled
display.showResetLabelbooleantrueShow the resets in prefix before usage countdowns
display.timeFormatrelative | absolute | bothrelativeHow reset times are shown in usage windows: countdown only (resets in 2h 30m), wall-clock time (resets at 14:30), or both (resets in 2h 30m, at 14:30)
display.sevenDayThreshold0-10080Show 7-day usage when >= threshold (0 = always)
display.externalUsagePathstring""Optional path to a local usage snapshot file used only when stdin rate_limits are missing
display.externalUsageFreshnessMsnumber300000Maximum allowed age for the external usage snapshot before it is ignored
display.showTokenBreakdownbooleantrueShow token details at high context (85%+)
display.showToolsbooleanfalseShow tools activity line
display.showAgentsbooleanfalseShow agents activity line
display.showTodosbooleanfalseShow todos progress line
display.showSessionNamebooleanfalseShow session slug or custom title from /rename
display.showClaudeCodeVersionbooleanfalseShow the installed Claude Code version, e.g. CC v2.1.81
display.showMemoryUsagebooleanfalseShow an approximate system RAM usage line in expanded layout
display.showPromptCachebooleanfalseShow a prompt cache countdown based on the last assistant response timestamp in the transcript
display.promptCacheTtlSecondsnumber300Prompt cache TTL in seconds. Keep the default for Pro, set 3600 for Max
colors.contextcolor valuegreenBase color for the context bar and context percentage
colors.usagecolor valuebrightBlueBase color for usage bars and percentages below warning thresholds
colors.warningcolor valueyellowWarning color for context thresholds and usage warning text
colors.usageWarningcolor valuebrightMagentaWarning color for usage bars and percentages near their threshold
colors.criticalcolor valueredCritical color for limit-reached states and critical thresholds
colors.modelcolor valuecyanColor for the model badge such as [Opus]
colors.projectcolor valueyellowColor for the project path
colors.gitcolor valuemagentaColor for git wrapper text such as git:( and )
colors.gitBranchcolor valuecyanColor for the git branch and branch status text
colors.labelcolor valuedimColor for labels and secondary metadata such as Context, Usage, counts, and progress text
colors.customcolor value208Color for the optional custom line

Supported color names: dim, red, green, yellow, magenta, cyan, brightBlue, brightMagenta. You can also use a 256-color number (0-255) or hex (#rrggbb).

display.showMemoryUsage is fully opt-in and only renders in expanded layout. It reports approximate system RAM usage from the local machine, not precise memory pressure inside Claude Code or a specific process. The number may overstate actual pressure because reclaimable OS cache and buffers can still be counted as used memory.

display.showCost is fully opt-in. ClaudeHUD prefers the native cost.total_cost_usd field that Claude Code provides on stdin when it is available. If that field is absent or invalid for a direct Anthropic session, ClaudeHUD falls back to the existing local transcript-based estimate so the cost line still works on older payloads. The native field is absent before the first API response in a session, so the cost display may stay hidden until then. ClaudeHUD also keeps the cost hidden for known routed providers such as Bedrock and Vertex AI, because cloud-provider billed sessions may report $0.00 or omit the field even though the session was not literally free.

display.showPromptCache is fully opt-in. When enabled, ClaudeHUD looks at the timestamp of the last assistant response in the local transcript and shows a live countdown until the prompt cache expires. The default TTL is 5 minutes (300 seconds). Set display.promptCacheTtlSeconds to 3600 if you want a 1-hour Max-style window. If the transcript does not have an assistant timestamp yet, the cache element stays hidden.

Usage Limits

Usage display is enabled by default when Claude Code provides subscriber rate_limits data on stdin. It shows your rate limit consumption on line 2 alongside the context bar.

ClaudeHUD prefers the official statusline stdin payload. If rate_limits are missing, you can opt into a local sidecar fallback by setting display.externalUsagePath to a JSON snapshot written by another tool such as a proxy. Stdin still wins whenever both sources exist.

The fallback snapshot must be fresh enough (display.externalUsageFreshnessMs) and include valid updated_at, five_hour, and/or seven_day fields. Invalid JSON, stale files, or invalid timestamps are ignored quietly.

Free/weekly-only accounts render the weekly window by itself instead of showing a ghost 5h: -- placeholder.

The 7-day percentage appears when above the display.sevenDayThreshold (default 80%):

Context █████░░░░░ 45% │ Usage ██░░░░░░░░ 25% (1h 30m / 5h) | ██████████ 85% (2d / 7d)

To disable, set display.showUsage to false.

Reset times use relative countdowns by default. Set display.timeFormat to absolute for wall-clock times or both to show both forms. This setting is manual-only today; /claude-hud:configure preserves it without editing it.

Set display.showResetLabel to false if you want shorter usage countdowns such as (3h 17m) instead of (resets in 3h 17m).

Set display.usageCompact to true if you want the shorter usage-only form, for example 5h: 25% (1h 30m). Compact usage takes precedence over display.usageBarEnabled.

Requirements:

  • Claude Code must include subscriber rate_limits data on stdin for the current session
  • Not available for API-key-only users

Troubleshooting: If usage doesn't appear:

  • Ensure you're logged in with a Claude subscriber account (not API key)
  • Check display.showUsage is not set to false in config
  • API users see no usage display (they have pay-per-token, not rate limits)
  • AWS Bedrock models display Bedrock and hide usage limits (usage is managed in AWS)
  • Google Vertex AI models display Vertex and hide cost estimates (pricing differs from Anthropic direct)
  • Claude Code may leave rate_limits empty until after the first model response in a session
  • Some Claude Code builds and subscription tiers may still omit rate_limits, even after the first response
  • If you configured display.externalUsagePath, ClaudeHUD will try that local snapshot before hiding usage
  • ClaudeHUD never falls back to credential scraping or undocumented API calls

Example fallback snapshot:

{
  "updated_at": "2026-04-20T12:00:00.000Z",
  "five_hour": {
    "used_percentage": 42,
    "resets_at": "2026-04-20T15:00:00.000Z"
  },
  "seven_day": {
    "used_percentage": 84,
    "resets_at": "2026-04-27T12:00:00.000Z"
  }
}

Example Configuration

{
  "language": "zh",
  "lineLayout": "expanded",
  "pathLevels": 2,
  "elementOrder": ["project", "tools", "context", "usage", "memory", "environment", "agents", "todos"],
  "gitStatus": {
    "enabled": true,
    "showDirty": true,
    "showAheadBehind": true,
    "showFileStats": true
  },
  "display": {
    "showTools": true,
    "showAgents": true,
    "showTodos": true,
    "showConfigCounts": true,
    "showDuration": true,
    "showMemoryUsage": true
  },
  "colors": {
    "context": "cyan",
    "usage": "cyan",
    "warning": "yellow",
    "usageWarning": "magenta",
    "critical": "red",
    "model": "cyan",
    "project": "yellow",
    "git": "magenta",
    "gitBranch": "cyan",
    "label": "dim",
    "custom": "#FF6600"
  }
}

Display Examples

1 level (default): [Opus] │ my-project git:(main)

2 levels: [Opus] │ apps/my-project git:(main)

3 levels: [Opus] │ dev/apps/my-project git:(main)

With dirty indicator: [Opus] │ my-project git:(main*)

With ahead/behind: [Opus] │ my-project git:(main ↑2 ↓1)

With file stats: [Opus] │ my-project git:(main* !3 +1 ?2)

  • ! = modified files, + = added/staged, = deleted, ? = untracked
  • Counts of 0 are omitted for cleaner display

Troubleshooting

Config not applying?

  • Check for JSON syntax errors: invalid JSON silently falls back to defaults
  • Ensure valid values: pathLevels must be 1, 2, or 3; lineLayout must be expanded or compact; maxWidth must be a positive number
  • Delete config and run /claude-hud:configure to regenerate

Git status missing?

  • Verify you're in a git repository
  • Check gitStatus.enabled is not false in config

Tool/agent/todo lines missing?

  • These are hidden by default — enable with showTools, showAgents, showTodos in config
  • They also only appear when there's activity to show

HUD not appearing after setup?

  • Restart Claude Code so it picks up the new statusLine config
  • On macOS, fully quit Claude Code and run claude again in your terminal

Requirements

  • Claude Code v1.0.80+
  • macOS/Linux: Node.js 18+ or Bun
  • Windows: Node.js 18+

Development

git clone https://github.com/jarrodwatts/claude-hud
cd claude-hud
npm ci && npm run build
npm test

See CONTRIBUTING.md for guidelines.


License

MIT — see LICENSE


Star History

Star History Chart