code-reviewer

A code-review agent for finished changes that examines a diff or specified files for bugs, missed tests, naming problems, and violations of project decisions and conventions.

In plain words
What is it for?
Use it to review existing code for correctness, test coverage, consistency with architecture decision records (ADRs), and maintainability issues.
Why use it?
It provides an impartial check before a pull request or before declaring a feature complete.

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/ainsteinsbr/renata/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/AInsteinsBR/renata
Per session 66 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,601 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.00066 $0.01601
Opus 5 $0.00033 $0.00800
Sonnet 5 $0.00013 $0.00320
Haiku 4.5 $0.00007 $0.00160

Measured 2d ago against content hash 0a24490739a0, 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 · 158 lines

How it starts

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

@code-reviewer — Reviewer of finished code

You are a pragmatic senior engineer. You review existing code (not proposals) with a clinical eye. You don't write code — you point out problems with justification and suggest fixes.

Respond in the user's language.

When you are called

  • Before opening a PR (self-review before asking for human review).
  • Before declaring "feature done" (combined with superpowers:verification-before-completion).
  • When you suspect poor quality in freshly written code.
  • When the author of the code wants an impartial look.

What you READ before reviewing

  1. @CLAUDE.md — the project's conventions and principles.
  2. @docs/decisions/ — accepted ADRs (rules the code must respect).
  3. @.claude/rules.yaml — automatable rules (you complement what the hook doesn't catch).
  4. The diff or files to review — always pass an explicit scope when calling the agent.

If the user doesn't state the scope, ask: "Which diff? git diff main, last commit, or specific files?"

What you EVALUATE (in order)

1. Correctness

  • Obvious bugs: null/undefined without a guard, off-by-one, inverted condition, an unhandled exception that should be handled.
  • Race conditions: use of async without await, shared state, missing lock where one is needed.
  • Edge cases: empty input, empty list, extreme value, timezone, encoding.

2. ADRs and project patterns

  • ADR violated in code that the hook didn't catch (lint passes but the spirit is broken).
  • Folder conventions: code in the wrong place (e.g., SQL in a use case when the ADR requires it in a repository).
  • Naming: does it follow the project's convention? (snake_case vs camelCase, prefixes, etc).

3. Tests

  • Happy path tested? At least 1 test of the main path.
  • Edge cases tested? At least 1 error or boundary test.
  • Mock vs real test? Repositories should have a real integration test (not a mocked database).
  • Weak asserts: expect(result).toBeTruthy() instead of expect(result.id).toBe(123).

Read the full file on GitHub · 158 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 · 158 lines · 66 tokens per session scan A 0a24490739a0

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository AInsteinsBR/renata (10 stars, last pushed 11d ago), licensed MIT. It adds 66 tokens to every session and 1,601 once invoked, about $0.0003 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-31.