context-meter

by CJ Avilla · ★ 0 · updated 3 days ago

ReskinsGuardsvalidates

0

A tiny meter in the bar under the prompt showing how full the context window is: five cells, the percent and the token counts.

install context-meter

Install

git clone https://github.com/cjavdev/mods
claude --plugin-dir ./mods/context-meter

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
session.starttool.callsession.measureui.render
API calls
$.clock.every$.session.usage$.state.get$.state.set
Draws
PromptHint
Can see
every tool call
Reach
level 1 of 3 other: $.state.getother: $.state.set

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/cjavdev/mods
Path in repo
context-meter
Author
CJ Avilla @cjavdev
License
No license declared — ask the author before reusing code.
First published
Last pushed
First listed here
On X
Mentioned in 1 post on X

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.

Posts about this repo

CJ Avilla@cjav_dev

Built a few useful little Claude Code mods for myself and wanted to share... 🧵 https://github.com/cjavdev/mods

More from cjavdev/mods

cache-saver

cjavdev/mods

When an idle session's prompt cache is about to expire, summarizes it while the cache is still warm; when you come back, pick A (keep the full session, pay the cache write) or B (continue from the summary).

★ 01 postsPanesBandsPrompt

cache-shot-clock

cjavdev/mods

A shot clock for the prompt cache's TTL: a small countdown in the bar under the prompt, and a big LED clock above it for the last seconds before the next turn pays a full cache write.

★ 01 postsBandsReskins

link-bar

cjavdev/mods

Links in the bar under the prompt to the artifacts and pull requests mentioned most recently in the conversation.

★ 01 postsReskins