ClaudeCodeMod

All shelves / Mods / Usage

usage-hud

By ronanworks

usage-hud is a Claude Code usage mod by ronanworks.

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.

Draws

Install

The marketplace name is claude-code-mods.

In your shell
claude plugin marketplace add ronanworks/claude-code-mods
claude plugin install usage-hud@claude-code-mods
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.16.4
License
MIT
Repo stars
7
Last change
2026-10-07

What it can reach

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

The panel's and the crab's words are in Chinese, the author's words. Needs Claude Code 2.1.287 or later in the terminal, or 2.1.286 or later in the desktop app, plus Node.js on your PATH and git for the branch. Clicking and hovering need fullscreen rendering. In the terminal the panel sits under the prompt. In the desktop app it is an SVG card above the prompt. Cost is the API list-price equivalent /cost shows, and the README says subscribers are not charged that amount. Each running subagent adds a baby crab. At 80 percent context the crab turns red, and at 95 percent it flashes. At 75 percent context a compact button appears and runs /compact. Clicking the model runs /model, effort runs /effort, context runs /context, the limit cells run /usage, and the project name opens the project folder. /hud cycles full, compact, and hidden, and /hud agents opens a board of each subagent's last tool. In the macOS desktop app, Node from Homebrew or nvm may be missing from the app's PATH, and the token cell then counts from this launch only.

The install name is usage-hud. The marketplace name is claude-code-mods. The marketplace also holds html-shelf. This one installs on its own. The marketplace source is ./usage-hud. The plan limits, context, and session cost are why this page files it under usage. limits-meter draws plan limits and context above the prompt, in tokens and percent, with the model, effort, and a toast on a costly switch. pro-hud draws the 5-hour session, the week, and context above the prompt in the desktop app, plus this turn and finished tool calls as one line. This panel is those figures under the prompt, with the crab above it.

Demo

A rendered sample in the terminal: a pixel crab beside a usage panel under the prompt, with the model, context, 5-hour and weekly bars, tools, and tokens, while Claude reads, writes, and runs tests. The panel's words are Chinese.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/hud/model/effort
  • turn.startWhen Claude starts a turn
  • turn.stepAt each step of a turn
  • classic.SessionStartA Claude Code event
  • classic.SubagentStartA Claude Code event
  • classic.SubagentStopA Claude Code event
  • tool.callAround a tool call, where it can hold one
  • turn.completeWhen a turn ends
  • ui.renderDraws into the sessionTurnDurationPaneAbovePromptPromptHint
  • session.measureWhen usage is measured
  • prompt.editWhen you edit the prompt
  • prompt.submitWhen you send a prompt
  • session.compactWhen the context is compacted
  • classic.PermissionRequestA Claude Code event
  • classic.NotificationA Claude Code event

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

Slash commands 1

  • /hud用量面板 (固定在输入框下方):完整 → 精简 → 隐藏 循环;/hud agents 打开子代理看板,/hud crab 开关输入框上方散步的螃蟹

Files

The author's source, 3 files. They load when you open them.

Facts

Author
ronanworks
Category
Usage
Marketplace
claude-code-mods
Repo
ronanworks/claude-code-mods
Folder
usage-hud
Version
0.16.4
License
MIT
Repo stars
7
Last change
2026-10-07
Language
TypeScript
Files
9

Other mods in Usage

cache-maxxervayaan-labsDraws the prompt-cache time left and hit rate above the input, says why the cache was rebuilt, and can send a short request to keep it warm.session-hudofeklevy11Draws four cards above the prompt: context left, the 5-hour limit, prompt clocks, and what the session cost.token-pilotDigital-ThreadsHolds a commandFor Token Pilot, which cuts what Claude reads from code, draws tokens saved and the 5-hour and 7-day limits above the prompt, and outlines a big file Read.laya-routermarcreichelRoutes the session once from its first prompt to a model and effort, and draws that route on the status line.cache-clockray-amjadDraws a line above the prompt with the time until the prompt cache goes cold, the context fill, and a subagent clock, and has Claude write a handoff first.antiburnantiburnDraws the five-hour and weekly limits above the prompt with reset times and even-pace markers, in the terminal and the desktop Code tab.context-metermidudevDraws how full the context window is at the right end of the band above the prompt: gray, then yellow from 50 percent, then red from 75.sub-metermidudevDraws your 5-hour and weekly subscription usage at the bottom right, on the permission mode's line, with a bar and the time until it resets.token-metermidudevEnds the hint line under the prompt with the last turn's input, output, and cache tokens, and the session's running total, in color.use-haikumidudevRuns a prompt that starts with _ on Haiku, subagents included, and shows it as you type, while it runs, and under the answer.agent-usage-guardrbartoliHolds a commandAsks before a subagent starts, a heavy prompt is sent, or a tool loop runs on, from the 5-hour and weekly usage, and refuses when nobody can answer.optim-jevOqura-aiHas TypeSafe's Jev drop stale tool calls and their output when the session compacts, keeping the rest word for word, and draws a dashboard above the prompt.
All 183 in Usage