All shelves / Mods / Usage
context-meter
By midudev
context-meter is a Claude Code usage mod by midudev.
Draws 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.
Draws
Install
The marketplace name is better-claude.
/plugin marketplace add midudev/better-claude /plugin install context-meter@better-claude
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.1.0
- License
- MIT
- Repo stars
- 194
- Last change
- 2026-10-22
What it can reach
- Draws in the session
- Reads usage or context figures
The meter reads like context 58%. It is dim gray under 50 percent, yellow from 50 percent, a good moment for /compact, and red from 75 percent, compact now or start a new session. warnAt and dangerAt in /config set the two thresholds. The footer stays as it is, so it sits beside Sub Meter. Before the first response of a session, fresh or resumed, and right after a compaction or a rewind, the meter counts the window once, as /context does, and shows it with a ~ until the next response brings the real figure. Every 2 seconds it reads the session's usage again, a free call, to catch a resume or a rewind. Whatever the engine or another plugin draws in that band, such as Image Preview's chips, stays above it.
The marketplace name is better-claude. The marketplace also holds after, use-haiku, think-hard, token-meter, sub-meter, image-preview, commit, narrator, and time-machine. This one installs on its own. The context figure is why this page files it under usage. context-lens pins how full the context window is and what the last turn added. token-weather draws a one-line forecast of the context window above the prompt. This one shows only the fill, colored by when to compact.
Demo

What it hooks into
session.startWhen a session startssession.endWhen a session endssession.measureWhen usage is measuredui.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 README and source, 4 files. They load when you open them.
Facts
- Author
- midudev
- Category
- Usage
- Marketplace
- better-claude
- Folder
- plugins/context-meter
- Version
- 0.1.0
- License
- MIT
- Repo stars
- 194
- Last change
- 2026-10-22
- Language
- TypeScript
- Files
- 7