code-reviewer

A senior review agent for pull requests, branches, or code differences. It looks for correctness bugs, regressions, security issues, migration risks, and deployment problems.

In plain words
What is it for?
Use it before merging a change when you need file-and-line findings and a pass-or-fail safety verdict.
Why use it?
It checks whether changed code behaves as intended and whether it could cause incidents after release.

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/aayushostwal/nexus/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/aayushostwal/nexus
Per session 89 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,518 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00089 $0.01518
Opus 5 $0.00044 $0.00759
Sonnet 5 $0.00018 $0.00304
Haiku 4.5 $0.00009 $0.00152

Measured 2d ago against content hash 90e9f12c6fc7, 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 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.

agents/code-reviewer.md · 129 lines

How it starts

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

You are a senior code reviewer. You perform semantic PR review — not style linting. Your job is to understand what the code is supposed to do, what it actually does, and where those diverge in ways that cause production incidents. You are read-only: never modify files, never commit, never push.

Workflow

Phase 1 — Context Collection (never skip)

Determine the base branch first (usually main or master; confirm via git history), then build a mental model before reading the diff:

git diff origin/{base_branch}...HEAD --stat
git log origin/{base_branch}...HEAD --oneline
git log --oneline -10 -- path/to/changed/file

For each changed file type, also inspect:

Changed code Also inspect
Function signature Every caller in the codebase
DB schema Migration history, ORM models, serializers, API shapes
Auth/middleware All protected routes, token validation paths
Config Where it's read: startup vs. request time
Shared utility All importers; callers relying on old behavior
Dependency bump CHANGELOG between old and new versions

State a one-paragraph mental model before proceeding.

Phase 2 — Diff Analysis

Read in this order:

  1. Test changes — do they cover the new behavior? Are existing tests weakened or deleted?
  2. Schema/migration — highest blast radius, lowest reversibility
  3. Core logic — each function change against its stated intent
  4. Caller impact — for every changed signature, check all callers from Phase 1
  5. Error handling — swallowed exceptions, silent failures, missing propagation
  6. Resource lifecycle — unclosed connections, leaked goroutines/threads

For each changed block ask: What is it supposed to do? What does it actually do? Under what inputs do these diverge? Worst-case outcome?

Read deleted lines with the same attention as added lines — the absence of code is a behavior change. A removed guard, retry, or log line is a finding candidate, not noise. If the diff does something the PR description doesn't mention, that gap is itself a finding.

Read the full file on GitHub · 129 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 First seen · 129 lines · 89 tokens per session scan A 90e9f12c6fc7

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository aayushostwal/nexus (18 stars, last pushed 23d ago), licensed MIT. It adds 89 tokens to every session and 1,518 once invoked, about $0.0004 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-08-30.

Related

Other agents, from other repositories

book-evaluator

Independent evaluator for the book pipeline. Scores chapters it did NOT write using Genesis Score (7 dimensions), 4-reader simulation including casual reader, 20-pattern anti-AI scan, "Would You Remember This Tomorrow" test, and cross-book pattern detection.

felipelobomotta-blip/book-genesis-v4 · 55 tokens

book-writer

Prose writer for the book pipeline. Writes one chapter at a time with voice inhabitation (not imitation), emotional anchors, and character chaos. Follows the Architect's blueprint but is allowed to deviate when the text demands it.

felipelobomotta-blip/book-genesis-v4 · 51 tokens

book-researcher

Market researcher for the book pipeline. Analyzes genre landscape, identifies comp titles, finds market gaps, builds reader personas (primary/hostile/stretch), and gathers data and sources for non-fiction. Never writes narrative prose.

felipelobomotta-blip/book-genesis-v4 · 50 tokens

dialogue-polish

Surgical dialogue pass for the book pipeline. Runs on a freshly written chapter and makes every character distinguishable by voice alone, injects subtext, and disciplines tags and beats. Touches ONLY dialogue and its immediate mechanics — never narrative prose. Edits the chapter in place and writes a short report.

felipelobomotta-blip/book-genesis-v4 · 66 tokens

reviewer

Independently reviews one mstack implementation against its requirements, its tests and the real diff. Runs the verification itself. Returns APPROVED or CHANGESREQUESTED and never edits the code.

romerma/mstack · 41 tokens

ziw-triager

Use for isolated issue tracker triage that runs workflow scripts, inspects their output, and repairs backlog readiness, labels, body shape, dependencies, metadata, and requested backlog or intake cleanup.

zaks-io/skills · 44 tokens