context-meter

by Dongmin Yu · ★ 3 · updated 2 days ago

BandsPromptvalidates

0

Reads each model request's own usage, shows the real context fill above the prompt, vetoes an auto-compact the advisor's double-counted usage would fire, and sends the handoff nudge once at 80%.

install context-meter

Install

/plugin marketplace add AndrewDongminYoo/cc-agents-kit
/plugin install context-meter@cc-agents-kit

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
turn.stepsession.compactprompt.submitsession.endui.render
API calls
$.session.append$.session.usage$.state.get$.state.set$.store.set$.ui.resolve$.ui.toast
Draws
AbovePrompt
Can see
compactionevery prompt
Reach
level 2 of 3 drives Claudereads mod statepersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/AndrewDongminYoo/cc-agents-kit
Path in repo
plugins/context-meter
Source commit
650646d the exact code the scan read
Author
Dongmin Yu @AndrewDongminYoo
License
Apache-2.0
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from AndrewDongminYoo/cc-agents-kit

quick-look

AndrewDongminYoo/cc-agents-kit

Collects the files the agent reads, writes or names in its answer, and opens them in macOS Quick Look from a /ql command or a pane, in any terminal including Warp.

★ 3PanesGuardsCommands