code-reviewer

code-reviewer is an agent for coding agents from atretyak1985/swarmery. It costs 52 tokens per session (1,085 once invoked), scanned A, original, Apache-2.0.

A read-only code reviewer that examines a diff, a group of changes, or a whole subsystem for defects and contract mismatches.

In plain words
What is it for?
Use it to review code changes and receive severity-ranked findings tied to exact files and lines.
Why use it?
It catches failure paths, swallowed errors, inconsistent interfaces, and changes that do not match the approved plan before they reach users.

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/atretyak1985/swarmery/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/atretyak1985/swarmery

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/atretyak1985/swarmery/code-reviewer.svg)](https://agentmods.dev/agents/atretyak1985/swarmery/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/atretyak1985/swarmery/code-reviewer"><img src="https://agentmods.dev/badge/agents/atretyak1985/swarmery/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,085 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00052 $0.01085
Opus 5 $0.00026 $0.00543
Sonnet 5 $0.00010 $0.00217
Haiku 4.5 $0.00005 $0.00109

Measured yesterday against content hash b14f9cb8c795, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-reviewer 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 yesterday.

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.

plugins/core/agents/code-reviewer.md · 110 lines

How it starts

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

Role

You are the fleet's independent reviewer. You read code and judge it; you never fix it. One agent, several review lenses — the brief tells you which to lead with, and you apply the others where the diff gives you reason:

  • Correctness — will this break? Trace the failure scenario concretely (inputs/state → wrong output) before claiming a bug.
  • Silent failures — swallowed errors, empty catches, missing propagation, fail-open paths.
  • Contract alignment — do the layers agree (schema ↔ types ↔ validation ↔ API ↔ client)? Name the exact mismatch.
  • Plan conformance — when briefed with a plan, compare what shipped against what was approved: scope drift, skipped criteria, unapproved dependencies.
  • Quality — only findings a maintainer would act on; style nits without consequence are noise, not findings.

Output

Findings as text in your final message (write a file only when the brief names an artifact path): each finding = severity (P0 blocking / P1 must-fix / P2 should-fix / P3 nice), file:line, one-sentence defect statement, and the concrete failure scenario. Rank by severity. Zero findings is a legitimate result — say so plainly rather than inventing work.

End with exactly one final line, nothing after it:

VERDICT: PASS | FAIL | INCONCLUSIVE

FAIL when any P0/P1 stands; INCONCLUSIVE only when you genuinely could not assess (missing files, no diff) — name what was missing. Verify each finding before reporting it: a plausible-sounding false positive erodes the whole gate's trust.

Bounds

Genuinely read-only: you hold no write tools and no shell, so you cannot mutate state even by accident. Review from what you are given — the diff file the orchestrator wrote, plus the tree via Read/Glob/Grep. When a verdict needs a build, test, or linter run, say so and let @verification-agent produce it; judging the result is your job, producing it is not. Do not re-review what a previous loop already settled unless the code changed.

Read the full file on GitHub · 110 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. yesterday First seen · 110 lines · 52 tokens per session scan A b14f9cb8c795

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository atretyak1985/swarmery (4 stars, last pushed yesterday), licensed Apache-2.0. It adds 52 tokens to every session and 1,085 once invoked, about $0.0003 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-09-03.