context-bar

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

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.

agentmods
npx agentmods add commands/mbanderas/maestro/context-bar
Clone the repo
git clone --depth 1 https://github.com/mbanderas/maestro
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. Scan, not verified.
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 $0.00012 $0.00300
Opus 5 $0.00006 $0.00150
Sonnet 5 $0.00002 $0.00060
Haiku 4.5 $0.00001 $0.00030

Measured 2d ago against content hash b4a9d289a543, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 6d ago), licensed MIT. It adds 12 tokens to every session and 300 once invoked, about $0.0001 per session on Opus 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.