ClaudeCodeMod

All shelves / Mods / Usage

session-hud

By ofeklevy11

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

Draws four cards above the prompt: context left, the 5-hour limit, prompt clocks, and what the session cost.

Draws

Install

The marketplace name is claude-code-hud.

In Claude Code
/plugin marketplace add ofeklevy11/claude-code-hud
/plugin install session-hud@claude-code-hud
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
2.3.3
License
MIT
Repo stars
6
Last change
2026-10-04

What it can reach

  • Draws in the session
  • Reads usage or context figures

Needs Claude Code 2.1.287 or later. The cards draw in the terminal and the desktop app. The README says they do not show in the VS Code extension, in claude -p, or in a cloud session. The context card is a fill bar and the tokens left. Past 300K tokens it tells you to type /compact, in yellow, with a one-time toast, and past 400K it turns red. On a window under 1M those lines are 50 percent and 70 percent of the window. The 5-hour card is a fill bar and the time until the limit resets. Prompt time is two clocks: now or last for one prompt, and all for every prompt in the session, with idle time left out. Session cost is in USD. The author's Hebrew section says the bars stay green to 60 percent, yellow to 85 percent, and red above that, that a prompt of 2 minutes or more toasts when it ends, that an API-key account leaves the 5-hour card on after the first reply while the other cards still work, and that the dollar figure on a subscription is the estimated API price, not money taken off the subscription. The layout wraps with the width. It reads the context fill, the plan quotas, and the cost the session already holds, writes no files, and sends nothing.

The install name is session-hud. This page adds the author's name. The marketplace name is claude-code-hud. The context left, the 5-hour limit, and the session cost are why this page files it under usage. 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. usage-meter draws the 5-hour and 7-day plan limits as small bars above the prompt, with the reset countdown and what this session cost. These cards add the two prompt clocks beside context left, the 5-hour limit, and session cost.

Demo

Session Tracker above the prompt in the desktop app, in its narrow layout: context at 41 percent with 591K left, the 5-hour limit at 9 percent with 3h 53m to reset, last prompt 1:20, all prompts 5:47, $3.94, and a compact recommendation with a Compact now button.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • prompt.submitWhen you send a prompt
  • turn.completeWhen a turn ends
  • tool.callAround a tool call, where it can hold one
  • session.compactWhen the context is compacted
  • ui.renderDraws into the sessionAbovePrompt

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

Files

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

Facts

Author
ofeklevy11
Category
Usage
Marketplace
claude-code-hud
Repo
ofeklevy11/claude-code-hud
Folder
session-hud
Version
2.3.3
License
MIT
Repo stars
6
Last change
2026-10-04
Language
TypeScript
Files
4

Other mods in Usage

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.secondwindorchetronCompresses Bash output of 512 bytes or more through the local secondwind binary, keeps the full text one call away, and draws a pane of the net tokens saved.session-hudbradtraversyDraws 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.
All 183 in Usage