context-meter is a Claude Code usage mod by AndrewDongminYoo.
Draws the measured context fill above the prompt past 50%, and skips an auto-compact set off when an advisor request makes the session read twice as full.
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
Apache-2.0
Repo stars
3
Last change
2026-10-27
What it can reach
Draws in the session
Reads usage or context figures
Tested on Claude Code 2.1.292 and 2.1.296. Hooks are read when a session starts, so restart any session that is already open. It skips an auto-compact only when the harness reads at least 20 points higher than its own reading and the real fill stays below 70%; one reading backs one skip at most, and a compaction it cannot judge goes ahead. At a measured 80% it sends one handoff nudge, which uses the context-handoff plugin's handoff skill when that is installed and asks for a self-contained handoff file otherwise.
The marketplace, cc-agents-kit, holds AndrewDongminYoo's five plugins, two of them mods; each installs on its own. Reading the context window right is why this page files it under usage. context-bar, by hamzafer, draws the context window as one stacked bar by category, with the compaction point. compact-adviser, by kunchenguid, draws a hint to run /compact when Jev calls the session a finished checkpoint. This one corrects a count: the author says a request that runs the advisor reports usage summed over its iterations, so the harness can read about twice the real fill and auto-compact a session that is only half full. It reads each request's own usage, treats an advisor request as an upper-bound estimate, and draws once the reading passes 50% or the gap reaches 20 points. midudev's context-meter is a different mod with the same install name. In the source, the nudge is added to the session with $.session.append.
Demo
Screenshot of the author's GitHub page.
What it hooks into
turn.stepAt each step of a turn
session.compactWhen the context is compacted
prompt.submitWhen you send a prompt
session.endWhen a session ends
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.