ClaudeCodeMod

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.

In your shell
claude plugin marketplace add arasovic/claude-code-mods
claude plugin install session-meter@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.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

Session pane with context, limits, tool calls and model requests
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • session.attachA Claude Code event
  • command.runWhen you run its slash command/ctx
  • session.measureWhen usage is measured
  • prompt.submitWhen you send a prompt
  • tool.callAround a tool call, where it can hold one
  • turn.completeWhen a turn ends
  • turn.stepAt each step of a turn
  • ui.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
Repo
arasovic/claude-code-mods
Folder
session-meter
Version
0.4.25
License
MIT
Repo stars
7
Last change
2026-10-24
Language
TypeScript
Files
7

Other mods in Usage

cache-timerarasovicDraws a countdown above the prompt until the prompt cache expires, then how many tokens the next message writes again.turn-footerarasovicDraws tool calls, subagents, requests, tokens, and cache hit rate under each answer, and the running tool in the spinner.search-meterarasovicDraws a status line for the model's searches: green found on the first try, yellow found after misses, red found nothing.statusline-anywhereNathanABDraws the status line you already configured, in color, above the prompt in Claude Desktop. In a terminal it stays out of the way.statuspanexuanji86Draws a card above the prompt: model, context gauge, 5-hour and 7-day limits, directory, branch, and session cost. Press the gauge and confirm to run /compact.cache-taxkaranb192Keeps the one-hour prompt cache warm while you step away, and stops a send into a cold cache once with the estimated rewrite cost.token-optimizeralexgreenshDraws a status bar above the prompt in the desktop app: session quality, context fill, a cache countdown, and the 5-hour and weekly limits, with buttons to clean up, start fresh, or keep the cache warm.context-inspectorYeonwooSungDraws what fills the context window and how much of it is waste: re-reads, near-duplicate output, and what compaction kept, with advice and its evidence.heatmaphamzaferDraws a GitHub-style grid of your Claude Code time in a pane, one square per day, with your streak, peak hours, and top projects.openrouter-balancehamzaferDraws your OpenRouter credit above the prompt: the balance with a gauge, today's spend, and the model the money mostly went to.winnowGhalebDweikatReplaces parts of a large Read, Bash, or Grep result a judge calls unneeded with a stub, a summary, and a key that brings the text back, then toasts.compact-adviserkunchenguidDraws a hint above the prompt to run /compact when Jev calls the session a finished checkpoint, and can run /compact itself if you opt in.
All 183 in Usage