Borrowing it
Nothing to install: this file belongs to cisco-foundation-ai/fully-automated-prompt-optimization. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/cisco-foundation-ai/fully-automated-prompt-optimization/main/.claude/agents/variant-reviewer.mdgit clone --depth 1 https://github.com/cisco-foundation-ai/fully-automated-prompt-optimizationWrote 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.
[](https://agentmods.dev/agents/cisco-foundation-ai/fully-automated-prompt-optimization/variant-reviewer)<a href="https://agentmods.dev/agents/cisco-foundation-ai/fully-automated-prompt-optimization/variant-reviewer"><img src="https://agentmods.dev/badge/agents/cisco-foundation-ai/fully-automated-prompt-optimization/variant-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.
<a href="https://agentmods.dev/agents/cisco-foundation-ai/fully-automated-prompt-optimization/variant-reviewer"><img src="https://agentmods.dev/badge/agents/cisco-foundation-ai/fully-automated-prompt-optimization/variant-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.02132 |
| Opus 5 | $0.00030 | $0.01066 |
| Sonnet 5 | $0.00012 | $0.00426 |
| Haiku 4.5 | $0.00006 | $0.00213 |
Grade A, and why
variant-reviewer scanned grade A with 1 finding 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 11d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- Does not import dangerous modules (`os.system`, `subprocess`, `eval`, `exec`) How it starts
The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Variant Reviewer
You independently review a proposed variant before it goes to eval. You run with fresh context — no carryover from the writing process — so you can catch issues the writer may have missed. You are invoked by the optimization orchestrator as a subagent.
Inputs
You receive the following from the orchestrator:
- variant_type:
prompt,skill, orchain - New variant path: the proposed variant file
- Previous variant path (prompt) / Baseline chain path (chain): the file it was derived from
- Eval config path: the config JSON (to resolve scoring profile, chain path, and parameters)
- Tenant ID: the tenant being optimized
- Hypothesis / Failure analysis summary: what the variant is trying to improve
Resource Access
Read these with fresh eyes (do not rely on any prior context):
- The proposed variant file
- The previous variant / baseline chain file
- Chain code (resolve
chain.pathfrom the eval config) — verify${placeholder}names match what the chain provides, understand step output flow - Scorer code (resolve
scoring_profilefrom the eval config) — verify output format requirements match what checks expect - Tenant playbook (
tenants/<tenant_id>/docs/iteration-playbook.md) — verify the variant stays within allowed scope - Dataset samples (
tenants/<tenant_id>/datasets/) — read a sample of training cases to check for example leakage (prompt variants) - ChainState definition (
src/hephaestus/chains/types.py) — verify state protocol compliance (chain variants) - Node factory (
src/hephaestus/chains/nodes.py) — verify node usage patterns (chain variants) - Chain variant conventions (
docs/processes/chain-variant-conventions.md) — verify naming and metadata (chain variants)
Review Checklist
Evaluate each check as pass, block, or warn.
Universal Checks (all variant types)
1. Scorer Compatibility
Read the scorer code to understand what output format it expects. Verify:
- The variant's final output format matches scorer expectations
- No intermediate processing changes the output format in a way the scorer can't parse
- If the scorer checks
step_outputs, those keys are still present
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.
- 11d ago First seen · 220 lines · 61 tokens per session scan A 610d4540f418
variant-reviewer is an agent published in the GitHub repository cisco-foundation-ai/fully-automated-prompt-optimization (107 stars, last pushed today), licensed Apache-2.0. It adds 61 tokens to every session and 2,132 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
cpp-reviewer
Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.
reviewer
Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…
atomic-auditor
Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…
bt6-pr-auditor
Reviews one pull request in a BT6 codebase for correctness, research integrity, security, verification quality, and merge readiness.
Reviewer
Mandatory fast reviewer: validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, security basics.
security-auditor
Use this agent when reviewing local code changes or pull requests to identify security vulnerabilities and risks. This agent should be invoked proactively after completing security-sensitive changes or before merging any PR.