context-gauge

by Jake Rains · ★ 0 · updated 3 days ago

BandsReskinsGuardsCommandsvalidates

0

One line under the prompt: model, effort, repo/branch, context left, and on a Claude subscription the 5-hour and weekly usage left with a countdown to reset. /gauge swaps it for a colour-coded context breakdown above the prompt.

install context-gauge

Install

/plugin marketplace add jakerains/claudemods
/plugin install context-gauge@claudemods

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.startcommand.runturn.stepsession.measuretool.callturn.completeui.render
API calls
$.clock.every$.clock.now$.command.register$.process.run$.session.model$.session.usage$.settings.read$.state.get$.state.set$.store.get$.store.set$.ui.resolve
Draws
PromptHintAbovePrompt
Can see
every tool call
Reach
level 2 of 3 other: $.state.getother: $.state.setruns processesreads settingspersists 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/jakerains/claudemods
Path in repo
context-gauge
Source commit
d1f0b3a the exact code the scan read
Author
Jake Rains @jakerains
License
MIT
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 jakerains/claudemods

open-tray

jakerains/claudemods

A pane of things to look at or listen to: what Claude made this session, things related to what you are working on, and local servers. Project rules in .claude/tray.json or ~/.claude/open-tray/rules/.

★ 0PanesGuardsCommands

prompt-cache-control

jakerains/claudemods

Prompt-cache meter above the Claude Code prompt: how many tokens each request read from, wrote to and sent past the cache, a live countdown to the cache's expiry, and what to do about it (keep going, compact or clear). The TTL follows Claude Code's own rules for your account (1 hour on a Claude subscription, 5 minutes on an API key, cloud provider or usage credits, plus the TTL variables and...

★ 0PanesBandsStatus line