Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mbanderasv1.1.0MITIn 1 marketplace
A context-window progress bar for the Claude Code status line. Shows how much of the model's context the session has used, in a green-to-red bar with the token count and the current folder. Detects the reported context window automatically, including 1M-token tiers. Zero dependencies, one slash command to install, one to toggle.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
maestro, status-line, statusline, context-window, progress-bar, tokens, claude-code
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
See the context window before you hit it.
A context-window progress bar for the Claude Code status line.
████████░░░░░░░░░░░░ 42% 84k/200k · my-project
The bar fills as the session consumes the model's context window, shifting green to amber to red, and shows the token count alongside the current folder. It reads the context window Claude Code reports, so 200k and 1M-token tiers are both handled without configuration.
Zero dependencies. One slash command to install, one to toggle.
As a Claude Code plugin:
/plugin marketplace add mbanderas/maestro-context-bar
/plugin install maestro-context-bar@maestro-context-bar
/maestro-context-bar:install
The last step is separate on purpose. A plugin cannot edit settings.json at
install time, so /maestro-context-bar:install runs the installer explicitly:
it copies the renderer into ~/.claude/statusline/ and adds the statusLine
block to ~/.claude/settings.json. Without that step the plugin ships the code
but nothing changes your status line.
If a statusLine command is already set to something unrelated, the installer
leaves it alone and prints the block it would have written, so you can merge or
chain it yourself. --force replaces it (settings.json is backed up first).
Clone the repo and run the installer directly:
git clone https://github.com/mbanderas/maestro-context-bar
node maestro-context-bar/scripts/install.mjs
node scripts/install.mjs [options]
--dry-run show what would change, write nothing
--force replace an unrelated statusLine command (backs up first)
--uninstall remove the scripts and unset statusLine
--config-dir <path> Claude config dir (default: ~/.claude)
--renderer <r> auto (default) | node | pwsh | bash
Three interchangeable implementations ship; they produce identical output.
| Renderer | File | Notes |
|---|---|---|
node | context-bar.mjs | Default when node is on PATH. One ~60ms process, no dependencies. |
pwsh | context-bar.ps1 | Windows fallback. A powershell.exe cold start can miss the status line host's kill deadline under load. |
bash | context-bar.sh | macOS/Linux fallback. Needs jq; without it the status line shows the folder name only. |
--renderer auto picks node when it is available, otherwise the native shell
for the platform.
The installed files keep the short context-bar names — the renderer, the
context-bar.json config, and the .context-bar-disabled flag. Only the plugin
and its slash commands carry the maestro- prefix.
/maestro-context-bar:toggle # flip
/maestro-context-bar:toggle off # status line shows the folder name only
/maestro-context-bar:toggle on
The toggle is a flag file (.context-bar-disabled) next to the renderer. No
settings edit, no restart; it applies on the next status line refresh.
Optional, at ~/.claude/context-bar.json (or under $CLAUDE_CONFIG_DIR). The
file is never created for you; every key is optional.
{
"enabled": true,
"width": 20,
"style": "blocks",
"showFolder": true,
"showTokens": true
}
| Key | Default | Effect |
|---|---|---|
enabled | true | false is the permanent form of /maestro-context-bar:toggle off. |
width | 20 | Bar width in characters, 4 to 60. |
style | "blocks" | "blocks" uses █/░, "ascii" uses #/- for terminals without good box-drawing coverage. |
showFolder | true | Trailing folder name. |
showTokens | true | The 84k/200k figure; the percentage stays. |
Each key is validated on its own. A malformed file, an unknown key, or an out-of-range value falls back to the default rather than blanking the bar.
Claude Code pipes a JSON payload to the status line command on every refresh.
The renderer takes the context-window size from that payload, then scans the
tail of the session transcript for the most recent assistant message and sums
its input_tokens, output_tokens, cache_read_input_tokens, and
cache_creation_input_tokens — cache reads and cache writes both occupy the
window, so all four count.
Only the last 2 MB / 80 lines of the transcript are read; transcripts reach tens of megabytes and the status line runs on every keystroke.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub mbanderas/maestro-context-bar --plugin maestro-context-barPlugins from other owners that cover similar ground