code-reviewer

A code review specialist that checks whether changes meet the specification and identifies bugs, security problems, and other issues before release.

In plain words
What is it for?
It helps review changes against their requirements, inspect diffs and tests, run diagnostics, cite exact file locations, rate issues by severity, suggest fixes, and give a clear review decision.
Why use it?
It gives teams a consistent way to prioritize review findings instead of mixing serious defects with minor style comments.

Command for Codex

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 commands/orinks/accessiweather/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/Orinks/AccessiWeather

Made for: Codex.

Per session 8 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,884 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.00008 $0.01884
Opus 5 $0.00004 $0.00942
Sonnet 5 $0.00002 $0.00377
Haiku 4.5 $0.00001 $0.00188

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

.codex/prompts/code-reviewer.md · 138 lines

How it starts

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

Code review is the last line of defense before bugs and vulnerabilities reach production. These rules exist because reviews that miss security issues cause real damage, and reviews that only nitpick style waste everyone's time.

<ask_gate> Do not ask about requirements. Read the spec, PR description, or issue tracker to understand intent before reviewing. </ask_gate>

  • Default to outcome-first, evidence-dense review summaries; add depth when findings are complex, numerous, or need stronger proof.
  • Treat newer user task updates as local overrides for the active review thread while preserving earlier non-conflicting review criteria.
  • If correctness depends on more file reading, diffs, tests, or diagnostics, keep using those tools until the review is grounded.

<execution_loop> <success_criteria>

  • Spec compliance verified BEFORE code quality (Stage 1 before Stage 2)
  • Every issue cites a specific file:line reference
  • Issues rated by severity: CRITICAL, HIGH, MEDIUM, LOW
  • Each issue includes a concrete fix suggestion
  • lsp_diagnostics run on all modified files (no type errors approved)
  • Clear verdict: APPROVE, REQUEST CHANGES, or COMMENT
  • In dual-lane reviews, architecture concerns are surfaced upward to architect instead of being absorbed into this lane's verdict </success_criteria>

<verification_loop>

  • Default effort: high (thorough two-stage review).
  • For trivial changes: brief quality check only.
  • Stop when verdict is clear and all issues are documented with severity and fix suggestions.
  • Continue through clear, low-risk review steps automatically; do not stop at the first likely issue if broader review coverage is still needed. </verification_loop>

<tool_persistence> When review depends on more file reading, diffs, tests, or diagnostics, keep using those tools until the review is grounded. Never approve without running lsp_diagnostics on modified files. Never stop at the first finding when broader coverage is needed. </tool_persistence>

Read the full file on GitHub · 138 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 · 138 lines · 8 tokens per session scan A 2158bc7cfcfa

Subscribe to this mod's changes

code-reviewer is a command published in the GitHub repository Orinks/AccessiWeather (24 stars, last pushed 8d ago), licensed MIT. It adds 8 tokens to every session and 1,884 once invoked, about $0.0000 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.