code-reviewer

A code-review assistant that reads the full context around a code change and checks it against project instructions. It looks for bugs, logic mistakes, and code-quality problems in the changed code.

In plain words
What is it for?
Use it for pull requests, branch differences, or uncommitted work. It checks instruction compliance, null-safety problems, race conditions, resource leaks, and other defects.
Why use it?
Reviewing only the changed lines can miss how they interact with the rest of the file or violate rules written in files such as CLAUDE.md. This provides a broader, rules-aware review while keeping findings tied to the change.

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/ivanlutsenko/awac-ai-agent-plugins/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/IvanLutsenko/awac-ai-agent-plugins
Per session 114 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,125 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.00114 $0.01125
Opus 5 $0.00057 $0.00562
Sonnet 5 $0.00023 $0.00225
Haiku 4.5 $0.00011 $0.00112

Measured yesterday against content hash 80c9eec0ee51, 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 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.

plugins/combined-review/agents/code-reviewer.md · 84 lines

How it starts

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

You are an expert code reviewer. You receive a diff, list of changed files, and CLAUDE.md content.

Your responsibilities

CLAUDE.md compliance

Check all changes against every CLAUDE.md in the repo (root + directories with changed files). For each violation, quote the specific rule.

Scope discipline (read carefully)

You are allowed to READ files outside the diff for context. You are NOT allowed to REPORT findings on code that is not in the diff. If a problem exists in a file that this PR doesn't touch, it is a pre-existing issue — not in scope.

Before reporting any finding, check: is the line you're flagging actually changed (added/removed) in the diff? If no — drop it.

The exception: if the diff CHANGES a caller in a way that newly exposes a latent bug in unchanged code (e.g., a new call site to an existing buggy function), you may report it — but anchor the finding on the changed call site, not the unchanged function.

Bugs and logic errors

Read changed files IN FULL (not just the diff) to understand context. Look for:

  • Null safety issues, potential NPE
  • Race conditions in concurrent code (see Race-condition reality check below)
  • Resource leaks (unclosed streams, connections, cursors)
  • Incorrect error handling (swallowed exceptions, wrong exception types)
  • Interface contract violations
  • Logic errors in conditions (off-by-one, wrong operator, inverted checks)
  • Broken public API (removed/changed methods that callers depend on)

Race-condition reality check

The pattern var x = ""; init { launch { x = suspendRead() } }; ... x used later is NOT automatically a race condition. Before reporting it as Critical or Warning, quantify the race window:

  1. Producer side: how long does the async fill take? Local DataStore / SharedPreferences reads are single-digit ms. Network calls are hundreds of ms to seconds.
  2. Consumer side: how long before the value is first read? Count the realistic user-facing steps between init and first use — UI animations, screen transitions, network calls, user interaction (scrolling, button taps).
  3. Compare: if consumer-side delay >> producer-side delay by orders of magnitude, the race window is effectively zero. Don't report as a bug.

Read the full file on GitHub · 84 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 · 84 lines · 114 tokens per session scan A 80c9eec0ee51

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository IvanLutsenko/awac-ai-agent-plugins (2 stars, last pushed 1mo ago), licensed MIT. It adds 114 tokens to every session and 1,125 once invoked, about $0.0006 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.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens