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

context-meter

context-meter is a Claude Code mod by promptadvisers that context window and session cost meter, drawn above the prompt.

Updated 2026-10-02

What is context-meter?

context-meter is a Claude Code mod by promptadvisers that context window and session cost meter, drawn above the prompt. It is listed under Cost & usage and has 20 GitHub stars.

TypeClaude code mod
Authorpromptadvisers
Repositorypromptadvisers/claude-mods-starter-kit
Popularity20 GitHub stars
CategoryCost & usage
SecurityLow risk (96/100)
Rank#326 of 5,272 Claude Code mods; #50 in Cost & usage
Last commit2026-10-02
Hooks3 events
Seesonly the events it hooks
Draws onAbovePrompt

Is context-meter safe to install?

context-meter scores 96/100 on the MCPMods security check: Low risk. No checks raised a concern. 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
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.session.usage
$.state.get
$.state.set
$.ui.resolvedraws 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/promptadvisers/claude-mods-starter-kit
    claude plugin validate ./claude-mods-starter-kit/plugins/context-meter
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add promptadvisers/claude-mods-starter-kit && claude plugin install context-meter@claude-mods-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/promptadvisers/claude-mods-starter-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 promptadvisers/claude-mods-starter-kit

This repository has at least 9 Claude Code mods on MCPMods.

  • auto-handoff: Writes a cold-start handoff to handoff/ before the context fills up or compacts, and offers to resume from it in the nex (Low risk)
  • changes-receipt: A plain-English receipt after every turn: files created, changed and deleted, by tool or via shell, with failed attempts (Low risk)
  • coral-skin: Coral, ink and cream reskin of Claude Code with risk-coded tool rows. Toggle with /skin. (Low risk)
  • flight-recorder: See inside a turn: a live Gantt timeline of model requests, tool calls and subagents, with tokens and cost per lane. (Low risk)
  • model-router: Route supported subagent work to Sonnet or Haiku while keeping the main conversation on its model. /router for controls. (Low risk)
  • output-tray: A side panel of the files this session created, with Open, Reveal in Finder and Copy path. (Review before installing)
  • repo-heatmap: Watch where Claude looks: a live treemap of the repo that lights up as files are read, searched and edited. (Low risk)
  • session-bookmarks: Explicit bookmarks for Claude Code sessions you want to come back to. /bm saves one, /bm open lists them with a copyable (High risk)