groundtruth-help

groundtruth-help is a command for coding agents from akahkhanna/groundtruth. It costs 8 tokens per session (608 once invoked), scanned A, original, MIT.

A checker that verifies whether a coding agent actually completed the work it claims to have done. It compares those claims with the code changes, tool history, and files on disk.

In plain words
What is it for?
Use it to audit coding-agent work after a change, verify tests and files, detect undeclared changes, and flag security or code-quality issues.
Why use it?
It catches unsupported claims, unreported file changes, missing test evidence, insecure database rules, and leftover code problems.

Command

Part of the groundtruth plugin — 7 commands, 5 hooks 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/akahkhanna/groundtruth/groundtruth-help
Clone the repo
git clone --depth 1 https://github.com/akahkhanna/groundtruth

Or install groundtruth, the plugin that ships this one along with the rest of its 7 commands, 5 hooks.

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 groundtruth-help

README.md
[![agentmods](https://agentmods.dev/badge/commands/akahkhanna/groundtruth/groundtruth-help.svg)](https://agentmods.dev/commands/akahkhanna/groundtruth/groundtruth-help)
Your own site
<a href="https://agentmods.dev/commands/akahkhanna/groundtruth/groundtruth-help"><img src="https://agentmods.dev/badge/commands/akahkhanna/groundtruth/groundtruth-help.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 608 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.00008 $0.00608
Opus 5 $0.00004 $0.00304
Sonnet 5 $0.00002 $0.00122
Haiku 4.5 $0.00001 $0.00061

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

Security

Grade A, and why

groundtruth-help 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 4d 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/groundtruth-help.md · 26 lines

What it actually says

Explain to the user, concisely:

Groundtruth audits whether the agent actually did what it was asked — grounding every claim against the diff / tool-ledger / disk, never the agent's self-report.

It runs automatically every turn (the Stop hook) and checks:

  • Honesty & completeness — the claims contract (v2 default). The agent ends each code-changing turn with one fenced groundtruth-claims manifest; Groundtruth verifies it against reality: CA (claimed-but-absent) — a claim the diff/transcript don't support (a tests_pass that never ran or ran red, a file not in the diff, a symbol not defined); UC (undeclared change) — a changed file no claim covers; NC (no contract) — a missing/invalid manifest on a code turn. Declared deferred items surface as the agent's own set-aside. Opt out with GROUNDTRUTH_CONTRACT=0.
  • Rules — hardcoded secrets, new tables without RLS, permissive USING(true) policies, and project rules compiled from your docs (CLAUDE.md / skills) that were in context but broken anyway.
  • Code debt — stub/placeholder markers, phantom imports, dropped-symbol dangling refs (a "refactor, everything preserved" that left a caller pointing at nothing); /groundtruth-audit inventories it repo-wide.

A verdict card is written to .claude/groundtruth/<session>.md each turn. With GROUNDTRUTH_BLOCK=1 a fixable block-severity catch (a contract CA; a built-in secret/RLS/.env; or an NC — no manifest — once the repo is contract-aware, i.e. /groundtruth-setup has written the instruction) halts the stop, hands back a corrective (for NC, the schema itself), and re-checks (retry cap 2, then escalates — never wedges); otherwise it's warn-only.

Commands:

  • /groundtruth — show the latest verdict card
  • /groundtruth-audit — whole-repo deterministic debt scan
  • /groundtruth-rules — review + approve the rules compiled from your docs (the permission gate)
  • /groundtruth-rules-ai — opt-in model pass that proposes richer rules (routed through the same gate)
  • /groundtruth-block on|off — turn block mode on/off (default: warn)
  • /groundtruth-setup — one-shot installer: writes the contract instruction, arms clean rules, badge/env
  • /groundtruth-help — this

The honest ceiling: Groundtruth verifies the agent did what it said, not that what it said was right. Mechanics, not semantics — correctness still needs a test or a judge.

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. 4d ago First seen · 26 lines · 8 tokens per session scan A 0adedf1c906d

Subscribe to this mod's changes

groundtruth-help is a command published in the GitHub repository akahkhanna/groundtruth (6 stars, last pushed 1mo ago), licensed MIT. It adds 8 tokens to every session and 608 once invoked, about $0.0000 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.