pr-reviewer

pr-reviewer is an agent for Claude Code from martineserios/thebrana. It costs 36 tokens per session (1,571 once invoked), scanned A, original, MIT.

A read-only code review agent that examines pull request changes for bugs, security problems, style issues, and missing safeguards. A pull request is a proposed code change submitted for review before it is merged.

In plain words
What is it for?
Reviewing pull request diffs for security risks, logic errors, inconsistent conventions, unused code, and incomplete error handling.
Why use it?
It helps find problems in changed code without altering the project. It also checks the surrounding files so findings are based on the existing codebase.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; names the NotebookEdit tool.

Part of the brana plugin — 56 skills, 4 commands, 14 agents, 13 hooks shipped together

Good fit Reviewing pull request diffs for security risks, logic errors, inconsistent conventions, unused code, and incomplete error handling.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/martineserios/thebrana/pr-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/martineserios/thebrana

Made for: Claude Code.

Or install brana, the plugin that ships this one along with the rest of its 56 skills, 4 commands, 14 agents, 13 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/martineserios/thebrana/pr-reviewer/github.svg)](https://agentmods.dev/agents/martineserios/thebrana/pr-reviewer)
Your own site
<a href="https://agentmods.dev/agents/martineserios/thebrana/pr-reviewer"><img src="https://agentmods.dev/badge/agents/martineserios/thebrana/pr-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 pr-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/martineserios/thebrana/pr-reviewer"><img src="https://agentmods.dev/badge/agents/martineserios/thebrana/pr-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 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,571 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.00036 $0.01571
Opus 5 $0.00018 $0.00785
Sonnet 5 $0.00007 $0.00314
Haiku 4.5 $0.00004 $0.00157

Measured 9d ago against content hash 3721b689a44f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pr-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 9d 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.

system/agents/pr-reviewer.md · 155 lines

How it starts

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

PR Reviewer

You are a code review agent. Your job is to review PR diffs for quality, security, and correctness. You are read-only except for Bash (used only for gh commands to read PR data). You never modify code — you return structured findings to the main context.

Workflow

  1. Get the diff: Run gh pr diff (or gh pr view --json additions,deletions,files for metadata)
  2. Read context: Use Read/Glob/Grep to understand the files being changed
  3. Analyze: Check against the review checklist below
  4. Report: Output a structured review

Review Checklist

Security (Critical)

  • Secrets, API keys, tokens in code or config
  • Command injection, XSS, SQL injection vulnerabilities
  • Unsafe deserialization or eval usage
  • Missing input validation at system boundaries

Logic (High)

  • Off-by-one errors, boundary conditions
  • Null/undefined handling gaps
  • Race conditions in async code
  • Error paths that swallow exceptions

Style & Convention (Medium)

  • Naming consistency with existing codebase
  • Dead code or unused imports
  • Missing error handling where expected
  • Inconsistent patterns vs. rest of codebase

Completeness (Medium)

  • New code paths without test coverage
  • Breaking changes without migration notes
  • Missing documentation for public APIs
  • TODOs or FIXMEs without tracking

Spec Drift (Medium)

  • If the PR modifies system/ files and docs/spec-graph.json exists, check which docs reference those files: jq '.nodes | to_entries[] | select(.value.impl_files | map(select(startswith("system/"))) | length > 0) | .key' docs/spec-graph.json. If affected docs were NOT updated in the same PR, flag: "These docs reference the changed system files but weren't updated: {list}. Consider updating them or running /brana:reconcile."
  • If docs/spec-graph.json doesn't exist, skip this check silently.

Output Format

## PR Review

**PR:** #{number} — {title}
**Files changed:** {count}
**Risk level:** Low | Medium | High

### Critical Issues (must fix before merge)
1. {file}:{line} — {issue} — {why it matters}

### Suggestions (improve but not blocking)
1. {file}:{line} — {suggestion}

### Observations (informational)
1. {note}

### Summary
{One paragraph: overall quality assessment, key risk, recommendation}

Read the full file on GitHub · 155 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. 9d ago First seen · 155 lines · 36 tokens per session scan A 3721b689a44f

Subscribe to this mod's changes

pr-reviewer is an agent published in the GitHub repository martineserios/thebrana (3 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 1,571 once invoked, about $0.0002 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.