bm-stats

bm-stats is a command for coding agents from Goldziher/basemind. It costs 40 tokens per session (524 once invoked), scanned A, original, MIT.

A dashboard command for basemind's stored data and activity. It reports disk and memory use, tool-call counts, per-tool activity, and estimated tokens saved.

In plain words
What is it for?
Use it to inspect resource usage and activity for today, the last hour, the last 24 hours, or all recorded activity.
Why use it?
It gives you a quick way to see whether basemind is using expected resources and what work it has handled.

Command

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-stats
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-stats

README.md
[![agentmods](https://agentmods.dev/badge/commands/goldziher/basemind/bm-stats.svg)](https://agentmods.dev/commands/goldziher/basemind/bm-stats)
Your own site
<a href="https://agentmods.dev/commands/goldziher/basemind/bm-stats"><img src="https://agentmods.dev/badge/commands/goldziher/basemind/bm-stats.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 524 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00040 $0.00524
Opus 5 $0.00020 $0.00262
Sonnet 5 $0.00008 $0.00105
Haiku 4.5 $0.00004 $0.00052

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

Security

Grade A, and why

bm-stats scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex-plugin/commands/bm-stats.md · 45 lines

What it actually says

bm-stats — basemind dashboard

Show a basemind dashboard with two sections: resource footprint (on-disk size + process RAM) and activity (tool calls, per-tool histogram, estimated tokens saved).

When to use

The user asks "how much is basemind helping?", "show me basemind stats", or wants to check disk / RAM usage.

How to use

Invoke /bm-stats (default window today) or /bm-stats <today|1h|24h|all>. Window: $ARGUMENTS

  1. Resource footprint. MCP admin { mode: "cache_stats" }, or CLI basemind admin cache-stats (add --json to parse). Report: total_bytes (matches du), the per-component breakdown (blobs / views / git-history / lance / git-cache / telemetry / other), and process RAM (rss_bytes + peak_rss_bytes). If blob_accounting_ok is false, note that orphan accounting was skipped (stale/unreadable index — re-scan to restore it); the sizes are still accurate.

  2. Activity. MCP admin { mode: "telemetry", window: "…" }, or CLI basemind admin telemetry --window <today|1h|24h|all> (add --json). Report call count, the per-tool histogram, and estimated tokens saved for the window.

  3. Render both sections as a compact markdown dashboard.

Notes

  • Prefer MCP when connected, but don't depend on it — the CLI reads the same data with no server. If an admin mode isn't available, run its CLI equivalent instead of giving up.
  • If neither MCP nor CLI is reachable, say so plainly and point at /bm-doctor.
  • Always end with a one-sentence disclosure that the savings number is heuristic: tools without a realistic baseline (memory, document search, git wrappers) report 0 saved.

See also

The basemind-stats skill for the render shape and the --explain breakdown.

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. 3d ago First seen · 45 lines · 40 tokens per session scan A 9df7e30d6c62

Subscribe to this mod's changes

bm-stats is a command published in the GitHub repository Goldziher/basemind (91 stars, last pushed 8d ago), licensed MIT. It adds 40 tokens to every session and 524 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.