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.
/plugin marketplace add akahkhanna/groundtruth/plugin install groundtruthWrote 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.
[](https://agentmods.dev/commands/akahkhanna/groundtruth/groundtruth-rules-ai)<a href="https://agentmods.dev/commands/akahkhanna/groundtruth/groundtruth-rules-ai"><img src="https://agentmods.dev/badge/commands/akahkhanna/groundtruth/groundtruth-rules-ai.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.01417 |
| Opus 5 | $0.00030 | $0.00709 |
| Sonnet 5 | $0.00012 | $0.00283 |
| Haiku 4.5 | $0.00006 | $0.00142 |
Grade B, and why
groundtruth-rules-ai 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 8d 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.
`node "$(find ~/.claude/plugins -name compile-rules.mjs -path '*groundtruth*' | head -1)" .`) How it starts
The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Groundtruth — AI rule extraction (opt-in; not on by default)
Groundtruth's default rule compiler is deterministic — it only pulls the literal backtick forms
(`X` not `Y`, never `X`) from your docs, with no model. This command adds an opt-in model
pass: fan out an agent to read your rule docs in prose and propose the deterministic rules the literal
extractor missed — then route them through the EXACT SAME safety pipeline (grounding + the
/groundtruth-rules human approval gate). Nothing here arms a rule, and the model never runs unless you
invoke this command.
Do this
- Fan out the reading. Use the Task tool to spawn subagent(s) — the
Exploreagent is ideal — to read this repo's rule docs:CLAUDE.md,AGENTS.md,SCHEMA.md,ARCHITECTURE.md,docs/*.md, every**/.claude/skills/**/SKILL.md, every**/.claude/agents/*.md,.cursorrules,.windsurfrules(whichever exist). If there are many docs, fan out one subagent per doc group and run them in parallel. If$ARGUMENTSnames a path, focus there. Ask each subagent to return candidate rules only in this exact shape:{ "id": "no-<slug>", "kind": "forbid_in_added", "file_re": "<regex>", "line_re": "<regex>", "message": "<the rule, one line>", "positive_example": "<a code line the rule SHOULD flag>" }file_re— which files the rule applies to (\\.sql$,\\.(ts|tsx)$, …); a broad source set if unsure.line_re— the forbidden token/pattern; anchor identifiers with\\b. JSRegExpsyntax only — no PCRE/Python inline flags like(?i)(matching is already case-insensitive); a pattern that doesn't compile in JS is inert.positive_example— a minimal line the rule is meant to catch. It PROVES the rule can fire: the grounder rejects (routes toreview, neverarmable) any candidate whoseline_redoesn't match its own example. Grounding otherwise only proves a rule doesn't hit existing code — never that it fires at all.
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.
- 8d ago First seen · 70 lines · 61 tokens per session scan B 9d1d4347b129
groundtruth-rules-ai is a command published in the GitHub repository akahkhanna/groundtruth (6 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 1,417 once invoked, about $0.0003 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.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.