Home / Claude Code mods / Cost & usage / context-meter

context-meter

context-meter is a Claude Code mod by AndrewDongminYoo that 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.

Updated 2026-11-28

What is context-meter?

context-meter is a Claude Code mod by AndrewDongminYoo that 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. It is listed under Cost & usage and has 3 GitHub stars.

TypeClaude code mod
AuthorAndrewDongminYoo
RepositoryAndrewDongminYoo/cc-agents-kit
Popularity3 GitHub stars
CategoryCost & usage
SecurityLow risk (88/100)
Rank#1,727 of 9,397 Claude Code mods; #290 in Cost & usage
LicenseApache-2.0
Last commit2026-11-28
Hooks5 events
Seescompaction, every prompt
Draws onAbovePrompt

Is context-meter safe to install?

context-meter scores 88/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. It passed 7 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Watches every prompt or eventReview
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.session.append
$.session.usage
$.state.get
$.state.set
$.store.setkeeps its own state
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install context-meter?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/AndrewDongminYoo/cc-agents-kit
    claude plugin validate ./cc-agents-kit/plugins/context-meter
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add AndrewDongminYoo/cc-agents-kit && claude plugin install context-meter@cc-agents-kit

Or ask Claude to set it up

Paste this into Claude Code and it installs context-meter for you:

Install the "context-meter" Claude Code mod from https://github.com/AndrewDongminYoo/cc-agents-kit/tree/main/plugins/context-meter. Run claude plugin validate on it first and show me what it can access before you enable it.

More from AndrewDongminYoo/cc-agents-kit

This repository has 2 Claude Code mods on MCPMods.

  • quick-look: Collects the files the agent reads, writes or names in its answer, and opens them in macOS Quick Look from a /ql command (Low risk)