pr-sub-reviewer

pr-sub-reviewer is an agent for Claude Code from rp1-run/rp1. It costs 17 tokens per session (1,754 once invoked), scanned A, original, Apache-2.0.

A focused code-review agent that examines one part of a pull request across several quality and risk areas.

In plain words
What is it for?
It checks behavior, maintainability, contracts, risks, and test coverage for its assigned review unit, then reports evidence-backed findings or an empty result when none are found.
Why use it?
Large pull requests are easier to review when divided into smaller sections. It also avoids reporting issues that cannot be confirmed from the limited section it receives.

Agent for Claude Code

Written for Claude Code: arguments in frontmatter. Also seen: model in frontmatter; positional $N argument.

Part of the rp1-dev plugin — 23 skills, 36 agents shipped together

Good fit It checks behavior, maintainability, contracts, risks, and test coverage for its assigned review unit, then reports evidence-backed findings or an empty result when none are found.

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

Made for: Claude Code.

Or install rp1-dev, the plugin that ships this one along with the rest of its 23 skills, 36 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/rp1-run/rp1/pr-sub-reviewer"><img src="https://agentmods.dev/badge/agents/rp1-run/rp1/pr-sub-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 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,754 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.00017 $0.01754
Opus 5 $0.00009 $0.00877
Sonnet 5 $0.00003 $0.00351
Haiku 4.5 $0.00002 $0.00175

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

Security

Grade A, and why

pr-sub-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 2d 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.

plugins/dev/agents/pr-sub-reviewer.md · 222 lines

How it starts

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

PR Sub-Reviewer - Unit Analysis Agent

You are SubReviewerGPT, a specialized code reviewer that analyzes ONE review unit across 5 dimensions. You produce findings with confidence scores and a compact change summary for cross-file synthesis.

CRITICAL: You are seeing PARTIAL context. Do NOT flag "incomplete feature" or "missing tests" if those might exist in other units being reviewed in parallel.

CORE PRINCIPLE: It is perfectly acceptable to find NO issues. A clean PR with zero findings is a valid, positive outcome—not a failure. Do NOT manufacture issues or work hard to find problems where none exist. Report honestly: if the code is correct, say so with "findings": [].

Design/Review Discipline

DO:

  • Prefer existing arch/test patterns; new seams only for real complexity reduction.
  • Judge maintainability via behavior, contracts, cohesion, coupling, explicit effects/failures, ops risk.
  • Support findings with evidence: file:line, artifact path, command output, requirement.
  • Flag missing tests only when concrete regression risk lacks coverage.
  • Reject low-value tests: impl-detail locks, library/framework primitives, duplicate coverage, flakes, unjustified combinatorics.
  • Flag diagnosability gaps when prod failures would be silent or hard to trace.
  • Mark uncertainty; prefer no finding over low-confidence speculation.

<unit_json> $1 </unit_json>

<kb_root> {{KB_ROOT from prompt}} </kb_root>

<intent_json> $2 </intent_json>

<pr_files> $3 </pr_files>

1. Load Knowledge Base

Read {KB_ROOT}/index.md to understand project structure and available KB files.

Selective Loading: For code review, load:

  • {KB_ROOT}/patterns.md - Required for pattern consistency checks
  • {KB_ROOT}/architecture.md - Only if reviewing cross-component changes

Do NOT load all KB files. Code review needs patterns context, not full project documentation.

CRITICAL: After KB is loaded, CONTINUE with analysis. Do NOT stop here.

If {KB_ROOT}/ directory doesn't exist, continue with degraded context (log warning in output, suggest running /knowledge-build first).

Read the full file on GitHub · 222 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. 2d ago First seen · 222 lines · 17 tokens per session scan A f07584319aa0

Subscribe to this mod's changes

pr-sub-reviewer is an agent published in the GitHub repository rp1-run/rp1 (38 stars, last pushed 2d ago), licensed Apache-2.0. It adds 17 tokens to every session and 1,754 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-09-07.

Related

Other agents, from other repositories

test-sufficiency

Review a pull request diff and judge whether the newly added code is adequately covered by tests — especially boundary conditions, error paths, and exception branches. Output a short "covered / uncovered" table with specific line-level gaps. Use this agent on PRs that add behavior. It supplements Codex / CodeRabbit…

0xmariowu/AgentLint · 78 tokens

reality-checker

Evidence-based readiness assessor — defaults to NEEDS WORK, rejects hedge-word claims, and demands concrete proof (test output, screenshots, logs) for every claim before declaring READY.

RaNDoM6913/claude-code-superkit · 39 tokens

evaluator

Calibrated QA evaluator — scores implementation against Sprint Contract criteria and returns exactly one verdict (PROCEED/ITERATE/ESCALATE) with structured critique for the /dev iteration loop.

RaNDoM6913/claude-code-superkit · 41 tokens

goal-verifier

Goal-backward verification — checks each stated goal through the 4-level substantiation ladder (EXISTS/SUBSTANTIVE/WIRED/DATA-FLOW) and returns exactly one of PASS/NEEDS-ATTENTION/NEEDS-REMEDIATION.

RaNDoM6913/claude-code-superkit · 56 tokens

pr-test-analyzer

Review pull request test coverage quality and completeness, with emphasis on behavioral coverage and real bug prevention.

affaan-m/ECC · 24 tokens

checker

Judges finished work against its validator and the real need, leaving nothing unchecked. Use when code or a deliverable needs independent verification before it ships. Never edits the work, never implements the fix.

ai-driven-dev/framework · 42 tokens