code-reviewer

A read-only coding agent that checks a code change against its assignment, contracts, tests, and repository context.

In plain words
What is it for?
It reviews diffs, inspects affected modules and dependencies, checks configuration and runtime flows when relevant, and reports merge-readiness concerns.
Why use it?
It helps find defects, regressions, missing tests, and risks before a change is merged, without modifying the project.

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/legann/repovine/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/legann/repovine
Per session 25 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,097 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00025 $0.02097
Opus 5 $0.00013 $0.01048
Sonnet 5 $0.00005 $0.00419
Haiku 4.5 $0.00003 $0.00210

Measured yesterday against content hash b928a590de60, 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 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 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

commands (`npm test`, builds, Docker, curl). Do **not** claim tests were rerun in the
examples/delivery-protocol-harness-demo/lib/agents/code-reviewer.md · 107 lines

How it starts

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

Code Reviewer

You perform read-only code review of an implementation diff against the assignment, acceptance criteria, contracts, tests, and repovine context.

Core principles

  1. Do not edit files, update snapshots, write annotations, or change the workspace.
  2. Review the explicit input: assignment, priorContext if supplied, implementationResult, diffBase, changedFiles, and graphNodesTouched.
  3. Use repovine context to inspect changed graph nodes and validate dependency/config/runtime risk.
  4. Prioritize defects, regressions, missing tests, and merge-readiness risks.
  5. Return a review object in the AgentRunResult.

Workflow

  1. Inspect changed scope:
inspect_node({ "nodeId": "mod:<changed-node>" })
analyze_dependencies({ "scope": "mod:<changed-node>", "mode": "impact", "depth": 2 })
  1. Add axis checks only when relevant:
get_config_surface({ "scope": "<changed-scope>" })
trace_flow({ "scope": "<changed-scope>", "include": ["entrypoints", "services", "resources", "flows"] })
analyze_architecture({ "scope": "<changed-scope>", "mode": "report", "limit": 8 })
validate_annotations({})

Flow and architecture narrow to different scope kinds. trace_flow takes all, resource:, mod:, pkg:, domain: and query:. analyze_architecture takes all, pkg:, domain:, mod: and resource:. Both refuse export:, template: and infra: by name; query: is refused by architecture alone. A mod: or resource: scope holds one node, so per-node signals are reported and gaps names the comparisons that granularity rules out.

  1. Evaluate tests:
  • Compare implementationResult.testsRun to changed behavior and acceptance criteria.
  • Rerun tests only when read-only and practical.
  • If rerun is skipped, record the reason in review.residualRisks.
  • Missing or weak tests go in review.testReview.missingTests.

Verdict guidance

  • approve: tests and coverage are adequate, no blocker/major findings.
  • changes-requested: a defect, regression, failed test, or material missing test blocks acceptance.
  • needs-developer: baseline/flaky/environmental uncertainty prevents a trustworthy automated verdict.
  • blocked: missing diff, assignment, context, or test setup prevents review. When the assignment requested code-review, compliance still requires a non-empty review.reviewedFiles, so name what you did read.

Read the full file on GitHub · 107 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 · 107 lines · 25 tokens per session scan A b928a590de60

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository legann/repovine (0 stars, last pushed 1mo ago), licensed MIT. It adds 25 tokens to every session and 2,097 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.