ClaudeCodeMod

All shelves / Mods / Usage

hud

By lycfyi

hud is a Claude Code usage mod by lycfyi.

Draws a heads-up display above the prompt: context fill, repo state, turn progress with time estimates, and a recap with an automatic /whats-next after a break.

Draws

Install

The marketplace name is yskills.

In Claude Code
/plugin marketplace add lycfyi/yskills
/plugin install hud@yskills
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.2.0
License
MIT
Repo stars
24
Last change
2026-11-02

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Runs a command when you press
  • Calls another program on this machine

Install it one way only: two copies draw two HUDs. From a clone, claude --plugin-dir mods/hud tries it for one session. The task row depends on the model calling the progress tool. When the main conversation has been idle for the /autonext delay, 10 minutes by default, the HUD forks the session once for the recap and then runs /whats-next once; whats-next is in yskills, and /autonext off stops it. Timed breaks (HUD_RESTS=on) and done notes (HUD_DONE_LOG=on) are off by default, and the break animation draws only in a terminal. Recap and whats-next do not run in -p or SDK sessions. HUD_LANG=zh switches the text to Chinese.

The marketplace, yskills, also holds yskills, skills for coming back to a session (/whats-next, /stale-check, /cold-read) and an idle-return hook. Keeping context, limits, and where the session stands in view is why this page files it under usage. hud-hoobnn draws model, context, and plan-usage gauges above the prompt, with git, the running tools, and a one-line task summary. usage-hud draws model, effort, context, and the 5-hour and weekly limits in a panel, and a pixel crab above the prompt that acts out the tool. This one is quiet while all is well, like an Airbus ECAM display, and has up to five rows: context with the /context glyphs, tokens, cost, and the 5-hour and 7-day limits, yellow at 70% and red at 85% with one toast at 85%; up to 3 repos with branch, ahead and behind, and changes split into mine and others; the step the model is on with one estimate at the start; a three-line recap of Goal, Last, and Next after you step away; and the minutes to each break that is on. The model gets a progress tool and a short system-prompt section of about 210 words with every request, and compaction gets four extra lists to keep.

Demo

The author's screenshot in two terminal windows of shop-api. While it works: a running test, then the heads-up display above the prompt with a context bar at 45% (90k of 200k), cost $3.12, 5-hour 12% and 7-day 31%, a repo line with the branch fix/upload-retry, and a task line with a progress bar, an estimate of 12 min and the elapsed time. When you come back: the same display after a break with a recap of Goal, Last and a Next line, Don't close: CI is still running on PR #57. The project and task are the author's samples.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • session.measureWhen usage is measured
  • tool.callAround a tool call, where it can hold oneEditWriteNotebookEdit
  • session.compactWhen the context is compacted
  • tool.describeA Claude Code event
  • prompt.composeWhile you write a prompt
  • prompt.submitWhen you send a prompt
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • command.runWhen you run its slash command
  • ui.messageAdds a message to the session
  • ui.renderDraws into the sessionSpinnerAbovePrompt

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 6 files. They load when you open them.

Facts

Author
lycfyi
Category
Usage
Marketplace
yskills
Repo
lycfyi/yskills
Folder
mods/hud
Version
0.2.0
License
MIT
Repo stars
24
Last change
2026-11-02
Language
TypeScript
Files
10

Other mods in Usage

automodemralexivyHolds a commandPicks the model and effort for each prompt, draws a bar above the prompt with context, cache countdown, cost, and savings, and denies git writes from subagents.agent-tracekrika2810Draws a pane beside the chat that lists every step after a prompt: each model request, tool call, and subagent, with time, tokens, context, and API-rate cost.idle-compactdavidarCompacts an idle session after 50 minutes, while the prompt cache is still warm, and pins a status line under the prompt with the before and after sizes.compact-timinglbzepoqoLets the model mark task boundaries and compacts at the end of a turn once the context passes 200k tokens, then resumes the work; a toast shows each compaction.context-metervumichienDraws a band above the prompt with what fills the context window by category, a countdown to when the prompt cache expires, and a Compact button.usage-meterhamzaferDraws the 5-hour and 7-day plan limits as small bars above the prompt, with the reset countdown and what this session cost.context-barhamzaferDraws the context window as one stacked bar, a color per category, with token counts and the compaction point.token-weatherAnthropicDraws a one-line forecast of the context window above the prompt. Fuller goes from clear toward a storm.token-weatherhamzaferDraws the context-window forecast above the prompt, plus how long the prompt cache has left.cache-clockhamzaferDraws a prompt-cache line under the status line: time left while warm, hits and misses, and how many tokens the next message re-caches once it goes cold.openai-balancehamzaferDraws your OpenAI API credit above the prompt: an estimated balance, today's spend, where the money went, and the last call.cost-meterSingh-APHolds a commandDraws session cost, context fill, and the 5-hour and 7-day windows on the status line, plus each turn's cost. An optional budget asks before the next tool call.
All 183 in Usage