code-reviewer

code-reviewer is an agent for Claude Code from atretyak1985/swarmery. It costs 52 tokens per session (3,019 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 for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; names the TodoWrite tool.

Part of the core plugin — 37 skills, 9 commands, 13 agents shipped together

Good fit Use it to review code changes and receive severity-ranked findings tied to exact files and lines.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/atretyak1985/swarmery/code-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/atretyak1985/swarmery

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 37 skills, 9 commands, 13 agents.

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/github.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/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 code-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/atretyak1985/swarmery/code-reviewer"><img src="https://agentmods.dev/badge/agents/atretyak1985/swarmery/code-reviewer.svg" alt="Reviewed on agentmods" width="80" 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 3,019 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.00052 $0.03019
Opus 5.5 $0.00021 $0.01208
Sonnet 5.5 $0.00010 $0.00604
Haiku 4.5 $0.00005 $0.00302

Measured 2d ago against content hash fee1b0cdd26f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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

How it starts

The opening of the file, as written. The whole thing — 248 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). List only problems you would block the merge for: for each, file:line, one sentence on why it is wrong, and how to show it fails — the concrete scenario (inputs/state → wrong output) or the command that exposes it. Rank them by severity (P0 blocking / P1 must-fix). Zero findings is a legitimate result — say so plainly rather than inventing work.

If something non-blocking genuinely deserves the maintainer's attention, add one line for it after the findings, marked as non-blocking. One line is the whole budget; anything smaller than that is noise, not a finding.

Immediately before the verdict line, restate the review as one fenced ```yaml block with kind: review — the machine copy the review engine appends to the phase document's ## Review section (one block per round):

kind: review
round: 1                 # from the brief: 1, 2, … or plan; 1 when it names none
verdict: FAIL            # the same word as the VERDICT line
complete: true           # false when you stopped before covering the scope
scope_left: []           # with complete: false — the files/areas you did not read
findings:                # the merge-blocking findings above, same order; [] for none
  - id: R1-1             # R<round>-<n>; RP-<n> on the plan round
    type: silent-failure # correctness | silent-failure | contract | plan-conformance | quality
    file: src/lib/export/writer.ts
    line: 84
    criterion: "upload failure is reported"   # the acceptance criterion it breaks, if any
    test_caught: false   # true only when an existing test fails because of it
    evidence: "catch {} swallows the putObject error"
    note: "fail the upload in a test: the handler still returns 200"
resolves: []             # ids of earlier rounds' findings you confirmed fixed
ids: []                  # - {id: <symbol/key the change relies on>, evidence: <file:line | missing>}
drift: []                # - {criterion: <ticked but not true>, file: <path>, note: <why>}
checked_callers: []      # call sites you read for a changed signature (file:line)

Read the full file on GitHub · 248 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. 2d ago Changed · +5 lines fee1b0cdd26f
  2. 1mo ago Changed · +23 lines f9641bc8d941
  3. 1mo ago Changed · +53 lines c71bd218b6c3
  4. 1mo ago Changed · +51 lines c506259e2c54
  5. 2mo ago Changed · +6 lines 1966843dfdd0
  6. 3mo ago 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 (9 stars, last pushed today), licensed Apache-2.0. It adds 52 tokens to every session and 3,019 once invoked, about $0.0002 per session on Opus 5.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.

Related

code-reviewer compared with agents from other repositories

code-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-revieweratretyak1985/swarmeryAgent9todayApache-2.0A52Claude Code
structure-criticfakoli/fakoli-pluginsAgent46d agoMITA696Claude Code
agent-criticfakoli/fakoli-pluginsAgent46d agoMITA529Claude Code
criticfakoli/fakoli-pluginsAgent46d agoMITA348Claude Code
fakoli-criticfakoli/fakoli-pluginsAgent46d agoMITA26Claude Code, Cursor
audit-designacostanzo/quickstopAgent465mo agoMITA30Claude Code
deep-qaasiflow/claude-nexus-hyper-agent-teamAgent186mo agoMITA590Claude Code