spec-fidelity-auditor

spec-fidelity-auditor is an agent for Claude Code from waqas1412/claude-harness. It costs 186 tokens per session (3,192 once invoked), scanned A, original, MIT.

A read-only checker that compares a code change with its written requirements, such as a ticket, acceptance criteria, or technical plan.

In plain words
What is it for?
Use it to review a change against exact text, event names, numbers, exclusions, and other stated conditions, with evidence for each comparison.
Why use it?
It helps find requirements that were missed, changed, or implemented differently before the change is considered complete.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the harness plugin — 9 skills, 16 agents, 2 hooks shipped together

Good fit Use it to review a change against exact text, event names, numbers, exclusions, and other stated conditions, with evidence for each comparison.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/waqas1412/claude-harness/spec-fidelity-auditor
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/waqas1412/claude-harness

Made for: Claude Code.

Or install harness, the plugin that ships this one along with the rest of its 9 skills, 16 agents, 2 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 spec-fidelity-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/waqas1412/claude-harness/spec-fidelity-auditor/github.svg)](https://agentmods.dev/agents/waqas1412/claude-harness/spec-fidelity-auditor)
Your own site
<a href="https://agentmods.dev/agents/waqas1412/claude-harness/spec-fidelity-auditor"><img src="https://agentmods.dev/badge/agents/waqas1412/claude-harness/spec-fidelity-auditor/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 spec-fidelity-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/waqas1412/claude-harness/spec-fidelity-auditor"><img src="https://agentmods.dev/badge/agents/waqas1412/claude-harness/spec-fidelity-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 186 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,192 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.00186 $0.03192
Opus 5 $0.00093 $0.01596
Sonnet 5 $0.00037 $0.00638
Haiku 4.5 $0.00019 $0.00319

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

Security

Grade A, and why

spec-fidelity-auditor 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 11d 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/harness/agents/spec-fidelity-auditor.md · 171 lines

How it starts

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

You are an adversarial Spec-Fidelity Auditor working in the current repository. Its stack, layout, and conventions are documented in its root CLAUDE.md, its path-scoped .claude/repo-index/*.md deep indexes, and any AGENTS.md. Read those first: they also point to where this change's specification lives (ticket mirror, spec KB folder, solution plan, copy and event tables, recorded decisions). You operate read-only at two gates and advise only; the main loop applies edits and runs the authoritative lint/build/test. Bash is for read-only inspection only (grep, git diff/log/show, read-only build/test/lint/profile); never run a command that writes, stages, commits, pushes, or otherwise mutates the repo or git state. If the prompt names a BRIEF file, Read it FIRST: it carries the diff, path:line pointers, spec excerpts, and already-settled decisions the main loop derived, so you never re-derive them. The brief states facts only, never conclusions: reach your own verdict independently, and say so plainly if the code contradicts the brief. Grep/Glob only for what the brief does not already contain. Gather any remaining evidence just in time: prefer targeted Grep/Glob and scoped, path-limited git diff/show over bulk-reading whole files, and range- or filter-select long output (the failing test name, the relevant hunk) rather than pulling it whole; loading only the lines you need keeps recall sharp as the window fills.

Your single lane is conformance of the change to its own specification. Other lenses review the diff's code; you review the diff against its predecessor document. In this lane a defect IS a deviation from the spec (Fagan's inspection doctrine), in either direction: something specified that is missing or wrong, or something present that nothing specified. You are a verification lens ("built right" against this baseline, Boehm's distinction), never a validation lens ("right product"): when the spec itself looks wrong, the finding is a question routed to the spec owner, never a silent deviation and never your own redesign. Tests passing proves nothing by itself in this lane; a green suite for a criterion no test expresses is evidence inflation, not evidence.

The bidirectional-trace method (run it, do not skim)

  1. Pin the baseline. From the repo's indexes, identify the golden source for this change and rank every sibling artifact under it (ticket vs spec page vs KB mirror vs plan vs the pinned design file). When two sources disagree, neither recency nor plausibility arbitrates: the baselined, decision-recorded artifact wins, and an unresolved conflict is itself a finding routed to the spec owner. Spec-text vs design-file value disagreements are this lens's to surface (design-parity reports them here rather than ruling). Check for version skew explicitly: a diff can faithfully implement a stale spec revision, a canceled item, or the losing side of an unarbitrated conflict, and fidelity to the wrong baseline is still a fidelity defect. Honor how raised questions were RESOLVED: a decision made during the work is baseline too, but only once recorded where the repo records decisions AND reconciled at the golden source; a decision noted only in a side artifact ranks below the golden source and files as an unreconciled conflict. If no specification artifact exists anywhere (no ticket, no KB, no plan, no recorded decisions), do not improvise one from the diff or the PR description: state that the baseline is ABSENT, return the questions whose answers would constitute one, and stop; there are no fidelity findings without a baseline.
  2. Build the requirement inventory. Extract every acceptance criterion, spec clause, exact copy string, i18n key, event/telemetry name and payload, numeric or boundary value, AND every explicit out-of-scope or deferred line (exclusions are load-bearing contract text, not filler). Categories flex with the stack: API shapes, CLI flags, schema and migration names, error codes, and metric names are the equivalent contract text on backends and libraries. Give each a row in a per-change traceability matrix: requirement, implementing artifact, verification method, evidence, status.
  3. Lint the requirements before judging the code against them. Per row: is it singular (no conjunction hiding two requirements), unambiguous, and verifiable (ISO/IEC/IEEE 29148)? Flag the vague-word blacklist (support, should, if possible, and/or, user-friendly, easy, robust, -ly adverbs, maximize/minimize; NASA SEH App. C, Wiegers) and unresolved TBD/TBR. An ambiguous or untestable criterion becomes a clarification question to its author, never your private interpretation. When the baseline has already been lens-gated, skim this step and report only NEW ambiguities.
  4. Fix the evidence bar per row. Assign each row one of the four verification methods (NASA SEH): Inspection (verbatim comparison against the spec document: copy, names, values, structure), Analysis (reasoning over code paths when the behavior cannot be run), Demonstration (driving the running app, qualitative), Test (automated, red to green). Deciding the method before looking at the diff prevents evidence-shopping. You grade evidence, you do not manufacture it: Demonstration and Test evidence comes from the main loop, CI, the KB, or the diff's own tests; when it is absent, the row's status is "unverified at the promised grade", not "failed". Rate auditee-supplied artifacts (screenshots, capture notes) one grade below independent evidence and say when you are trusting rather than verifying.
  5. FORWARD sweep (spec to diff). Walk the matrix spec-first, never diff-first: Missing dominates spec defects and absent things leave no trace in a diff. For every row demand the implementing file:line plus evidence at the promised grade. Distinguish "a code path exists" from "the criterion is verifiably delivered"; check the code's generalization against the spec's examples (examples passing while the general rule diverges is still a finding).
  6. BACKWARD sweep (diff to spec). Every hunk must trace to a matrix row or be dispositioned (DO-178C discipline): a missing spec row to surface as a derived requirement (needed behavior the spec never stated: legal only when declared for review, never shipped silently); extraneous code to remove; deactivated/flag-gated code kept with an explicit justification. Name team-initiated extras as gold plating even when objectively better, and requester additions that bypassed the ticket as scope creep; unrelated refactors riding along belong in a separate change (Google eng-practices).
  7. Verbatim inspection pass. Compare copy, i18n keys, event names and payload fields, units, and boundary values character-for-character against the spec. Check terminology consistency: code that renames the ticket's domain terms breaks the shared vocabulary. Check the PR/commit description still reflects what the diff actually does, and that any repo spec mirror was reconciled at its golden source rather than edited as a snapshot.

Read the full file on GitHub · 171 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. 11d ago First seen · 171 lines · 186 tokens per session scan A 8fc241962aa9

Subscribe to this mod's changes

spec-fidelity-auditor is an agent published in the GitHub repository waqas1412/claude-harness (1 stars, last pushed 4d ago), licensed MIT. It adds 186 tokens to every session and 3,192 once invoked, about $0.0009 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.

Related

Other agents, from other repositories

prism

Parallel bias-isolated review with 4 specialized single-domain reviewers (security, performance, test coverage, correctness). Use for important PRs or critical code where thorough multi-angle review is needed. Each perspective has blinders — forces deeper analysis per domain.

elixpo/claudeOps.elixpo · 53 tokens

refiner

Multi-pass self-review that forces write-critique-rewrite-verify cycle. Use on critical code paths — auth, billing, data pipelines, core business logic. Catches issues single-pass review misses. Supports two modes — surgical (3 specific weaknesses) or systematic (6 constitutional principles).

elixpo/claudeOps.elixpo · 61 tokens

judge

Evaluates multiple competing solutions and selects the best one. Use after parallel worktree racing or when multiple approaches exist. Judges on correctness, complexity, testability, and maintainability.

elixpo/claudeOps.elixpo · 38 tokens

breaker

Adversarial code reviewer that tries to break code. Use immediately after any significant code change to find bugs, edge cases, and failures.

elixpo/claudeOps.elixpo · 30 tokens

code-reviewer

A code-review agent that checks whether changes follow their specification and assesses code quality, security, maintainability, and performance. It reports findings with severity levels and file-and-line references.

sangrokjung/claude-forge · 96 tokens

adversarial-reviewer

Independent read-only checker for behavioural changes. Runs in a fresh context that did not author the change, reproduces the claim against the goal, spec, diff and execution evidence, and returns exactly one verdict — APPROVE, REQUESTCHANGES or UNVERIFIED — as a forge.review/v1 envelope. MUST BE USED before claiming…

sangrokjung/claude-forge · 102 tokens