All shelves / Mods / Usage
session-meter
By arasovic
session-meter is a Claude Code usage mod by arasovic.
Draws a pane of context by category, the 5-hour and 7-day windows and their pace, and the last 30 tool calls and model requests.
Draws
Install
The marketplace name is claude-code-mods.
claude plugin marketplace add arasovic/claude-code-mods claude plugin install session-meter@claude-code-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.4.25
- License
- MIT
- Repo stars
- 7
- Last change
- 2026-10-24
What it can reach
- Draws in the session
- Reads usage or context figures
- Sees tool calls
Tested on Claude Code 2.1.296. Restart after installing. The marketplace name is claude-code-mods, the same string hamzafer uses. Add arasovic/claude-code-mods. The pane opens on its own in a terminal 144 columns or wider; otherwise /ctx opens it. In the desktop app it does not open on its own, since the app shows context in its own sidebar, and /ctx opens it there too. Open the pane at start, in /config, turns the first opening off. The pane shows what fills the context window by category, where auto-compact kicks in, the context size over turns, and the three heaviest items; the 5-hour and 7-day windows, the time to reset, and whether the current pace lasts; recent tool calls with their target and duration; and each model request with its tokens, cache hit rate, and duration. Usage limits show after the first model reply, and pace needs about 10 minutes of history. The model gets one hidden note when the 5-hour window reaches 80%, the 7-day window 80% and 90%, or the context 60% by default, and again only after the figure drops 10 points below. The note goes in as prompt context, so the prompt cache is not invalidated. By default the model only suggests /compact or a fresh session. With contextAction set to compact, the model gets a context_reset tool, and the mod compacts at the break the model picks and sends its next step. compact-or-clear also lets it run /clear after writing a handoff of at least 200 characters, saved to ~/.claude/handoffs/. The author says everything stays local, and the pane makes no network calls.
The marketplace, arasovic's claude-code-mods, also holds turn-timeline, compact-keeper, image-peek, ci-watch, and other mods by the same author. This one installs on its own. The context and the plan limits are why this page files it under usage. context-xray, by VedantAndhale, draws a pane with the exact breakdown of what fills the context window. statuspane, by xuanji86, draws a card above the prompt with a context gauge and the 5-hour and 7-day limits, and runs /compact when you press the gauge and confirm. This one keeps the context, the limits, the tool calls, and the model requests in one docked pane, and tells the model when a limit runs high.
Demo

What it hooks into
session.startWhen a session startssession.attachA Claude Code eventcommand.runWhen you run its slash command/ctxsession.measureWhen usage is measuredprompt.submitWhen you send a prompttool.callAround a tool call, where it can hold oneturn.completeWhen a turn endsturn.stepAt each step of a turnui.renderDraws into the sessionPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/ctxShow what fills the context window and how fast limits run down
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- arasovic
- Category
- Usage
- Marketplace
- claude-code-mods
- Folder
- session-meter
- Version
- 0.4.25
- License
- MIT
- Repo stars
- 7
- Last change
- 2026-10-24
- Language
- TypeScript
- Files
- 7