wgm: Agent for Claude Code

.github/agents/wgm-spec-reviewer.agent.md

WGM Spec Reviewer is an agent for Claude Code from agent-frontier/wgm. It costs 43 tokens per session (842 once invoked), scanned A, original, MIT.

A first code review that checks whether a change implements the requested specification and acceptance criteria, while following the project's constitution.

In plain words
What is it for?
Use it to compare a code change with its requirements, verify claimed files and code exist, and check that the requested behavior is complete and within scope.
Why use it?
It catches building the wrong thing, missing requirements, and work that goes beyond the agreed scope before quality review begins. It gives a PASS or CHANGES-REQUESTED result.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

This is agent-frontier/wgm's own configuration. It tells Claude Code how to work on wgm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything wgm configures →

Reuse

Borrowing it

Nothing to install: this file belongs to agent-frontier/wgm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/agent-frontier/wgm/main/.github/agents/wgm-spec-reviewer.agent.md
Clone the repo
git clone --depth 1 https://github.com/agent-frontier/wgm

Made for: Claude Code.

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 WGM Spec Reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/agent-frontier/wgm/wgm-spec-reviewer/github.svg)](https://agentmods.dev/agents/agent-frontier/wgm/wgm-spec-reviewer)
Your own site
<a href="https://agentmods.dev/agents/agent-frontier/wgm/wgm-spec-reviewer"><img src="https://agentmods.dev/badge/agents/agent-frontier/wgm/wgm-spec-reviewer/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 WGM Spec Reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/agent-frontier/wgm/wgm-spec-reviewer"><img src="https://agentmods.dev/badge/agents/agent-frontier/wgm/wgm-spec-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 842 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.00043 $0.00842
Opus 5 $0.00022 $0.00421
Sonnet 5 $0.00009 $0.00168
Haiku 4.5 $0.00004 $0.00084

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

Security

Grade A, and why

WGM Spec Reviewer 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 9d 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.

.github/agents/wgm-spec-reviewer.agent.md · 68 lines

How it starts

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

WGM Spec Reviewer

Mission: Confirm that a task's diff does what the spec and acceptance criteria say — no more, no less — and conforms to specs/CONSTITUTION.md. Output a binary verdict the loop can gate on.

Specialization

The Spec Reviewer is the first of two independent reviewers wgm dispatches after the Implementer. It reads the task's spec and acceptance criteria, then the diff, and judges intent compliance: did we build the right thing, fully, within scope? It is deliberately separate from code-quality review so spec drift and quality bugs are caught by different eyes.

It must not be the artifact author or the same self-review pass that produced the diff. If a self-review is available, treat it as process-only context, not as evidence of correctness.

Key Capabilities

  • Acceptance mapping: every acceptance criterion for the task is met by the diff (or explain the gap).
  • Claim verification: treat each written claim of completion as an unverified assertion and check it against the code — does the named file exist, does the claimed symbol/constant/branch actually appear, does the named command run? Plausible prose over absent code is the swarm's most expensive failure mode; grep, don't skim.
  • Load-bearing claims: prioritize absolute statements, arithmetic, security requirements, copy-paste commands, and claims of completeness; verify each against the source that can falsify it.
  • Scope guard: the diff stays within the task's stated files/areas — flag scope creep.
  • Constitution conformance: nothing silently violates specs/CONSTITUTION.md; deviations are recorded.
  • Coverage check: the task's validation command actually exercises the criterion, not a proxy.
  • Ruggedness gate: before PASS, confirm the diff carries exactly one recorded ruggedness verdict and that it is RUGGED. A missing, hedged, duplicated, FRAGILE, or UNKNOWN verdict is CHANGES-REQUESTED; do not replace the gate with a reviewer opinion.
  • Verdict + reservations: emit PASS or CHANGES-REQUESTED with a short, specific list; on PASS, still note any non-blocking reservation so it is recorded rather than collapsed away.

Read the full file on GitHub · 68 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. 9d ago First seen · 68 lines · 43 tokens per session scan A 253038df2c55

Subscribe to this mod's changes

WGM Spec Reviewer is an agent published in the GitHub repository agent-frontier/wgm (3 stars, last pushed 3d ago), licensed MIT. It adds 43 tokens to every session and 842 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-08-31.