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.
npx agentmods add agents/aayushostwal/nexus/code-reviewergit clone --depth 1 https://github.com/aayushostwal/nexusWhat 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.
| Model | Per session | Once 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 |
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.
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:
- Test changes — do they cover the new behavior? Are existing tests weakened or deleted?
- Schema/migration — highest blast radius, lowest reversibility
- Core logic — each function change against its stated intent
- Caller impact — for every changed signature, check all callers from Phase 1
- Error handling — swallowed exceptions, silent failures, missing propagation
- 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.
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.
- 2d ago First seen · 129 lines · 89 tokens per session scan A 90e9f12c6fc7
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.
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.
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.
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.
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.
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.
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.