ClaudeCodeMod

All shelves / Mods / Usage

context-meter

By AndrewDongminYoo

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.

Draws

Install

The marketplace name is cc-agents-kit.

In Claude Code
/plugin marketplace add AndrewDongminYoo/cc-agents-kit
/plugin install context-meter@cc-agents-kit
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.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

The context-meter section of the cc-agents-kit README: its install line, and how it works: it reads each request's own usage, treats an advisor request as an estimate, and skips an automatic compaction when the harness reads at least 20 points higher than its reading and the reading stays below 70%; at a measured 80% it sends one handoff nudge; and it draws the reading above the prompt once it passes 50% or the gap reaches 20 points.
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.

Facts

Author
AndrewDongminYoo
Category
Usage
Marketplace
cc-agents-kit
Repo
AndrewDongminYoo/cc-agents-kit
Folder
plugins/context-meter
Version
0.1.0
License
Apache-2.0
Repo stars
3
Last change
2026-10-27
Language
Python
Files
5

Other mods in Usage

effort-cycleAnercoSteps the effort level of the agent in view with Ctrl+↑ and Ctrl+↓, and draws it as a colored meter in the footer and in each subagent's tasks list row.dotclaudeCarloArnoneHolds a commandOpens a Workspace pane of live context, rate-limit, and cost traces with ten panels, and refuses Claude's file edits until your message approves.dashbandEgonLeitnerDraws how long the prompt cache has left, the context fill, and the 5-hour and weekly limits against their pace, in the footer and as a band above the prompt.codemodeejklockGives Claude one tool that runs a JavaScript script calling the session's own tools, so only the output returns, and draws its nested calls live in the row.sidebarFayequePDocks a stats sidebar beside the chat: tasks, context, tokens, the limits or cost a session used, cache hit rate and expiry, output speed, and git.subagent-statusline-desktopGerardoFC8Draws the subagent statusline as a band above the prompt in the desktop app: model, effort, cost, context, running subagents, and the 5-hour and weekly limits.pulselineGregoryHoDraws a band above the prompt when a tool fails three times in a row, a call runs past a minute, or autocompact is a few turns off; /pulseline opens a ledger.session-radaribrahimkobeissyDocks a sidebar of limits, context, subagents, MCP servers, skills, background shells, and the task list, with a toast when a shell or agent ends.token-speedliuyejinghongDraws a line above the prompt for the main agent and each running subagent: model, effort, context fill, and the last and 24-hour output speed from Magpie.effort-routernextscapePicks the main thread's effort for each prompt with a Haiku judgment, raises it a level when a turn runs long, and shows the level on the status line.quality-routernextscapeHolds a commandPicks each prompt's effort and each subagent's model and effort with Haiku, refuses rule-breaking Workflow scripts, and shows its state on the status line.context-meternoash-xrcDraws two rows at the right of the band above the prompt: context fill, the rate-limit windows, session cost, the prompt cache, the model, and its effort.
All 183 in Usage