code-grounder

code-grounder is an agent for Claude Code from ihudak/ihudak-claude-plugins. It costs 142 tokens per session (3,509 once invoked), scanned A, original, MIT.

A read-only checker that tests specific business-requirement claims against one exact version of a code repository. A business requirements document, or BRD, records what a product is expected to do.

In plain words
What is it for?
Checking BRD claims against source code and returning file-and-line evidence with a verdict for each claim.
Why use it?
It separates verified code evidence from assumptions and shows whether each claim is true for the chosen code version.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter.

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 product-workflows plugin — 12 commands, 14 agents shipped together

Good fit Checking BRD claims against source code and returning file-and-line evidence with a verdict for each claim.

Compare 6 agents 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 ihudak/ihudak-claude-plugins
Claude Code
/plugin install product-workflows

Made for: Claude Code.

Or install product-workflows, the plugin that ships this one along with the rest of its 12 commands, 14 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 code-grounder

README.md
[![agentmods](https://agentmods.dev/badge/agents/ihudak/ihudak-claude-plugins/code-grounder/github.svg)](https://agentmods.dev/agents/ihudak/ihudak-claude-plugins/code-grounder)
Your own site
<a href="https://agentmods.dev/agents/ihudak/ihudak-claude-plugins/code-grounder"><img src="https://agentmods.dev/badge/agents/ihudak/ihudak-claude-plugins/code-grounder/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 code-grounder

Your own site · 80×15
<a href="https://agentmods.dev/agents/ihudak/ihudak-claude-plugins/code-grounder"><img src="https://agentmods.dev/badge/agents/ihudak/ihudak-claude-plugins/code-grounder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,509 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.00142 $0.03509
Opus 5.5 $0.00057 $0.01404
Sonnet 5.5 $0.00028 $0.00702
Haiku 4.5 $0.00014 $0.00351

Measured 1mo ago against content hash fe9336043b86, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-grounder 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 1mo 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.

plugins/product-workflows/agents/code-grounder.md · 198 lines

How it starts

The opening of the file, as written. The whole thing — 198 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Core references. A citation of the form workflows-core:<name> names a shared reference in the workflows-core plugin. Load it with Skill(skill: "workflows-core:reference", args: "<name>") — never by path: ${CLAUDE_PLUGIN_ROOT} resolves to this plugin, which does not carry it.

Invoke Skill(skill: "workflows-core:reference", args: "grounding-format") and read it for the [CG#n] finding record, the six verdicts, the baseline-integrity procedure, and the horizons. Follow that reference; do not restate it here. Invoke Skill(skill: "workflows-core:reference", args: "read-only-repos") and read it for the read-only posture toward a mounted repository.

Ground a list of specific requirement claims against one code repository, pinned to one commit. The caller — /prd-ground — dispatches one instance per repository, up to 4 concurrent. Each claim carries a requirement identifier and its text, as the caller supplied them — [BR#n] on the BRD route, [AC#n], [FR#n] or [US#n] on the idea route. Resolve an id against the list the caller handed you; never parse one out of the claim text.

Distinction from code-scanner. That agent answers what capability exists for this theme? — a broad-then-narrow sweep across a repository, useful before anything has been claimed as true. This agent answers is this specific claim true of this specific commit? — it does not scope, it adjudicates. Both ship, and they are not alternatives: a caller may use code-scanner's output to decide what to check, but nothing code-scanner returns is itself a finding, and no finding this agent returns is a capability inventory.

Inputs

repo_path: <absolute path to a local clone, e.g. /workspace/<repo-name>>
commit:    <the commit SHA every finding must be pinned to>
claims:
  - id:   <the requirement identifier as the caller supplied it — BR#n, AC#n, FR#n, or US#n>
    text: <the requirement's premise, verbatim or closely paraphrased>
refresh:
  pull: false   # default false — grounding checks a pinned commit, not the tip; a caller that
                # wants a fresher pin re-supplies `commit` rather than asking this agent to move it.

Refuse to run without repo_path, commit, and at least one entry in claims. If any of the three is missing, return status: INPUT_MISSING naming exactly what was absent — never guess at a repository, a commit, or a claim to have something to ground.

Read the full file on GitHub · 198 lines

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. 1mo ago Changed · +1 lines fe9336043b86
  2. 1mo ago Changed · +10 lines 8e9dd0c5156d
  3. 2mo ago Changed · +24 lines · +13 tokens per session 99ba62bfc23d
  4. 2mo ago Changed · +14 lines · +33 tokens per session e1f4a7b2f393
  5. 2mo ago Changed · +1 lines 7027f185aae3
  6. 2mo ago First seen · 148 lines · 96 tokens per session scan A c4f9c7521bc2

Subscribe to this mod's changes

code-grounder is an agent published in the GitHub repository ihudak/ihudak-claude-plugins (2 stars, last pushed 1mo ago), licensed MIT. It adds 142 tokens to every session and 3,509 once invoked, about $0.0006 per session on Opus 5.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.

Related

code-grounder compared with agents from other repositories

code-grounder next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-grounderihudak/ihudak-claude-pluginsAgent21mo agoMITA142Claude Code
code-reviewerJose-Ribeir/claude-code-review-gateAgent3todayApache-2.0A41Claude Code
code-resolverJose-Ribeir/claude-code-review-gateAgent3todayApache-2.0A56Claude Code
code-filterJose-Ribeir/claude-code-review-gateAgent3todayApache-2.0A54Claude Code
code-reviewerNikiforovAll/claude-code-rulesAgent1429d agoApache-2.0A37Claude Code
meeting-organizerjuliusz-cwiakalski/agentic-delivery-osAgent43todayMITA9Claude Code
Music Producerfrankxai/agentic-creator-osAgent122d agoApache-2.0A16Claude Code