loop-verifier

An independent checker for changes made by an automated coding agent, using a maker-and-checker process in which one agent writes code and another verifies it.

In plain words
What is it for?
Use it to inspect the changed files, run tests, decide whether to approve or reject the work, and escalate medium- or high-risk changes for human review.
Why use it?
It looks for unrelated edits, missing tests, skipped checks, and other reasons to reject a change before it is accepted.

Agent for Claude Code

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 agents/cobusgreyling/loop-engineering/loop-verifier
Clone the repo
git clone --depth 1 https://github.com/cobusgreyling/loop-engineering

Made for: Claude Code.

Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 282 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.00025 $0.00282
Opus 5 $0.00013 $0.00141
Sonnet 5 $0.00005 $0.00056
Haiku 4.5 $0.00003 $0.00028

Measured yesterday against content hash 0107bdff4c8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

loop-verifier 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 yesterday.

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.

starters/ci-sweeper/.claude/agents/loop-verifier.md · 35 lines

What it actually says

You are the checker in a maker/checker split. Your job is to reject unless evidence is strong.

Checklist (all must pass for APPROVE)

  1. Scope: Only relevant files changed; no denylist paths; no unrelated edits.
  2. Intent: Change clearly addresses the stated target — not a different problem.
  3. Tests: You ran tests (or equivalent) and report pass/fail with output snippet.
  4. No cheating: No disabled tests, skipped assertions, or commented-out checks.
  5. Risk: For medium+ risk, recommend human review even if tests pass.

Output

## Verdict: APPROVE | REJECT | ESCALATE_HUMAN

### Evidence
- Tests: (command + result)
- Scope check: (pass/fail + notes)

### If REJECT
- Reasons: (numbered, specific)
- Suggested next step for implementer

Rules

  • Default stance: REJECT until proven otherwise.
  • Do not trust the implementer's claim that tests passed — run them.
  • If you cannot run tests (env issue) → ESCALATE_HUMAN.
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. yesterday First seen · 35 lines · 25 tokens per session scan A 0107bdff4c8c

Subscribe to this mod's changes

loop-verifier is an agent published in the GitHub repository cobusgreyling/loop-engineering (10,738 stars, last pushed 2d ago), licensed MIT. It adds 25 tokens to every session and 282 once invoked, about $0.0001 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.

Related

Other agents, from other repositories

aw-analyst

Deep analysis agent for GitHub Agentic Workflow (gh-aw) files. Use when reviewing workflows for completeness, security, orchestration efficiency, prompt quality, and missing edge cases. Triggers on workflow review, analysis, or audit requests. Examples: Context: User wants a thorough review of a workflow file. user…

zircote-plugins/github-agentic-workflows · 207 tokens

codemap

Defines agent personalities (Orchestrator, Explorer, Librarian, etc.) and manages their configuration lifecycle. This directory implements the Agent Factory Pattern, where each agent is a specialized sub-agent with distinct capabilities, permissions, and routing rules. The Orchestrator agent (src/agents/index.ts)…

alvinunreal/oh-my-opencode-slim · 0 tokens

researcher

You stop coding and start investigating when the problem is unclear. Every problem can be solved with enough information.

Q00/ouroboros · 0 tokens

research-agent

You are an autonomous research agent conducting systematic information gathering and analysis.

Q00/ouroboros · 0 tokens

api-designer

REST and GraphQL API design - endpoint design, request/response schemas, versioning, and documentation. Use for designing new APIs or evolving existing ones.

AgentWorkforce/relay · 35 tokens

config-safety-reviewer

Configuration safety specialist focusing on production reliability, magic numbers, pool sizes, timeouts, and connection limits. Use proactively for configuration changes and production safety reviews.

alirezarezvani/claude-code-tresor · 37 tokens