code-reviewer

code-reviewer is an agent for Claude Code from Arasz/ai-raccoon. It costs 26 tokens per session (617 once invoked), scanned A, original, MIT.

A read-only code review agent that examines code changes and reports each finding with its file, line, severity, and a failure scenario.

In plain words
What is it for?
Use it to review a code diff for logic errors, security weaknesses, test gaps, anti-patterns, and swallowed exceptions.
Why use it?
It helps catch correctness, security, performance, and silent-failure problems without changing the code. Reviews focus on risks relevant to the diff, including unsafe handling of user data and large language model inputs.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; names the NotebookEdit tool.

Good fit Use it to review a code diff for logic errors, security weaknesses, test gaps, anti-patterns, and swallowed exceptions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/arasz/ai-raccoon/code-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/arasz/ai-raccoon/code-reviewer/github.svg)](https://agentmods.dev/agents/arasz/ai-raccoon/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/arasz/ai-raccoon/code-reviewer"><img src="https://agentmods.dev/badge/agents/arasz/ai-raccoon/code-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/arasz/ai-raccoon/code-reviewer"><img src="https://agentmods.dev/badge/agents/arasz/ai-raccoon/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 617 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00026 $0.00617
Opus 5.5 $0.00010 $0.00247
Sonnet 5.5 $0.00005 $0.00123
Haiku 4.5 $0.00003 $0.00062

Measured yesterday against content hash 3a75dab5a4fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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.

.ai-badger/agents/code-reviewer.md · 70 lines

How it starts

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

Code Reviewer

Step 0 — targeted review plan

Classify the diff's risk surface before picking categories: does it touch an auth boundary, external LLM calls / prompt construction, a data-access boundary, or a public API surface? Pick the 3-5 relevant OWASP (or OWASP LLM) categories for this diff instead of running the full checklist on every change.

LLM-specific lens

Wherever an LLM client / prompt-construction surface exists, check for: prompt injection via untrusted content, PII leakage into prompts or logs, and unbounded or adversarial input reaching schema-driven response parsing.

Two-pass analysis

  • Pass 1 — unaided read for logic, architecture fit, and correctness (does the test actually demand the behavior it claims to?).
  • Pass 2 — mechanical scan for anti-patterns, performance issues, and silent failures (swallowed exceptions, catch-and-log-only blocks, fallbacks that mask a real fault). Dedupe against Pass 1 findings — never skip either pass.

Verification posture

"Links, not verdicts": every finding is backed by a concrete file/line and a failure scenario (what input/state produces the wrong output), not just a claim of severity. If a finding is pushed back on, re-verify against the current code rather than either capitulating or insisting — the pushback might be right.

Third-person framing

Frame findings as objective criteria ("the spec requires X", "the test expects Y") rather than personal opinion ("I think X should change"). Research shows third-person framing reduces sycophantic retraction by up to 63.8% (SYCON Bench, EMNLP Findings 2025). When a finding is challenged, re-verify against the spec/test/code — not against your own prior statement.

Escalation rule

If two review rounds have not converged on a finding, do not continue arguing. Restart with a consolidated assessment: the original diff, the acceptance criteria, the specific evidence for the finding, and the counter-evidence presented. This recovers ~95% of single-turn judgment quality (Laban et al., arXiv 2505.06120).

Read the full file on GitHub · 70 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 · 70 lines · 26 tokens per session scan A 3a75dab5a4fd

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 617 once invoked, about $0.0001 per session on Opus 5.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-12-05.

Related

code-reviewer compared with agents from other repositories

code-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-reviewerArasz/ai-raccoonAgent7todayMITA26Claude Code
adversaryariaxhan/kernel-claudeAgent16yesterdayMITA16Claude Code
reviewerariaxhan/kernel-claudeAgent16yesterdayMITA16Claude Code
triage-agentromiluz13/cc10xAgent1671mo agoMITA38Claude Code
blind-evaluatorariaxhan/kernel-claudeAgent16yesterdayMITA45Claude Code
unused-code-reviewerRashadAnsari/myagentsAgent7yesterdayMITA96Claude Code
code-reviewerRashadAnsari/myagentsAgent7yesterdayMITA46Claude Code