context-bar

context-bar is a command for Claude Code from mbanderas/maestro. It costs 12 tokens per session (300 once invoked), scanned B, original, MIT.

A command for turning the Maestro context progress bar in Claude Code's status line on or off. The bar shows context usage, meaning how much of the conversation space is occupied.

In plain words
What is it for?
Use it to enable, disable, or toggle the context bar on macOS, Linux, or Windows, then confirm the setting for the next status-line refresh.
Why use it?
It lets you control whether that status information appears without editing the status-line scripts directly.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the maestro plugin — 8 skills, 6 commands, 7 hooks shipped together

Good fit Use it to enable, disable, or toggle the context bar on macOS, Linux, or Windows, then confirm the setting for the next status-line refresh.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mbanderas/maestro/context-bar
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mbanderas/maestro

Made for: Claude Code.

Or install maestro, the plugin that ships this one along with the rest of its 8 skills, 6 commands, 7 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-bar

README.md
[![agentmods](https://agentmods.dev/badge/commands/mbanderas/maestro/context-bar/github.svg)](https://agentmods.dev/commands/mbanderas/maestro/context-bar)
Your own site
<a href="https://agentmods.dev/commands/mbanderas/maestro/context-bar"><img src="https://agentmods.dev/badge/commands/mbanderas/maestro/context-bar/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-bar

Your own site · 80×15
<a href="https://agentmods.dev/commands/mbanderas/maestro/context-bar"><img src="https://agentmods.dev/badge/commands/mbanderas/maestro/context-bar.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 300 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.00300
Opus 5.5 $0.00005 $0.00120
Sonnet 5.5 $0.00002 $0.00060
Haiku 4.5 $0.00001 $0.00030

Measured 3mo ago against content hash b4a9d289a543, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

context-bar scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

path in the `statusLine.command` field of `~/.claude/settings.json`.
commands/context-bar.md · 31 lines

What it actually says

Toggle the Maestro context bar shown in the Claude Code status line.

The bar is rendered by context-bar.ps1 (Windows) or context-bar.sh (macOS / Linux) in the Claude Code statusline directory, normally ~/.claude/statusline/. It self-gates on a flag file named .context-bar-disabled in that same directory:

  • flag file ABSENT -> bar enabled (default)
  • flag file PRESENT -> bar disabled (status line shows the folder name only)

Requested state: $ARGUMENTS

Steps:

  1. Find the statusline directory: it is the directory containing the script path in the statusLine.command field of ~/.claude/settings.json. Default to ~/.claude/statusline/ if it cannot be determined.
  2. Resolve the action against the flag file .context-bar-disabled in that directory:
    • on / enable -> delete the flag file (no-op if already absent).
    • off / disable -> create an empty flag file.
    • no argument -> toggle: delete the flag if present, else create it.
  3. Confirm the resulting state in one line. The change takes effect on the next status line refresh.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 31 lines · 12 tokens per session scan B b4a9d289a543

Subscribe to this mod's changes

context-bar is a command published in the GitHub repository mbanderas/maestro (5 stars, last pushed 2mo ago), licensed MIT. It adds 12 tokens to every session and 300 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

context-bar compared with commands from other repositories

context-bar next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-barmbanderas/maestroCommand52mo agoMITB12Claude Code
react-router-client-loaderiloveitaly/llm-ide-rulesCommand13yesterdayMITA0Claude Code
pn-audit-dataperniemann/pnCoreCommand0yesterdayMITA42Claude Code, Cursor
pn-delightperniemann/pnCoreCommand0yesterdayMITA30Claude Code, Cursor
pn-audit-apiperniemann/pnCoreCommand0yesterdayMITA44Claude Code, Cursor
pn-audit-errorsperniemann/pnCoreCommand0yesterdayMITA41Claude Code, Cursor
pn-audit-securityperniemann/pnCoreCommand0yesterdayMITA46Claude Code, Cursor