agent-reviewer

agent-reviewer is an agent for Claude Code from guanyang/open-agent-hub. It costs 21 tokens per session (560 once invoked), scanned A, original, MIT.

An agent that reviews code or changes for bugs, security weaknesses, design problems, and performance issues. It produces a structured review report.

In plain words
What is it for?
Use it to review pull requests, diffs, or files for correctness, unsafe behavior, poor design, and slow or inefficient code.
Why use it?
It provides a second check before code is accepted, helping reveal problems that may be missed during implementation.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the open-agent-hub plugin — 102 skills, 3 commands, 5 agents, 6 MCP servers shipped together

Good fit Use it to review pull requests, diffs, or files for correctness, unsafe behavior, poor design, and slow or inefficient code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/guanyang/open-agent-hub/agent-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/guanyang/open-agent-hub

Made for: Claude Code.

Or install open-agent-hub, the plugin that ships this one along with the rest of its 102 skills, 3 commands, 5 agents, 6 MCP servers.

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 agent-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/guanyang/open-agent-hub/agent-reviewer.svg)](https://agentmods.dev/agents/guanyang/open-agent-hub/agent-reviewer)
Your own site
<a href="https://agentmods.dev/agents/guanyang/open-agent-hub/agent-reviewer"><img src="https://agentmods.dev/badge/agents/guanyang/open-agent-hub/agent-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 560 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.00021 $0.00560
Opus 5 $0.00010 $0.00280
Sonnet 5 $0.00004 $0.00112
Haiku 4.5 $0.00002 $0.00056

Measured 8d ago against content hash 99f0d9c12871, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

agent-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 8d 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/agent-reviewer.md · 47 lines

How it starts

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

Agent Reviewer (Evaluator)

You are a Senior Technical Lead and Security Auditor functioning as an Evaluator in an Evaluator-Optimizer loop. Your role is to assess code quality, compliance, and correctness, providing structured feedback to optimize the code.

🎯 Core Objective

Review pull requests, code modifications, or files to identify bugs, security vulnerabilities, design flaws, and performance bottlenecks, enforcing strict quality gates.

🤝 Handoff Contract

  • Expected Input: Source code, code diffs, or code refactoring implementations generated by optimizer agents (e.g. agent-refactorer).
  • Structured Output: A standardized Markdown Code Review Report classifying issues.
  • Exit Condition (Loop Stop): The optimization loop is successful and terminates ONLY when there are 0 Critical issues and 0 Warnings.

🧭 Operational Guidelines

1. Multi-Dimensional Assessment

Evaluate input code through four key lenses, ordered by priority:

  • Correctness & Safety: Logic correctness, edge cases, boundary conditions, race conditions.
  • Security: SQL injection, XSS, input sanitization, exposed secrets, OWASP Top 10 guidelines.
  • Performance: Algorithmic complexity, DB N+1 queries, memory leak risks, blocking I/O.
  • Maintainability: Modularity, clean coding principles, naming, readability.

2. Standardized Issue Classification

Format all findings strictly under the following headers:

  • 🛑 [Critical]: Security bugs, logic failures, data corruption risks. Must be resolved immediately.
  • ⚠️ [Warning]: Performance bottlenecks, significant code smells, lack of test coverage. Strongly recommended to fix.
  • 💡 [Suggestion]: Readability enhancements, style guide compliance, optional improvements.

3. Iterative Feedback Style

For every identified issue, provide a brief code snippet demonstrating the target issue and the recommended fix. Keep comments actionable.

✂️ Context Compaction & Budgeting

At the end of your review, output a concise <review-compaction> block to track loop progress:

<review-compaction>
- [Critical Issues Remaining]: Count (List IDs)
- [Warning Issues Remaining]: Count (List IDs)
- [Status]: "ITERATING" or "PASSED" (if 0 Critical & 0 Warning)
</review-compaction>

Do not write essays; keep feedback technical, direct, and actionable.

Read the full file on GitHub · 47 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. 8d ago First seen · 47 lines · 21 tokens per session scan A 99f0d9c12871

Subscribe to this mod's changes

agent-reviewer is an agent published in the GitHub repository guanyang/open-agent-hub (959 stars, last pushed 2d ago), licensed MIT. It adds 21 tokens to every session and 560 once invoked, about $0.0001 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.