gov-metrics

gov-metrics is a command for Claude Code from avelikiy/great_cto. It costs 47 tokens per session (457 once invoked), scanned A, original, MIT.

A command that measures how well project governance checks work using their recorded decisions. It reports blocking, bypasses, false blocks, enforcement type, and time spent in checks.

In plain words
What is it for?
Use it to review block rates, bypass rates, false-block patterns, mechanically enforced checks, and time between decisions.
Why use it?
It reveals whether checks are useful controls or create noise and rely too much on written judgment.

Command for Claude Code

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

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the great-cto plugin — 40 skills, 44 commands, 70 agents shipped together

Good fit Use it to review block rates, bypass rates, false-block patterns, mechanically enforced checks, and time between decisions.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add avelikiy/great_cto
Claude Code
/plugin install great-cto

Made for: Claude Code.

Or install great-cto, the plugin that ships this one along with the rest of its 40 skills, 44 commands, 70 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 gov-metrics

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/avelikiy/great_cto/gov-metrics"><img src="https://agentmods.dev/badge/commands/avelikiy/great_cto/gov-metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 457 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.00047 $0.00457
Opus 5 $0.00023 $0.00229
Sonnet 5 $0.00009 $0.00091
Haiku 4.5 $0.00005 $0.00046

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

Security

Grade A, and why

gov-metrics 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.

commands/gov-metrics.md · 39 lines

What it actually says

/gov-metrics — does the gate actually gate?

great_cto's moat is mechanical governance. A gate you can't measure is a vibe, not a control. This reports the numbers (idea adapted from SantanderAI/mech-gov-framework):

  • Block rate — share of gate decisions that blocked.
  • Override / waiver rate — blocks a human bypassed.
  • False-block proxy — blocked-then-passed-unchanged (gate noise / over-firing).
  • R2 mechanical share — verdicts enforced by CI/script (the moat) vs R1 textual (a reviewer's prose judgment). High R1 share = gates lean on vibes, not enforcement.
  • Median time-in-gate — minutes between consecutive gate decisions on a feature.

Run

PT="${CLAUDE_PLUGIN_ROOT:-$(ls -d ~/.claude/plugins/cache/*/great_cto/*/ 2>/dev/null | sort -V | tail -1 | sed 's|/$||')}"
[ -d "$PT" ] || PT="$(pwd)"
node "$PT/scripts/lib/gov-metrics.mjs" $ARGUMENTS

--since 30d limits the window; --json emits machine-readable output for the board.

Present

Show the CTO the table, then one sentence of so-what:

  • R2 share < 40% → "gates lean on prose — move judgment into enforced checks."
  • false-block proxy > 30% → "gates over-fire — calibrate severity (anti-inflation)."
  • block rate ~0% over many decisions → "the gate never says no — is it real?"

Governance is the product. These numbers are how you prove it.

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 Changed a0b2d1153c7b
  2. 7d ago First seen · 39 lines · 47 tokens per session scan A 26c57d265428

Subscribe to this mod's changes

gov-metrics is a command published in the GitHub repository avelikiy/great_cto (92 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 457 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-09-03.