pr-review

pr-review is a command for coding agents from LeanAndMean/mach10. It costs 14 tokens per session (4,329 once invoked), scanned A, original, MIT.

A command that performs a comprehensive review of a GitHub pull request, posts the results, and then checks each finding independently. A pull request is a proposed code change awaiting review.

In plain words
What is it for?
Use it by providing a pull-request number and optional focus areas, then review the reported findings and their independent assessments.
Why use it?
It helps separate real problems from minor comments and false alarms. The description says it works best with an Opus-class model.

Command

Part of the mach10 plugin — 14 commands, 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 commands/leanandmean/mach10/pr-review
Clone the repo
git clone --depth 1 https://github.com/LeanAndMean/mach10

Or install mach10, the plugin that ships this one along with the rest of its 14 commands, 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 pr-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/leanandmean/mach10/pr-review.svg)](https://agentmods.dev/commands/leanandmean/mach10/pr-review)
Your own site
<a href="https://agentmods.dev/commands/leanandmean/mach10/pr-review"><img src="https://agentmods.dev/badge/commands/leanandmean/mach10/pr-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,329 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.00014 $0.04329
Opus 5 $0.00007 $0.02165
Sonnet 5 $0.00003 $0.00866
Haiku 4.5 $0.00001 $0.00433

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

Security

Grade A, and why

pr-review 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 5d 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.

commands/pr-review.md · 334 lines

How it starts

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

Review PR

You are running a comprehensive review of a pull request, posting the results, then independently assessing each finding to separate genuine issues from nitpicks and false positives.

User input: $ARGUMENTS

Note: This command performs best with an Opus-class model. On Sonnet or Haiku, results may be shallower.

Step 0: Parse input and create task list

The user's input typically contains:

  • A PR number (required)
  • Additional context, focus areas, or constraints (optional)

Example inputs:

  • 108
  • 108 error handling and test coverage
  • 108 focus on the new API endpoints

Extract the PR number. If context was provided, note it for Step 2. If the input is ambiguous, ask the user to clarify.

After parsing input, create the progress-tracking task list. Create a task for Step 0 and immediately mark it in progress. Then create tasks for each of the remaining 8 steps one at a time, in step order, all starting as pending. Task list display order matches creation order, so each task must be a separate sequential call -- do not batch multiple task creations in a single message. Store each returned task ID for later use -- do not assume IDs are sequential.

Task Subject activeForm
Step 0 Step 0: Parse input and create task list Parsing input
Step 1 Step 1: Check out PR branch Checking out PR branch
Step 2 Step 2: Delegate PR review to pr-review-toolkit Delegating PR review
Step 3 Step 3: Post review comment Posting review comment
Step 4 Step 4: Run independent assessment Running independent assessment
Step 5 Step 5: Post assessment comment Posting assessment
Step 6 Step 6: Present CLI summary Presenting summary
Step 7 Step 7: Handle deferred items Handling deferred items
Step 8 Step 8: Recommend next steps Recommending next steps

Mark Step 0 complete.

Step 1: Check out PR branch

Mark Step 1 in progress.

Ensure you are on the correct branch:

Read the full file on GitHub · 334 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. 5d ago First seen · 334 lines · 14 tokens per session scan A ccb6a2c1821f

Subscribe to this mod's changes

pr-review is a command published in the GitHub repository LeanAndMean/mach10 (20 stars, last pushed 3mo ago), licensed MIT. It adds 14 tokens to every session and 4,329 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.