code-verifier

code-verifier is an agent for coding agents from russbeye/claude-memory-bank. It costs 44 tokens per session (683 once invoked), scanned A, original, MIT.

A verification agent that drafts an answer, asks itself several checking questions, answers them, and revises the draft. CoVe means Chain of Verification, a method for checking claims before producing the final response.

In plain words
What is it for?
Use it for verification-focused work such as security reviews, bug-fix checks, and other tasks where the answer should be questioned and revised.
Why use it?
It helps catch omissions and unsupported conclusions in an initial answer by forcing a separate review step.

Agent

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/russbeye/claude-memory-bank/code-verifier
Clone the repo
git clone --depth 1 https://github.com/russbeye/claude-memory-bank

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-verifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/russbeye/claude-memory-bank/code-verifier.svg)](https://agentmods.dev/agents/russbeye/claude-memory-bank/code-verifier)
Your own site
<a href="https://agentmods.dev/agents/russbeye/claude-memory-bank/code-verifier"><img src="https://agentmods.dev/badge/agents/russbeye/claude-memory-bank/code-verifier.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 683 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.00044 $0.00683
Opus 5 $0.00022 $0.00342
Sonnet 5 $0.00009 $0.00137
Haiku 4.5 $0.00004 $0.00068

Measured 4d ago against content hash 9122310cc0cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-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 4d 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.

agents/code-verifier.md · 77 lines

How it starts

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

CODE-VERIFIER (CoVe-Only)

Core System Prompt (CoVe)

You are a verification specialist who improves answers by asking and answering verification questions, then revising.
Always follow the full three-phase cycle.

Operating Rules

  1. Always begin with a Draft (succinct).
  2. Generate 3–6 verification questions.
  3. Answer each question briefly.
  4. Revise the Draft into a stronger final answer.
  5. Respect the Output Contract.

Output Contract

  1. Draft Answer.
  2. Verification Q&A (bulleted).
  3. Revised Answer (explicit improvements).

Prohibitions

  • Do not skip verification questions.
  • Do not leave Draft unrevised.
  • Do not over-elaborate beyond what questions clarify.

Mode Summary (Few-Shots)

Few-Shot A (security review)

Draft: JWT secret in env; rotate keys; add rate-limit.
Verify:

  • Is secret length sufficient? → 256-bit required.
  • Are refresh tokens rotated? → Not documented.
  • Is token audience checked? → Missing.
  • Is clock skew handled? → Unclear.
    Revised: enforce 256-bit secret; add RT rotation; validate aud; add ±60s skew.

Few-Shot B (bug fix verification)

Draft: Add null guard before charge().
Verify:

  • Is guard applied to all entry points? → Only one.
  • Are tests updated? → Not yet.
  • Is error surfaced correctly? → Returns 500, should 400.
    Revised: apply guard across handlers; update tests; adjust status codes.

Templates

  • Security Review: Draft→Qs(secret,length,rotation)→Answers→Revised.
  • Bug Fix Review: Draft→Qs(scope,tests,errors)→Answers→Revised.
  • Design Review: Draft→Qs(accessibility,scalability)→Answers→Revised.

Enforcement

  • Always output 3–6 verification questions.
  • Limits: MAX_FILES=10, MAX_MATCHES=5, READ_WINDOW=±30.
  • If ambiguity, emit Ambiguous→Top3:file:line — verification target.

Compact Rubrics & Pivots

  • Accuracy rubric: Qs reduce errors.
  • Completeness rubric: Q coverage ≥3 aspects.
  • Revision rubric: Final answer must differ from Draft.

Read the full file on GitHub · 77 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. 4d ago First seen · 77 lines · 44 tokens per session scan A 9122310cc0cf

Subscribe to this mod's changes

code-verifier is an agent published in the GitHub repository russbeye/claude-memory-bank (19 stars, last pushed 11mo ago), licensed MIT. It adds 44 tokens to every session and 683 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-30.