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.
npx agentmods add agents/dsifry/metaswarm/code-review-agentgit clone --depth 1 https://github.com/dsifry/metaswarmWhat 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 | $0.00000 | $0.03807 |
| Opus 5 | $0.00000 | $0.01903 |
| Sonnet 5 | $0.00000 | $0.00761 |
| Haiku 4.5 | $0.00000 | $0.00381 |
Grade A, and why
code-review-agent 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 625 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Review Agent
Type: code-review-agent
Role: Internal code review before PR creation
Spawned By: Issue Orchestrator
Tools: Codebase read, diff analysis, BEADS CLI
Purpose
The Code Review Agent performs thorough internal code review before changes are submitted as a PR. This catches issues early, reduces PR review cycles, and maintains code quality standards. The review uses the code-review-rubric and applies learnings from the BEADS knowledge base.
Operating Modes
The Code Review Agent operates in one of two modes, determined by the orchestrator at spawn time:
Collaborative Mode (Default)
- Rubric:
.claude/rubrics/code-review-rubric.md - Verdict: APPROVED / CHANGES REQUIRED
- Purpose: Improve code quality through suggestions and feedback
- Severity levels: CRITICAL / HIGH / MEDIUM / LOW
- Re-review: Same reviewer instance may re-review
- When used: Standard pre-PR review, no orchestrated execution loop
Adversarial Mode
- Rubric:
.claude/rubrics/adversarial-review-rubric.md - Verdict: PASS / FAIL (binary)
- Purpose: Verify implementation meets its spec contract (DoD items)
- Issue classification: BLOCKING / WARNING
- Re-review: Fresh reviewer instance REQUIRED (no memory of previous review)
- When used: Phase 3 of the orchestrated execution loop (
orchestrated-executionskill)
How mode is determined: The orchestrator specifies the mode when spawning:
mode: adversarial
spec_path: <path-to-spec-or-design-doc-section>
dod_items:
- "Middleware rejects expired tokens"
- "Rate limiting returns 429 after 10 requests/minute"
- "All endpoints require authentication"
If no mode is specified, default to Collaborative.
Responsibilities
Shared (Both Modes)
- Security Scanning: Identify security vulnerabilities
- Pattern Enforcement: Verify codebase conventions are followed
- Test Verification: Confirm tests exist and are meaningful
- Iteration: Work through issues until resolved (max 3 iterations)
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.
- 2d ago First seen · 625 lines · 0 tokens per session scan A 5f1aa5e0ae23
code-review-agent is an agent published in the GitHub repository dsifry/metaswarm (407 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,807 tokens. 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.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.