All notable changes to Claude HUD will be documented in this file.
display.showDailyCostoption to show today's cumulative spend across sessions (Today $12.34), accumulated from the native stdincost.total_cost_usdinto a per-day ledger that resets at local midnight (#695).
- Refresh the prompt-cache clock when a request starts rather than when its response arrives, ignoring client-side slash command records, interrupt markers, and subagent requests (#719).
- Treat Agent
tool_resultpayloads withisAsyncorstatus: async_launchedas background so the agents line stays up until the task-notification (#734). - Pass
--no-optional-locksongit diff --numstatso a timed-out statusline poll cannot leave.git/index.lockbehind (#726). - Render the prompt-cache clock as
until <time>so the value reads as expiry, not write time (#727).
- Add the ten missing config options and the absolute-path caveat for
display.externalUsagePathtoREADME.zh.md(#730).
- Load optional per-config-directory overrides from
$CLAUDE_CONFIG_DIR/claude-hud.jsonwhile preserving shared plugin settings (#714). display.effortFormatoption (full|symbol|text) to render the effort indicator as symbol only or level text only;fullkeeps the current output (#691).
- Bound config file size and nesting, reject symlinked or prototype-sensitive config input, and sanitize terminal-bound config labels (#714).
- Anchor prompt-cache expiry to the main-session request, ignore subagent cache writes, and detect 5-minute or 1-hour cache tiers while preserving the configured fallback (#702).
- Bound transcript request identifiers before grouping prompt-cache writes (#702).
- Update the development-only
@types/nodepackage from 26.1.2 to 26.2.0 (#711).
- Remove completed agents on the next HUD refresh after one minute and keep completed history from displacing running agents (#704).
- Sanitize, validate, and bound agent labels before terminal output (#704).
- Read bounded model-scoped usage windows from an optional external snapshot while preserving explicit empty stdin snapshots (#690).
- Configure wall-clock hour cycles and optional seconds without changing the locale-driven default (#692).
- Right-align an ordered suffix of merged expanded rows with
display.rightAlign(#693). - Price Claude Opus 5, Sonnet 5, and Fable 5 in local cost estimates, including Sonnet's time-limited introductory rate (#694).
- Detect the official MiniMax Anthropic-compatible endpoints and estimate MiniMax M2.7 token/cache cost without guessing MiniMax M3's request-tier pricing (#696).
- Surface bounded MCP server failures when MCP activity or config counts are enabled, clearing a failure after a later successful result (#699).
- Cache derived opt-in authentication labels against the source profile identity (#700).
- Prevent short-lived Windows statusline processes from orphaning their owned Git process trees, with bounded output, timeouts, and non-interactive read-only Git behavior (#703).
- Silence
/dev/ttyprobe failures during setup command execution (#686). - Treat Unicode variation selectors as zero-width in terminal-cell calculations (#687).
- Count completed and progressive assistant token records after zero-value transcript placeholders (#698).
- Preserve configured element order in right-aligned rows and cap hostile terminal/config widths (#693).
- Sanitize, bound, cache-version, and opt-in MCP error names before terminal rendering (#699).
- Validate and version derived-auth cache entries, reject symlink/oversized reads, use private permissions, and write through unique exclusive temporary files (#700).
- Update the development-only
@types/nodepackage from 26.1.1 to 26.1.2 (#697).
- Support
pathLevels: "full"to show the entire absolute working directory in the project badge, instead of being capped at the last 3 segments (#678). - Allow users to reorder visible first-line segments with
projectLineOrderwhile preserving the existing default output (#680).
- Show each agent's resolved runtime model when the launch input omits a model alias, while preserving unknown and provider-qualified model identifiers (#679).
- Keep full working-directory paths terminal-safe across compact, expanded, and reordered layouts by stripping control and bidirectional characters before rendering (#678, #680).
- Align context, usage, and opt-in memory progress bars by terminal cell width in CJK locales, including merged and narrow layouts (#673).
- Render bounded model-scoped weekly usage windows from Claude Code statusline input in expanded and compact layouts, including remaining-value, reset-time, threshold, and custom-color modes (#669).
- Sanitize and bound model-scoped usage labels and values before terminal rendering, and keep scoped-only input from overwriting shared external usage snapshots (#669).
- Clean compiled output before every build and enforce source-to-artifact parity so removed modules cannot remain in release packages (#670).
- Show a useful git ref for detached HEAD sessions by preferring exact tags and falling back to a linked short commit label (#664).
- Preserve slash-separated branch names in GitHub branch links so clicking the HUD branch opens the expected remote branch (#664).
- Allow opt-in
--extra-cmdhooks to use the last non-empty line of sanitized plain-text output in addition to JSON labels (#664). - Strip control and bidirectional characters from Git refs in compact rendering (#664).
- Restore the default 80% weekly-usage threshold when the setting is omitted or invalid, preventing the weekly segment from appearing at 0% while preserving the existing usage and environment defaults (#662).
- Add opt-in routed-provider cost display for Bedrock and Vertex sessions, with explicit native-versus-estimated labeling (#648).
- Add opt-in authentication method and account display with terminal-safe truncation and active API-key precedence (#652).
- Add Traditional Chinese (
zh-Hant/zh-TW) across configuration, onboarding, and rendered labels (#645). - Add opt-in transcript and automatic model-source modes for proxy users, with bounded terminal-safe model labels (#643).
- Show ultracode sessions as
ultracode(xhigh)from transcript attachment and/effortsignals (#640). - Move locale-specific time layout into named interpolation patterns so translations control word order and spacing (#647).
- Keep effort suffixes attached to model names and enforce opt-in render guards consistently (#650).
- Deduplicate repeated assistant usage by bounded message IDs while preserving the idless transcript fallback (#646).
- Show cache creation and cache read tokens in compact session-token summaries (#653).
- Count symlinked rule files and directories with cycle-safe, bounded traversal and cache invalidation (#644).
- Handle non-ASCII checkout paths correctly in direct-entrypoint tests (#655).
- Drop the
ps-based parent-process--effortfallback (#471); the effort label now comes solely from Claude Code's stdin, which carries the level directly.
- Bump
@types/nodefrom 25.9.3 to 26.1.1 (#657). - Bump TypeScript from 6.0.3 to 7.0.2 (#656).
- Add
display.showProvideranddisplay.providerNameso custom proxy users can optionally show provider labels before the model name in compact and expanded layouts (#629).
- Extract shared model badge formatting so compact and expanded layouts keep provider labels and effort suffixes consistent (#629).
- Harden and document external usage snapshot read paths as absolute-only, with focused regression coverage for relative-path rejection (#637).
- Add regression coverage for private
speed-cachedirectory and cache file permissions introduced by the cache hardening work (#637).
- Require explicit
CLAUDE_HUD_ALLOW_EXTRA_CMDopt-in before running--extra-cmd, and document the local command trust boundary (#619). - Merge missing seven-day usage from a configured external snapshot when stdin only supplies the five-hour usage window (#617).
- Correct Opus 4.5+ local cost estimates to the current standard Anthropic rate while keeping older Opus 4.0/4.1 pricing unchanged (#625).
- Add opt-in session compaction count display from reliable transcript
compact_boundaryentries (#609). - Add
CLAUDE_HUD_DISABLEas a per-session environment kill switch that exits before stdin, transcript, config, or git work (#610).
- Sync
/claude-hud:configuredocumentation with current display options, including compaction count, Skills, MCP, prompt cache, memory, cost, and reset-label controls (#613).
- Bump
@types/nodefrom 25.9.2 to 25.9.3 (#614).
- Add default-off Skills and MCP activity lines, with sanitized active names and Skill-tool suppression when the Skills line is enabled (#527, #595).
- Add optional advisor model display with sanitized transcript-derived and override labels (#573).
- Add
display.autoCompactWindowsupport for context denominator calculations, including token-display denominator handling (#589).
- Render external
balance_labelvalues alongside stdinrate_limitsinstead of treating them as mutually exclusive (#598, #599). - Preserve inherited terminal width in setup-generated statusline commands before probing
/dev/tty, fixing narrow-pane wrapping/flicker in terminals without a controlling TTY (#581). - Use a lightweight Windows Node launcher for PowerShell/cmd setup instead of a PowerShell wrapper on every statusline refresh, reducing Windows render-time overhead while preserving update discovery (#555).
- Collapse whitespace in multiline Bash tool targets before truncation so the tools line stays single-line (#594).
- Harden advisor, Skills, and MCP labels against control characters, terminal escapes, bidi controls, and oversized activity names (#573, #595).
- Validate
autoCompactWindowas an integer before using it in context calculations (#589).
- Clarify in release docs that
.claude-plugin/plugin.jsonis the Claude Code update/cache version source (#591).
- Bump
@types/nodefrom 25.9.1 to 25.9.2 (#593). - Refresh the lockfile to clear the transitive
brace-expansionaudit advisory.
- Effort-level display in the model bracket (#471).
- Native stdin
cost.total_cost_usdsupport, external usage snapshot fallback, prompt-cache countdown, and optional JSON snapshots for stdinrate_limits(#381, #477, #478, #570). - Vertex AI provider detection with cost estimation disabled for Vertex sessions (#479).
- Usage display controls for reset labels, absolute/relative reset times, compact display, remaining mode, elapsed/percentage mode, and third-party balance labels (#415, #421, #433, #536, #541, #572).
- Layout and configuration controls for expanded merge groups, wrapped branch display, terminal width fallbacks,
/add-dirworkspace directories, progress bar colors, tool name wrapping/truncation, and custom line placement (#474, #476, #501, #502, #505, #571, #575). - Session start date, last response timestamp, and Skill tool target display (#497, #537).
- Setup is more defensive around marketplace install paths, Windows runtime guidance, Git Bash/MSYS routing, existing statusline backups, and PowerShell wrapper generation (#399, #473, #532, #538, #546, #567).
- Rendering now handles narrow terminals, unknown terminal widths, CJK ambiguous-width glyphs, branch links, progress-label padding, OSC 8 hyperlinks, and tool wrapping more consistently (#427, #439, #443, #489, #509, #518, #561, #571).
- Chinese documentation was added and later synced with the English README (#435, #557).
- Bounded stdin reads to prevent statusline hangs (#378).
- Context and cache behavior for initial zero-percent frames, post-compact resets, live zero-percent usage, nonzero token totals with zero usage, and fallback todo rendering (#430, #460, #492, #508, #579).
- Transcript and task state handling for default subagent labels, duplicate-content
TodoWritetask IDs, background-agent timing, stale transcript agent caches, and adjacent session usage deduplication (#455, #456, #515, #560, #579). - Git and render correctness for renamed files, quoted arrow filenames, Unicode paths, line diffs, and OSC link truncation (#451, #543, #561).
- Platform-specific behavior for Bedrock provider labels, Linux memory parsing, Windows console flashes, unsafe progress-bar code points, and PowerShell setup output (#468, #523, #567).
- Speed and cost display edge cases, including native cost fallback, speed cache scoping, short-window accumulation, Claude Haiku 4.x pricing, enterprise aliases, and effort schema changes (#440, #453, #486, #491, #496).
- Windows + PowerShell
/claude-hud:setupnow writes astatusline.ps1wrapper with a guarded width fallback and corrected version-directory glob (#521). - Added Windows PowerShell 5.1 guidance for writing
settings.jsonwithout a UTF-8 BOM.
- Bumped TypeScript and
@types/nodedevelopment dependencies across the 0.1.0 cycle (#383, #426, #465, #533, #554, #565).
- Chinese (
zh) HUD labels as an explicit opt-in, while keeping English as the default. - Guided language selection in
/claude-hud:configureso users can choose English or Chinese without hand-editing JSON. - Offline estimated session cost display via
display.showCostfor known Anthropic model families, derived from local transcript token usage only. - Session token totals, output-style display, git push count threshold coloring, configurable model badge formatting, and a custom model override.
- Git file diff rendering with per-file and total line deltas, plus clickable OSC 8 file links where supported.
- Usage display now relies only on Claude Code's official stdin
rate_limitsfields. Background OAuth usage polling, related cache/lock behavior, and credential-derived subscriber plan labels were removed. - Setup and configure flows now better support simple onboarding: Windows setup prefers Node.js guidance, the GitHub star prompt includes
ghcompatibility guidance, and configure now exposes language as a first-class guided choice. - Plugin detection, config caching, and transcript-derived activity/session metadata are more robust and better covered by tests.
- Stabilize Claude Code version cache behavior across resolved binary paths and mtimes, fixing Node 20 CI failures.
- Stop guessing auth mode from environment variables alone.
- Preserve task IDs across
TodoWrite, detect transcript agents recorded asAgent, and improve narrow-terminal wrapping including OSC hyperlink width handling. - Improve macOS memory reporting, config cache invalidation, and fallback rendering when terminal width is unavailable.
- Clarify official usage-data behavior and keep Bedrock/unknown pricing cases hidden rather than showing misleading estimates.
- Configurable HUD color overrides, including named presets, 256-color indices, and hex values.
display.customLinesupport for a short custom phrase in the HUD.- New opt-in display toggles for session name, combined context mode (
display.contextValue: "both"), Claude Code version, and approximate system RAM usage in expanded layout.
- Setup and plugin detection now better handle
CLAUDE_CONFIG_DIR, Windows shell quoting, and Bun--env-fileinstalls without inheriting project environment files. - Usage display now prefers Claude Code stdin
rate_limitsdata when available, still falls back to the existing OAuth/cache path, and presents weekly-only/free-user usage more cleanly. - Context percentages and token displays now follow Claude Code's reported context window size, including newer 1M-context sessions, with a lower fallback autocompact estimate that better matches
/context. - Usage text output now keeps the last successful values visible while syncing, shows the 7-day reset countdown when applicable, and clarifies that standard proxy environment variables are the supported way to route Anthropic traffic.
- Progress bars and expanded-layout output now adapt more cleanly to narrow terminal widths.
- Setup is more reliable in sessions that previously failed to surface the HUD until Claude Code restarted, and plugin command discovery no longer fails with unknown-skill errors after install.
- Usage handling is more resilient under OAuth token refreshes, proxy tunnels, explicit TLS overrides, zero-byte lock files, stale-cache recovery, and rate-limit edge cases that previously caused repeated
429or syncing failures. - Account-scoped credential lookup and plugin selection are more reliable for multi-account setups and multiple installed plugin versions.
- Expanded-layout rendering now preserves speed, duration, extra labels, and weekly-only usage output correctly.
- Tool execution no longer scrolls the terminal to the top, and transcript reparsing now avoids repeatedly caching partial parse results on large histories.
- Add Usage API timeout override via
CLAUDE_HUD_USAGE_TIMEOUT_MS(default now 15s).
- Setup instructions now generate shell-safe Windows commands for
win32 + bashenvironments (#121, #148). - Bedrock startup model labels now normalize known model IDs when
model.display_nameis missing (#137). - Usage API reliability improvements for proxy and OAuth token-refresh edge cases:
- Respect
HTTPS_PROXY/ALL_PROXY/HTTP_PROXYwithNO_PROXYbypass. - Preserve usage and plan display when keychain tokens refresh without
subscriptionTypemetadata. - Reduce false
timeout/403usage warnings in proxied and high-latency environments (#146, #161, #162).
- Respect
- Render output now preserves regular spaces instead of non-breaking spaces to avoid vertical statusline rendering issues on startup (#142).
- Session name display in the statusline (#155).
display.contextValue: "remaining"mode to show remaining context percent (#157).- Regression tests for
CLAUDE_CONFIG_DIRpath handling, keychain service resolution fallback ordering, and config counter overlap edge cases.
- Prefer subscription plan labels over API env-var detection for account type display (#158).
- Usage reset time formatting now switches to days when the reset window is 24h or more (#132).
- Respect
CLAUDE_CONFIG_DIRfor HUD config lookup, usage cache, speed cache, and legacy credentials file paths (#126). - Improve macOS Keychain credential lookup for multi-profile setups by using profile-specific service names with compatibility fallbacks.
- Fix config counting overlap detection so project
.claudefiles are still counted whencwdis home and user scope is redirected. - Prevent HUD rows from disappearing in narrow terminals (#159).
- Handle object-based legacy layout values safely during config migration (#144).
- Prevent double-counting user vs project
CLAUDE.mdwhencwdis home (#141).
- Bump
@types/nodefrom25.2.3to25.3.3(#153). - Bump
c8from10.1.3to11.0.0(#154).
- Redesigned default layout — clean 2-line display replaces the previous multi-line default
- Line 1:
[Opus | Max] │ my-project git:(main*) - Line 2:
Context █████░░░░░ 45% │ Usage ██░░░░░░░░ 25% (1h 30m / 5h)
- Line 1:
- Model bracket moved to project line (line 1)
- Context and usage bars combined onto a single line with
│separator - Shortened labels: "Context Window" → "Context", "Usage Limits" → "Usage"
- Consistent
dim()styling on both labels - All optional features hidden by default: tools, agents, todos, duration, config counts
- Bedrock provider detection (#111)
- Output speed display (#110)
- Token context display option (#108)
- Seven-day usage threshold config (#107)
- Setup onboarding now offers optional features (tools, agents & todos, session info) before finishing
display.showSpeedconfig option for output token speed
- Show API failure reason in usage display (#109)
- Support task todo updates in transcript parsing (#106)
- Keep HUD to one line in compact mode (#105)
- Use Platform context instead of uname for setup detection (#95)
- Expanded multi-line layout mode - splits the overloaded session line into semantic lines (#76)
- Identity line: model, plan, context bar, duration
- Project line: path, git status
- Environment line: config counts (CLAUDE.md, rules, MCPs, hooks)
- Usage line: rate limits with reset times
- New config options:
lineLayout:'compact'|'expanded'(default:'expanded'for new users)showSeparators: boolean (orthogonal to layout)display.usageThreshold: show usage line only when >= N%display.environmentThreshold: show env line only when counts >= N
- Default layout is now
expandedfor new installations - Threshold logic uses
max(5h, 7d)to ensure high 7-day usage isn't hidden
- Ghost installation detection and cleanup in setup command (#75)
- Existing configs with
layout: "default"automatically migrate tolineLayout: "compact" - Existing configs with
layout: "separators"migrate tolineLayout: "compact"+showSeparators: true
- Native context percentage support for Claude Code v2.1.6+
- Uses
used_percentagefield from stdin when available (accurate, matches/context) - Automatic fallback to manual calculation for older versions
- Handles edge cases: NaN, negative values, values >100
- Uses
display.autocompactBufferconfig option ('enabled'|'disabled', default:'enabled')'enabled': Shows buffered % (matches/contextwhen autocompact ON) - default'disabled': Shows raw % (matches/contextwhen autocompact OFF)
- EXDEV cross-device error detection for Linux plugin installation (#53)
- Context percentage now uses percentage-based buffer (22.5%) instead of hardcoded 45k tokens (#55)
- Scales correctly for enterprise context windows (>200k)
- Remove automatic PR review workflow (#67)
- Git status: move
--no-optional-locksto correct position as global git option (#65) - Prevent stale
index.lockfiles during git operations (#63) - Exclude disabled MCP servers from count (#47)
- Reconvert Date objects when reading from usage API cache (#45)
- Bump @types/node from 25.0.3 to 25.0.6 (#61)
- Configuration system via
~/.claude/plugins/claude-hud/config.json - Interactive
/claude-hud:configureskill for in-Claude configuration - Usage API integration showing 5h/7d rate limits (Pro/Max/Team)
- Git status with dirty indicator and ahead/behind counts
- Configurable path levels (1-3 directory segments)
- Layout options: default and separators
- Display toggles for all HUD elements
- Git status spacing:
main*↑2↓1→main* ↑2 ↓1 - Root path rendering: show
/instead of empty - Windows path normalization
- Config system, layouts, path levels, git toggle by @Tsopic (#32)
- Usage API, configure skill, bug fixes by @melon-hub (#34)
- Display git branch name in session line (#23)
- Display project folder name in session line (#18)
- Dynamic platform and runtime detection in setup command (#24)
- Remove redundant COMPACT warning at high context usage (#27)
- Skip auto-review for fork PRs to prevent CI failures (#25)
- Bump @types/node from 20.19.27 to 25.0.3 (#2)
- Add CI workflow to build dist/ after merge - closes attack vector where malicious code could be injected via compiled output in PRs
- Remove dist/ from git tracking - PRs now contain source only, CI handles compilation
- Add 45k token autocompact buffer to context percentage calculation - now matches
/contextoutput accurately by accounting for Claude Code's reserved autocompact space - Fix CI caching with package-lock.json
- Use Opus 4.5 for GitHub Actions code review
- Setup command now auto-detects installed plugin version (no manual path updates needed)
- Setup prompts for optional GitHub star after successful configuration
- Remove husky pre-commit hook (CI now handles dist/ compilation)
- Bump c8 from 9.1.0 to 10.1.3
Initial release of Claude HUD as a Claude Code statusline plugin.
- Real-time context usage monitoring with color-coded progress bar
- Active tool tracking with completion counts
- Running agent status with elapsed time
- Todo progress display
- Native token data from Claude Code stdin
- Transcript parsing for tool/agent/todo activity