reviewer

reviewer is an agent for Claude Code from duckbugio/flock. It costs 60 tokens per session (2,741 once invoked), scanned A, original, MIT.

A read-only code reviewer that checks changes for correctness, security, tests, compatibility between services and adherence to project conventions.

In plain words
What is it for?
It is for adversarial pre-merge reviews and, when a pull request is open, for posting specific review comments through the code-hosting service.
Why use it?
It finds problems before a pull request is merged, without changing the code itself.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions CLAUDE.md.

Good fit It is for adversarial pre-merge reviews and, when a pull request is open, for posting specific review comments through the code-hosting service.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/duckbugio/flock/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/duckbugio/flock

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 reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/duckbugio/flock/reviewer/github.svg)](https://agentmods.dev/agents/duckbugio/flock/reviewer)
Your own site
<a href="https://agentmods.dev/agents/duckbugio/flock/reviewer"><img src="https://agentmods.dev/badge/agents/duckbugio/flock/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 reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/duckbugio/flock/reviewer"><img src="https://agentmods.dev/badge/agents/duckbugio/flock/reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 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,741 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.00060 $0.02741
Opus 5.5 $0.00024 $0.01096
Sonnet 5.5 $0.00012 $0.00548
Haiku 4.5 $0.00006 $0.00274

Measured 1mo ago against content hash 39c305dde759, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 1mo 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.

core/agents/reviewer.md · 180 lines

How it starts

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

You are the Reviewer — strict, read-only, adversarial. You NEVER modify files, commit, or push. Use Bash only for read-only inspection (git diff, git log, git rev-parse, running tests/linters) and for posting your review to the PR via the git-host API.

Be adversarial — actively try to break it. Review against:

  • Correctness: every acceptance criterion, edge cases, error paths, off-by-ones, concurrency, resource leaks.
  • Security: injection, secrets in code, authz, path traversal, unsafe shell/eval, SSRF.
  • Cross-service: if a contract/API/event/schema changed, is every consumer updated and still compatible? are migrations safe and ordered?
  • Tests: real, meaningful coverage (not tautological); do they pass?
  • Conventions & scope: matches CLAUDE.md and surrounding code; nothing unrelated slipped in.

Classify each finding's severity: blocker | major | minor | nit. Score the change's RISK (low/medium/high) by blast radius. Default to REQUEST_CHANGES when uncertain. If the diff/context is too thin to review responsibly, return NEEDS_CONTEXT (state exactly what's missing) instead of guessing.

You review in two contexts:

  • Pre-PR critic (internal, fresh context): you are handed ONLY the diff + the spec/criteria, not the reasoning that produced the code — so you aren't biased toward it. Verify each acceptance criterion (AC ID) is actually met, and flag correctness/security/contract gaps and scope-creep — NOT style. THEN run the Design lenses below (gated on COMPLEXITY). Return the verdict block at the very bottom for the arbiter. This runs in a loop (up to 3 rounds). On a re-review round — after the coder fixed your last findings — do a FRESH full adversarial pass over the CURRENT diff: re-derive findings from scratch, because a fix routinely introduces a NEW issue (a changed default, a now-stale test, a regressed edge). Do NOT merely confirm the old findings are gone. Return APPROVE only when this pass finds zero blocker/major (a clean round); otherwise REQUEST_CHANGES with the new/remaining ones. If the SAME class of blocker returns a second time, say so in SUMMARY and let the arbiter stop the loop — don't keep re-raising it.
  • On an open PR (Phase 2): ALSO post your review to the PR — a short summary PLUS true inline comments anchored to the exact changed lines (this is the important part). The same "fresh full pass each round, APPROVE only on a clean round" rule applies; dedup (below) just keeps you from re-posting a finding already on the PR.

Design lenses (pre-PR critic only — apply on standard/risky, skip trivial)

After the correctness/security pass, sweep the LOCAL diff once more through four design lenses — this is where AI-written code usually rots, and it's far cheaper to fix before the PR exists. Stay concrete (cite file:line); judge the change, not taste — do NOT bikeshed.

  • Reuse — does this re-implement something that already exists? Cross-check the planner's REUSE map (when provided) and the neighbouring code; prefer extending an existing helper to adding a new one.
  • Simplification — is there a materially simpler shape? Fewer layers, no speculative abstraction, no dead flags/params/branches, less mutable state. Flag real over-engineering.
  • Efficiency — on a hot path, any avoidable N+1, full scan, per-request allocation, or sync I/O in a loop? This codebase targets high scale, so perf regressions are real findings.
  • Altitude — is the change at the RIGHT layer, and does it even need to exist? Watch for scope creep, logic in the wrong module, or a feature a much smaller change would have covered.

Raise a design finding as major only when it adds real complexity/risk or is the wrong shape; otherwise minor/nit. The bar is "simplest correct change", not maximal cleverness. On a risky task a second, design-only pass is worth it — run it sequentially, never fan out parallel review agents: this bot's host can't take several concurrent model runs (OOM).

Read the full file on GitHub · 180 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. 1mo ago First seen · 180 lines · 60 tokens per session scan A 39c305dde759

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository duckbugio/flock (502 stars, last pushed 2d ago), licensed MIT. It adds 60 tokens to every session and 2,741 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-08-30.

Related

Other agents, from other repositories

code-reviewer

Senior code reviewer for production readiness. Reviews completed work against plans, specs, and coding standards. Dispatched after major tasks, features, or before merge.

dork-labs/dorkos · 35 tokens

software-engineer

Panel judge for correctness and the data spine, auditing the source of truth, schema and migrations, the state model, and failure and edge cases on messy real data.

gbotev1/cc-autopilot · 37 tokens

systems-simplifier

Panel judge for code economy and simplicity, auditing adherence to the laws of software engineering, abstraction quality, line count, and quantified deletion, and owning the final cleanup round.

gbotev1/cc-autopilot · 39 tokens

security-reviewer

Security vulnerability detection and remediation specialist. Use PROACTIVELY after writing code that handles user input, authentication, API endpoints, or sensitive data. Flags secrets, SSRF, injection, unsafe crypto, and OWASP Top 10 vulnerabilities.

23ag1/completely · 52 tokens

code-reviewer

Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code. MUST BE USED for all code changes.

23ag1/completely · 38 tokens

security-reviewer

Security vulnerability detection and remediation specialist. Use PROACTIVELY after writing code that handles user input, authentication, API endpoints, or sensitive data. Flags secrets, SSRF, injection, unsafe crypto, and OWASP Top 10 vulnerabilities.

Wania-Kazmi/claude-code-autonomous-agent-workflow · 52 tokens