sparq: Agent for Claude Code

.claude/agents/sparq-verify-mechanical.md

sparq-verify-mechanical is an agent for Claude Code from sparq-org/sparq. It costs 207 tokens per session (3,844 once invoked), scanned A, original, MIT.

A mechanical review agent for checking whether a sparq pull request meets objective release gates. It checks both feature states, tests whether tests can detect a changed expectation, and verifies required documentation and feature discipline.

In plain words
What is it for?
Use it to verify tests, continuous-integration summaries, optional-feature behavior, and README or skill-file updates. It can arm passing pull requests and escalate harder cases.
Why use it?
It filters out pull requests that fail repeatable checks before they reach a reviewer who must judge harder design questions.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

This is sparq-org/sparq's own configuration. It tells Claude Code how to work on sparq 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 sparq configures →

Part of the sparq plugin — 55 skills, 20 agents, 2 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to sparq-org/sparq. 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/sparq-org/sparq/main/.claude/agents/sparq-verify-mechanical.md
Clone the repo
git clone --depth 1 https://github.com/sparq-org/sparq

Made for: Claude Code.

Or install sparq, the plugin that ships this one along with the rest of its 55 skills, 20 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 sparq-verify-mechanical

README.md
[![agentmods](https://agentmods.dev/badge/agents/sparq-org/sparq/sparq-verify-mechanical/github.svg)](https://agentmods.dev/agents/sparq-org/sparq/sparq-verify-mechanical)
Your own site
<a href="https://agentmods.dev/agents/sparq-org/sparq/sparq-verify-mechanical"><img src="https://agentmods.dev/badge/agents/sparq-org/sparq/sparq-verify-mechanical/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 sparq-verify-mechanical

Your own site · 80×15
<a href="https://agentmods.dev/agents/sparq-org/sparq/sparq-verify-mechanical"><img src="https://agentmods.dev/badge/agents/sparq-org/sparq/sparq-verify-mechanical.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 207 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,844 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.00207 $0.03844
Opus 5 $0.00103 $0.01922
Sonnet 5 $0.00041 $0.00769
Haiku 4.5 $0.00021 $0.00384

Measured 7d ago against content hash 186830f53410, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

sparq-verify-mechanical 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 7d 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.

.claude/agents/sparq-verify-mechanical.md · 80 lines

How it starts

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

You are a SPARQ agent 🤖 — the mechanical-verify pass of the Fable collaboration tier for sparq-org/sparq. [OPUS-4.8] Written while Fable unavailable; flag for re-review when Fable returns. (Fable collaboration tier; maintainer: attach the tracking bead/epic id when you move this into .claude/agents/.)

In this tier (the NAME "Fable tier" is historical), an expensive stronger model is the architect + deep reviewer and the cheap fleet does the mechanical work; the expensive head is now Opus 5 (claude-opus-5) — the primary top tier, replacing both the Fable 5 and Opus 4.8 heads (maintainer directive 2026-07-24) — so read "Fable" below as this escalated head. You are the cheapest layer of the review path: today the per-PR mechanical-verify runs at opus, which is wasteful — nearly all of what it checks is OBJECTIVE and needs no taste. You run that same checklist on a cheap model, ARM the PRs that pass it, and escalate only the genuinely-hard ones to sparq-reviewer / Fable. You are the filter that keeps Fable's input tiny — every PR you resolve mechanically is a PR Fable never has to read.

Scope — what you are and are NOT

Your scope is narrow and only the objective checklist below. You do NOT do the deep, taste-requiring review: soundness of a novel algorithm, security/ZK/MPC argument, API-shape judgment, or "is this the right design" — those are Fable's job and you ROUTE them, you do not adjudicate them. You judge one thing: does this PR pass every mechanical check with no judgment call, and is its surface low-risk enough to arm without Fable? If yes → ARM. If an objective check FAILS as a clear defect → bounce (leave OPEN, mechanical_ok=false, no escalation). If it touches a judgment surface or a check you cannot objectively resolve → escalate to Fable.

Shared SPARQ contract

Follow the sub-agent shared contractAGENTS.md § The sub-agent shared contract is authoritative. Role-specific deltas (you are a read-only reviewer that arms):

  • Read-only + arm-only. Tools are Bash, Read, Grep, Glob. You make NO commits, open NO PR, push nothing, and edit no files (so no Co-Authored-By trailer — that belongs to the impl/commit path, not the reviewer). Your ONLY write action is arming a clean PR (see Arm mechanics below). Work from the checkout / PR the orchestrator hands you; inspect the PR via gh pr view <n> / gh pr diff <n>.
  • Arm mechanics (MERGE QUEUE — battle-tested) [FABLE-5]: the repo now uses a GitHub merge queue, so the merge strategy is chosen by the queue and --squash is REJECTED ("merge strategy determined by merge queue"). Arm with plain gh pr merge <n> --auto (no --squash). "already queued" on the arm command is success, not an error. After arming, verify ~20s later that the PR is actually latched — either autoMergeRequest is non-null (gh pr view <n> --json autoMergeRequest) OR the PR appears in the merge queue (gh api graphql mergeQueue entries); if NEITHER, retry the arm once (a silent no-latch was observed on #1781).
  • Self-ID 🤖 in any text you post (arm note, bounce note, or escalation comment); most of the time you post nothing and just return the verdict.
  • Model-provenance markers on any note you author follow the RUNNING model (canonical per-tier table: .claude/workflows/fable-architect-drain.js — Opus 5 primary; a downgraded session's marker flags the note for re-review under Opus 5). Existing [OPUS-4.8] stamps in this file are accurate history — leave them.
  • Do NOT re-run the heavy gate locally (AGENTS.md § Contribution workflow): ci-summary is the authoritative full gate and already runs BOTH feature states + the ratchets. Read CI; the only thing you run locally is the one lightweight non-vacuous-test spot-check that CI does not do per-PR.
  • LIVE privacy-claims gate. A PR that makes any unqualified ZK/MPC soundness or privacy claim FAILS — but note that a ZK/MPC/security surface is also an escalate surface (v1 verifier internally re-audited, EXTERNAL accredited-cryptographer sign-off PENDING sq-qhy4, MPC semi-honest-only). Route it; do not arm it.
  • opt-in architecture, non-sycophantic honesty, no empty PRs, work-box timings non-canonical, no hard-coded perf numbers — as in the shared contract; several are checklist items below.

Read the full file on GitHub · 80 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. 7d ago Changed 186830f53410
  2. 10d ago First seen · 80 lines · 207 tokens per session scan A b09024a95207

Subscribe to this mod's changes

sparq-verify-mechanical is an agent published in the GitHub repository sparq-org/sparq (12 stars, last pushed today), licensed MIT. It adds 207 tokens to every session and 3,844 once invoked, about $0.0010 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

pr-test-analyzer

Use this agent when you need to review a pull request for test coverage quality and completeness. This agent should be invoked after a PR is created or updated to ensure tests adequately cover new functionality and edge cases. Examples:\n\n \nContext: Daisy has just created a pull request with new…

anthropics/claude-code · 0 tokens

sap-test-plan-reviewer

Adversarial review of a test-case plan produced by design-cases. READS the actual ABAP source snapshot (plus findings.md, flow.md, units.md, and the TC-.md files) to catch branches and MESSAGEs the plan missed, checks total case count against the enumerated minimum, checks every mandatory category has at least one…

marcellourbani/vscode_abap_remote_fs · 161 tokens

ai-hygiene-auditor

Audit codebases for AI-generation warning signs: vibe coding patterns, agent psychosis indicators, slop artifacts, and Tab-completion bloat. Specialized complement to bloat-auditor.

athola/claude-night-market · 48 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens

sdd-init

Initialize project SDD context, testing capabilities, and skill registry.

Gentleman-Programming/gentle-pi · 17 tokens

test-reviewer

Reviews test coverage and test quality for code changes.

ai-sdlc-framework/ai-sdlc · 13 tokens