verify

verify is a command for Claude Code from Redtropig/harness-anchor. It costs 63 tokens per session (1,038 once invoked), scanned A, original, MIT.

A command that runs the project's build, type checks, tests, and lint checks through a separate verification worker. It returns evidence paths and a structured result, and can optionally run a limited automatic-fix loop.

In plain words
What is it for?
Use it after implementing a feature to check compilation, type correctness, tests, code style, and project integrity before recording success.
Why use it?
It provides an independent check before marking a feature as passing. The separate worker helps reduce the chance that the person who wrote the code overlooks its problems.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; mentions AGENTS.md.

Part of the harness-anchor plugin — 14 skills, 9 commands, 5 agents, 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/redtropig/harness-anchor/verify
Clone the repo
git clone --depth 1 https://github.com/Redtropig/harness-anchor

Made for: Claude Code.

Or install harness-anchor, the plugin that ships this one along with the rest of its 14 skills, 9 commands, 5 agents, 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 verify

README.md
[![agentmods](https://agentmods.dev/badge/commands/redtropig/harness-anchor/verify.svg)](https://agentmods.dev/commands/redtropig/harness-anchor/verify)
Your own site
<a href="https://agentmods.dev/commands/redtropig/harness-anchor/verify"><img src="https://agentmods.dev/badge/commands/redtropig/harness-anchor/verify.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,038 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.1 $0.00063 $0.01038
Opus 5 $0.00032 $0.00519
Sonnet 5 $0.00013 $0.00208
Haiku 4.5 $0.00006 $0.00104

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

Security

Grade A, and why

verify 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 6d 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/verify.md · 81 lines

How it starts

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

/verify

Run the project's full verification suite via a fresh-context subagent and produce an evidence-based report.

This is the Anthropic three-agent architecture's "evaluator" role — independent from the code-writing agent so leniency bias is minimized.

Steps

  1. Dispatch verification-runner subagent via the Task tool:

    Task tool with:
      subagent_type: verification-runner
      prompt: Verify the active feature in feature_list.json. Use the project's
              documented verification commands from AGENTS.md if present; otherwise
              infer from project type (cmake, npm, cargo, etc.). Follow the fixed
              report format in your skill instructions. Do not modify code.
    
  2. Receive the report. It will be structured as ### Build, ### Tests, ### Integrity, ### Verdict, ### Recommendation sections.

  3. Surface the report to the user verbatim — do not paraphrase. The point of fresh-context evaluation is the user sees the evaluator's actual words.

  4. If verdict is READY TO MARK PASS:

    • Ask the user: "Verifier reports ready to mark as pass. Update feature_list.json now?"
    • On yes: invoke feature-state-keeper skill behaviour to update with the evidence object from the report
  5. If verdict is NOT READY:

    • Surface the specific failing criteria
    • Offer: (a) opt into the bounded auto-fix loop (see "--fix mode" below), (b) fix manually and re-run /verify, or (c) leave as-is and end the session

--fix mode (opt-in auto-fix loop)

Default /verify is read-only. Enter auto-fix ONLY when the user explicitly opts in — /verify --fix (the --fix token is in the command arguments) or a direct request like "verify and fix what you can." Never enter this mode on a bare /verify.

When opted in AND the verdict is NOT READY, run a bounded fix→re-verify loop:

  1. Read the ### Recommendation from the report — the failing criteria + suggested next commands. That is your only sanctioned fix scope.
  2. Apply fixes for that scope, transparently — show each change (file + short diff or description). Do NOT touch anything outside the recommendation; if a real fix would require that, STOP and ask the user first.
  3. Re-verify with a FRESH verification-runner — a new Task dispatch, not the prior subagent's context. Independence per cycle is the point: a fresh evaluator can't inherit the fixing agent's optimism.
  4. Decide:
    • READY → report "converged after N cycle(s)", list every change applied, then offer the feature_list.json update (step 4 above).
    • NOT READY and cycles completed < 2 → run one more cycle (back to 1).
    • NOT READY after 2 cyclesSTOP. Report honestly: what each cycle tried, what was applied, and the remaining failures with evidence paths. Never claim pass; never start a 3rd cycle.

Read the full file on GitHub · 81 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. 6d ago First seen · 81 lines · 63 tokens per session scan A e64c8baf27c6

Subscribe to this mod's changes

verify is a command published in the GitHub repository Redtropig/harness-anchor (13 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 1,038 once invoked, about $0.0003 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-30.