context-bar
by Hamza Zafar · ★ 0 · updated 13 days ago
Your context window as a stacked bar above the prompt, a color per category, with token counts and the compaction point. /context-bar shows or hides it.
Install
/plugin marketplace add thorstenalpers/claude-code-mods/plugin install context-bar@claude-code-modsThen 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.compactcommand.runui.render- API calls
$.command.register$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.resolve- Draws
AbovePrompt- Can see
compaction- 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/thorstenalpers/claude-code-mods
- Path in repo
mods/context-bar- Source commit
11abba8the exact code the scan read- Author
- Hamza Zafar @thorstenalpers
- 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 thorstenalpers/claude-code-mods
agent-radar
thorstenalpers/claude-code-mods
One live line above the prompt per running subagent: time, tool count and what it's doing. /radar shows every agent and its messages.
blast-radius
thorstenalpers/claude-code-mods
Holds risky Bash commands and shows what they would change before they run.
browser-lanes
thorstenalpers/claude-code-mods
Shows if this session has a Playwright browser and who holds it. /browser clean closes leftover browsers. A subagent that wants the browser waits until the one using it is done.
cache-clock
thorstenalpers/claude-code-mods
A prompt-cache line under your status line: minutes left while warm, and how many tokens the next message re-caches once cold. /cache-clock setup adds it.
glance
thorstenalpers/claude-code-mods
One line above the prompt with what needs you: next meeting, PRs, Linear issues and Slack DMs. /glance lists them all.
md-preview
thorstenalpers/claude-code-mods
Shows the Markdown files Claude edits, rendered like GitHub, in a pane next to the chat. Before and after side by side. /md opens it.
merge-gate
thorstenalpers/claude-code-mods
Holds gh pr merge until CI passes and one Codex review (OpenAI's luna model) has run. A PR line above the prompt, and /gate shows the PR's status.
mission-control
thorstenalpers/claude-code-mods
/mission opens a live map of the main agent, its subagents and every tool call, plus a code map of the files they touch.
next-steps
thorstenalpers/claude-code-mods
After each turn, 2 or 3 likely next prompts above the prompt. Press 1, 2 or 3 in an empty prompt to draft one, 0 to dismiss.
now-playing
thorstenalpers/claude-code-mods
What Spotify is playing, one line above the prompt: track, progress and the lyric being sung, with ⏮ ⏸ ⏭ buttons. /music controls it too. macOS.
openai-balance
thorstenalpers/claude-code-mods
Your OpenAI API credit above the prompt: an estimated balance with a gauge, today's spend, where the money mostly went, and the last call. /openai-balance shows the breakdown.
prayer-times
thorstenalpers/claude-code-mods
The current prayer and how long is left, the next prayer, and zawal, above the prompt. Computed on your computer from your location; nothing is sent anywhere.