productionos-stats

productionos-stats is a command for Claude Code from ShaheerKhawaja/ProductionOS. It costs 32 tokens per session (446 once invoked), scanned A, original, MIT.

A statistics dashboard for ProductionOS, showing information about its installed components, tests, version, learning data, and Git history.

In plain words
What is it for?
Use it to view counts of agents, commands, hooks, templates, scripts, and tests, plus instincts, handoffs, usage events, commits, and version.
Why use it?
It gives you one place to see how the toolkit is configured and how much project and session information it has recorded.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the productionos plugin — 4 skills, 41 commands, 11 agents shipped together

Good fit Use it to view counts of agents, commands, hooks, templates, scripts, and tests, plus instincts, handoffs, usage events, commits, and version.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/shaheerkhawaja/productionos/productionos-stats
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/ShaheerKhawaja/ProductionOS

Made for: Claude Code.

Or install productionos, the plugin that ships this one along with the rest of its 4 skills, 41 commands, 11 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/productionos-stats/github.svg)](https://agentmods.dev/commands/shaheerkhawaja/productionos/productionos-stats)
Your own site
<a href="https://agentmods.dev/commands/shaheerkhawaja/productionos/productionos-stats"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/productionos-stats/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 productionos-stats

Your own site · 80×15
<a href="https://agentmods.dev/commands/shaheerkhawaja/productionos/productionos-stats"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/productionos-stats.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00032 $0.00446
Opus 5 $0.00016 $0.00223
Sonnet 5 $0.00006 $0.00089
Haiku 4.5 $0.00003 $0.00045

Measured 12d ago against content hash 290e6e6b57d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

productionos-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 12d 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.

.claude/commands/productionos-stats.md · 56 lines

What it actually says

/productionos-stats — System Dashboard

Display a comprehensive stats dashboard for the current ProductionOS installation.

Step 0: Preamble

Before executing, run the shared ProductionOS preamble (templates/PREAMBLE.md).

Step 1: Run Stats Dashboard

Execute the stats dashboard script:

bun run scripts/stats-dashboard.ts

The script computes and outputs all metrics in structured markdown format.

Metrics Computed

System Metrics

  • Version — from VERSION file
  • Agent count — total .md files in agents/ with HIGH/MEDIUM/LOW stakes breakdown
  • Command count — total .md files in .claude/commands/
  • Hook count — unique hook scripts referenced in hooks/hooks.json
  • Template count — total .md files in templates/
  • Script count — total .ts files in scripts/
  • Test file count — total .ts files in tests/

Learning Metrics

  • Project instincts — patterns learned for the current project
  • Global instincts — cross-project patterns (confidence > 0.8)
  • Session handoffs — auto-generated handoff documents
  • Skill usage events — total events in analytics log

Git Activity

  • Total commitsgit rev-list --count HEAD
  • Commits todaygit log --oneline --since=midnight
  • Last handoff — most recent session handoff document

Output Format

The dashboard outputs a markdown table for each category, suitable for display in Claude Code's conversation.

Use Cases

  • Run after a sprint to see what was shipped (new agents, commands, hooks)
  • Check learning progress (instinct accumulation across sessions)
  • Verify installation completeness (all counts match expected values)
  • Share stats in session handoff documents for continuity
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. 12d ago First seen · 56 lines · 32 tokens per session scan A 290e6e6b57d3

Subscribe to this mod's changes

productionos-stats is a command published in the GitHub repository ShaheerKhawaja/ProductionOS (8 stars, last pushed 4mo ago), licensed MIT. It adds 32 tokens to every session and 446 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-31.