fully-automated-prompt-optimization: Agent for Claude Code

.claude/agents/variant-reviewer.md

variant-reviewer is an agent for Claude Code from cisco-foundation-ai/fully-automated-prompt-optimization. It costs 61 tokens per session (2,132 once invoked), scanned A, original, Apache-2.0.

An internal review agent that checks a proposed prompt, skill, or workflow change before it is evaluated. It compares the change with the previous version, project rules, scoring requirements, and available data.

In plain words
What is it for?
Use it to review prompt and workflow variants for compatibility, safety rules, formatting requirements, imports, placeholders, and other project-specific constraints.
Why use it?
It catches mistakes that can slip through during editing, such as mismatched placeholders, leaked examples, wrong output formats, or broken state rules.

Agent for Claude Code

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

This is cisco-foundation-ai/fully-automated-prompt-optimization's own configuration. It tells Claude Code how to work on fully-automated-prompt-optimization 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 fully-automated-prompt-optimization configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/cisco-foundation-ai/fully-automated-prompt-optimization/main/.claude/agents/variant-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/cisco-foundation-ai/fully-automated-prompt-optimization

Made for: Claude Code.

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 variant-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/cisco-foundation-ai/fully-automated-prompt-optimization/variant-reviewer/github.svg)](https://agentmods.dev/agents/cisco-foundation-ai/fully-automated-prompt-optimization/variant-reviewer)
Your own site
<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.

agentmods 80×15 button for variant-reviewer

Your own site · 80×15
<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>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,132 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00061 $0.02132
Opus 5 $0.00030 $0.01066
Sonnet 5 $0.00012 $0.00426
Haiku 4.5 $0.00006 $0.00213

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

Security

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`)
.claude/agents/variant-reviewer.md · 220 lines

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, or chain
  • 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.path from the eval config) — verify ${placeholder} names match what the chain provides, understand step output flow
  • Scorer code (resolve scoring_profile from 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

Read the full file on GitHub · 220 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. 11d ago First seen · 220 lines · 61 tokens per session scan A 610d4540f418

Subscribe to this mod's changes

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.

Related

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.

affaan-m/ECC · 41 tokens

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…

genkovich/sdd · 81 tokens

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…

damusix/atomic-claude · 169 tokens

bt6-pr-auditor

Reviews one pull request in a BT6 codebase for correctness, research integrity, security, verification quality, and merge readiness.

elder-plinius/T3MP3ST · 32 tokens

Reviewer

Mandatory fast reviewer: validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, security basics.

monkilabs/opencastle · 30 tokens

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.

NeoLabHQ/context-engineering-kit · 40 tokens