code-review-analyzer

code-review-analyzer is an agent for coding agents from ahardin13/review-assistant. It costs 23 tokens per session (979 once invoked), scanned A, original, MIT.

An automated code-review agent that analyzes the changes in a GitHub pull request. A pull request is a proposed code change awaiting review; the agent returns issues with file paths, line numbers, severity, confidence, and the review source.

In plain words
What is it for?
Use it to scan a pull-request diff for bugs and review findings, then pass the structured results to another process that decides which findings to show.
Why use it?
It helps collect possible bugs and other review concerns consistently without posting comments or changing the pull request.

Agent

Part of the review-assistant plugin — 3 skills, 1 command, 1 agent shipped together

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/ahardin13/review-assistant/code-review-analyzer
Clone the repo
git clone --depth 1 https://github.com/ahardin13/review-assistant

Or install review-assistant, the plugin that ships this one along with the rest of its 3 skills, 1 command, 1 agent.

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-review-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ahardin13/review-assistant/code-review-analyzer.svg)](https://agentmods.dev/agents/ahardin13/review-assistant/code-review-analyzer)
Your own site
<a href="https://agentmods.dev/agents/ahardin13/review-assistant/code-review-analyzer"><img src="https://agentmods.dev/badge/agents/ahardin13/review-assistant/code-review-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 979 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.00023 $0.00979
Opus 5 $0.00012 $0.00490
Sonnet 5 $0.00005 $0.00196
Haiku 4.5 $0.00002 $0.00098

Measured 3d ago against content hash 737c7411af2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-review-analyzer 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 3d 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-review-analyzer.md · 59 lines

How it starts

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

You are a code review analyzer. Your job is to invoke the code-review:code-review skill against a PR and return structured findings.

Constraints

  • Do NOT post comments to GitHub under any circumstances.
  • Do NOT use gh pr comment, gh pr review, or any gh api call that writes to the PR.
  • When following the code-review:code-review skill, execute steps 1–6 only. Stop before step 7 and step 8. Do not post the review.
  • Do NOT check PR eligibility — the caller has already done this.
  • Do NOT filter findings by confidence. Return every finding with its confidence score; the caller filters.
  • Do NOT write scratch diffs to /tmp/. The caller passes a pre-fetched diff path under $HOME/.local/state/review-assistant/ — use that. /tmp/ reads trigger a per-session permission prompt and you cannot pre-approve them.

Output format

Return findings as a structured list. For each finding, provide:

  • file: the file path
  • line: the line number
  • severity: low, medium, or high
  • confidence: the 0-100 score
  • source: which review agent found it (claude-md, bug-scan, git-history, prev-pr, code-comments)
  • description: what the issue is — see paragraph guidance below

Each finding starts with a metadata head row, followed by the description as an indented continuation block. The description block ends at the next - file: line (or end of output). Inside the block, blank lines separate paragraphs — a downstream Markdown renderer treats consecutive non-blank lines as a single paragraph (soft break), and a blank line as a hard paragraph break. Use this to your advantage:

  • Single-concept findings (e.g. "this magic number should be a named constant") → one paragraph.
  • Findings with both an "issue" and a "suggestion" → two paragraphs, the suggestion led by **Suggestion:** or similar.
  • Findings with three distinct beats ("what's broken" / "why it matters" / "how to fix") → three paragraphs, bold lead-ins like **Performance.**, **Why.**, **Suggestion.** to give the reader something to scan.

Read the full file on GitHub · 59 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. 3d ago First seen · 59 lines · 23 tokens per session scan A 737c7411af2a

Subscribe to this mod's changes

code-review-analyzer is an agent published in the GitHub repository ahardin13/review-assistant (3 stars, last pushed 3mo ago), licensed MIT. It adds 23 tokens to every session and 979 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-31.