bm-statusline

bm-statusline is a command for coding agents from Goldziher/basemind. It costs 22 tokens per session (770 once invoked), scanned B, original, MIT.

A one-time setup command that adds the basemind status bar to Claude Code's global settings. It checks that basemind is installed and confirms the bar renders.

In plain words
What is it for?
Use it once on each machine running Claude Code, or again if the status bar becomes blank after a settings change.
Why use it?
It avoids manually editing settings and keeps the configuration working after basemind updates.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the basemind plugin — 15 skills, 10 commands, 6 agents, 2 hooks, 1 MCP server shipped together

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/goldziher/basemind/bm-statusline
Clone the repo
git clone --depth 1 https://github.com/Goldziher/basemind

Or install basemind, the plugin that ships this one along with the rest of its 15 skills, 10 commands, 6 agents, 2 hooks, 1 MCP server.

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 bm-statusline

README.md
[![agentmods](https://agentmods.dev/badge/commands/goldziher/basemind/bm-statusline.svg)](https://agentmods.dev/commands/goldziher/basemind/bm-statusline)
Your own site
<a href="https://agentmods.dev/commands/goldziher/basemind/bm-statusline"><img src="https://agentmods.dev/badge/commands/goldziher/basemind/bm-statusline.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 770 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.00022 $0.00770
Opus 5 $0.00011 $0.00385
Sonnet 5 $0.00004 $0.00154
Haiku 4.5 $0.00002 $0.00077

Measured 5d ago against content hash eb6402e7f866, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

bm-statusline 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 5d 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.

2. **Update `~/.claude/settings.json`** (treat a missing file as `{}`). Set its
.codex-plugin/commands/bm-statusline.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

bm-statusline — enable the basemind status line

Wire the basemind status line into the user's global Claude Code settings, then confirm it renders.

When to use

Run this once per machine to enable the basemind status line in Claude Code. Re-run only if the bar goes blank after an unusual settings edit.

How to use

Invoke /bm-statusline. Use your tools to do this directly — do not ask the user to hand-edit any files.

  1. Confirm the plugin is installed. Check that at least one of these exists:

    • ${CLAUDE_PLUGIN_ROOT}/.claude-plugin/statusline.sh (if that var is set)
    • ~/.claude/plugins/marketplaces/basemind/.claude-plugin/statusline.sh
    • a match of ~/.claude/plugins/cache/basemind/basemind/*/.claude-plugin/statusline.sh

    If none exists, tell the user the basemind plugin isn't installed and stop.

  2. Update ~/.claude/settings.json (treat a missing file as {}). Set its statusLine key to this version-independent resolver — do NOT hardcode a version-pinned path, which breaks on the next basemind update when the old version dir is pruned:

    { "type": "command",
      "command": "bash -c 's=$(ls -d \"$HOME\"/.claude/plugins/cache/basemind/basemind/*/.claude-plugin/statusline.sh 2>/dev/null | sort -V | tail -1); [ -f \"$s\" ] || s=\"$HOME/.claude/plugins/marketplaces/basemind/.claude-plugin/statusline.sh\"; [ -f \"$s\" ] && exec bash \"$s\" || printf \"%s\" \"◆ basemind: run /bm-statusline\"'",
      "refreshInterval": 5 }
    

    How it resolves, in order: the highest-versioned cached copy (sort -V, not mtime — an older dir touched more recently must never win; this also makes the bar track the newest version the moment /plugin update installs it), else the marketplace clone, else a one-line hint so the bar is never blank. It re-resolves at every render, so version bumps never break it and script improvements land automatically. Copy the command string verbatim (it self-resolves — $HOME is expanded by the bash -c it runs under, not the settings field). Preserve every other key and verify the file is still valid JSON afterward.

Read the full file on GitHub · 58 lines

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. 5d ago First seen · 58 lines · 22 tokens per session scan B eb6402e7f866

Subscribe to this mod's changes

bm-statusline is a command published in the GitHub repository Goldziher/basemind (98 stars, last pushed 3d ago), licensed MIT. It adds 22 tokens to every session and 770 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-30.