context-bar
by Stanislav Kozachenko · ★ 0 · updated today
Shows the context window as a stacked bar above the prompt, one colour per /context category; /context-bar toggles it
Install
git clone https://github.com/StanislavKozachenko/claude-modsclaude --plugin-dir ./claude-mods/plugins/context-barThen 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.startturn.completesession.compacttool.callcommand.runui.render- API calls
$.clock.now$.command.register$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.resolve- Draws
AbovePrompt- Can see
compactionevery tool call- Reach
- level 1 of 3 other: $.state.getother: $.state.setpersists 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/StanislavKozachenko/claude-mods
- Path in repo
plugins/context-bar- Source commit
233f143the exact code the scan read- Author
- Stanislav Kozachenko @StanislavKozachenko
- 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 StanislavKozachenko/claude-mods
ci-budget
StanislavKozachenko/claude-mods
Keeps GitHub Actions spend in sight: the month's minutes and cost for the repo's organisation or account, GitHub budgets, cache and artifacts, risky workflows as they are written, and runs that hang
guard
StanislavKozachenko/claude-mods
Blocks destructive shell commands and access to secret files before they run, anywhere in a compound command
notify
StanislavKozachenko/claude-mods
Notifications that say what happened: a long turn finished (with its answer), a permission prompt or a question waiting, an Actions budget running low; on the desktop and, through Claude Code push, on your phone
redact
StanislavKozachenko/claude-mods
Keeps secrets that tools print (keys, tokens, passwords, private keys) out of what the model reads and the next request sends
turn-stats
StanislavKozachenko/claude-mods
Adds what a turn did to its 'Worked for' line: tool calls by tool, failures, files changed and cost