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.
claude plugin marketplace add bradtraversy/traversy-claude-mods claude plugin install session-hud@traversy-mods
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

What it hooks into
session.startWhen a session startssession.endWhen a session endstool.callAround a tool call, where it can hold oneBashsession.measureWhen usage is measuredui.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
- Folder
- session-hud
- Version
- 0.5.5
- License
- MIT
- Repo stars
- 6
- Last change
- 2026-10-21
- Language
- TypeScript
- Files
- 7