context-gauge
by Troy Lorents · ★ 1 · updated 22 days ago
A band above the prompt showing how full the context window is, shading green → orange → red, with a nudge to /compact as it nears the limit.
Install
/plugin marketplace add TroyJLorents-GH/mod-squad/plugin install context-gauge@mod-squadThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.startsession.measureturn.stepturn.completecommand.runui.render- API calls
$.command.register$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.resolve$.ui.toast- Draws
AbovePrompt- Reach
- level 1 of 3 reads 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/TroyJLorents-GH/mod-squad
- Path in repo
mods/context-gauge- Source commit
e04ddd9the exact code the scan read- Author
- Troy Lorents @TroyJLorents-GH
- 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 TroyJLorents-GH/mod-squad
model-router
TroyJLorents-GH/mod-squad
Routes each turn to the cheapest model + effort that fits the task (Haiku 5.5 → Sonnet 5.5 → Opus 5.5 → Fable 5.2 or 5.1) and shows the ladder in a side pane.
ping
TroyJLorents-GH/mod-squad
Plays a chime and shows a toast when a long turn finishes (or Claude is waiting on your approval), so you can walk away.
safety-net
TroyJLorents-GH/mod-squad
Blocks destructive tool calls before they run (force pushes, rm -rf outside the project, DROP TABLE, terraform destroy, writes to .env and keys, ...) and explains why.
secret-scrubber
TroyJLorents-GH/mod-squad
Redacts API keys, tokens, private keys and .env secrets from tool output before the transcript stores it and before the model reads it.
session-graph
TroyJLorents-GH/mod-squad
A knowledge graph across your Claude Code sessions. Each session records its topics and files; when another session covers the same ground you get an alert, and /graph can pull its findings into the one you are in.
standup
TroyJLorents-GH/mod-squad
/standup: click Generate and get a written standup of everything you got done today, grouped by project, from your local Claude Code sessions.
stock-watch
TroyJLorents-GH/mod-squad
/stock: watch tickers and get a chime when one reaches the low or high you set. Works any time, in any session.
turn-recap
TroyJLorents-GH/mod-squad
Adds a one-line TL;DR beneath long answers, written by a quick Haiku 5.5 call.
burn-rate
TroyJLorents-GH/mod-squad
A terminal cost dashboard (/burn): spend by day, project, model, activity, tools, shell commands and MCP servers, read from your local Claude Code transcripts and estimated at list price.
Related mods
Other mods in Bands, close to this one by stars.