ClaudeCodeMod

All shelves / Mods / Usage

session-hud

By bradtraversy

session-hud is a Claude Code usage mod by bradtraversy.

Draws a strip above the prompt with the git branch, warned on main, context used against a target you set, and weekly usage, and a Details pane of the rest.

Draws

Install

The marketplace name is traversy-mods.

In your shell
claude plugin marketplace add bradtraversy/traversy-claude-mods
claude plugin install session-hud@traversy-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.5.5
License
MIT
Repo stars
6
Last change
2026-10-21

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Sees tool calls

Needs Claude Code 2.1.287 or newer in the terminal, or a desktop app with Claude Code 2.1.286 or newer. Restart the session or run /reload-plugins after installing. The branch is green on a working branch, and yellow on main, master, or a detached HEAD. It checks every five seconds, and at once after a Bash command Claude runs. The context meter measures against a personal target, 300k by default, from 10k to 10m, and turns yellow at 70 percent and red at 90. The target does not change Claude's context window or when it compacts. Details opens Session Details, with the context used and the headroom left, the 5-hour and weekly usage with their reset times, the session cost when Claude Code reports one, and the context broken down by messages, system content, tool schemas, memory, skills, agents, and MCP servers. That breakdown runs only when you open Details or press Refresh. Change the target there, or in /config.

The install name is session-hud. This page adds the author's name. The marketplace name is traversy-mods. The marketplace also holds tool-cards and next-steps. This one installs on its own. The context, the weekly usage, and the session cost are why this page files it under usage. session-hud-ofeklevy11 draws four cards above the prompt: context left, the 5-hour limit, prompt clocks, and what the session cost. statuspane draws a card with the model, a context gauge, the 5-hour and 7-day limits, the git branch, and the session cost. This one measures context against a target you choose, and its pane breaks the context down by kind. In the source, it reads the branch with git.

Demo

The Session HUD strip above the prompt: the branch chore/readme-polish in green, Context at 37% of 300k as a bar, Week 1%, and a Details button.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • tool.callAround a tool call, where it can hold oneBash
  • session.measureWhen usage is measured
  • ui.renderDraws into the sessionAbovePromptPane

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, 5 files. They load when you open them.

Facts

Author
bradtraversy
Category
Usage
Marketplace
traversy-mods
Repo
bradtraversy/traversy-claude-mods
Folder
session-hud
Version
0.5.5
License
MIT
Repo stars
6
Last change
2026-10-21
Language
TypeScript
Files
7

Other mods in Usage

time-blamekaranb192Splits each turn's time between Claude, each tool, your approvals, and the rest, under the answer, and /blame opens a panel of the whole session's split.subagent-tunerKruhlikauHolds a commandPicks each subagent's model and effort by asking you in a pane, from a recommendation for the task, or from your saved default, with a band above the prompt.cockpitdrkokorevHolds a commandOpens a panel beside the transcript with context, rate limits, cost, subagents, tool calls, changed files, and tests, and asks before rm -rf or a force push.cache-refresherolddonkeyDraws a bar above the prompt with the time until the prompt cache expires and what a rebuild would cost, and can refresh the cache while you are away.context-alertnathanonnOpens a question dialog when the context window reaches 40 percent, offering to write a handoff doc and then compact, write one only, or compact now.stintdigital-stoic-orgDraws a band above the prompt with context fill, plan headroom, and the stint count, and /pit saves notes, clears, and starts the fresh context from them.orca-movemutlumehmetMoves a session to a twin account as one nears its usage limit: it runs /exit once the prompt box is empty, or shows a toast asking you to clear it.model-relaycablateOpens a panel above the prompt to switch this window to another model provider, routes subagents to providers, and fails over when Claude returns a 429.rtk-gainrtk-aiDraws what RTK saves while Claude works: a band above the prompt, the saving in the spinner, and a /rtk-gain pane where a viking breaks the saved tokens.tokendoctorrsaryevShows where your Claude Code tokens went, audits your settings with 33 checks, and changes a setting only after a dialog shows the change and you press Apply.catnapLippIncHas Claude compact at a clean break: from 50% of the context it asks Claude to finish the piece it is on, write a handoff, and compact, then carry on by itself.pitwallaxlaserDraws live cost, cache, and limits above the prompt and in a side panel, with a card per subagent you can stop, and fourteen themes that repaint Claude Code.
All 183 in Usage