review-pr

review-pr is a command for Claude Code from cdeust/session-optimizer. It costs 4 tokens per session (325 once invoked), scanned A, a copy of review-pr, MIT.

A code-review command that asks several reviewers to inspect different parts of a change, including code quality, performance, tests, documentation, and security. It combines their noteworthy findings and places specific issues as inline comments.

In plain words
What is it for?
Use it to review a pull request or branch before merging, with comments tied to the relevant lines and general observations kept separate.
Why use it?
It reduces the chance that one reviewer misses an important problem or that the review becomes a long list of minor comments.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the session-optimizer plugin — 1 command, 5 agents, 1 hook, 3 plugins shipped together

Good fit Use it to review a pull request or branch before merging, with comments tied to the relevant lines and general observations kept separate.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/cdeust/session-optimizer/review-pr
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/cdeust/session-optimizer

Made for: Claude Code.

Or install session-optimizer, the plugin that ships this one along with the rest of its 1 command, 5 agents, 1 hook, 3 plugins.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/cdeust/session-optimizer/review-pr/github.svg)](https://agentmods.dev/commands/cdeust/session-optimizer/review-pr)
Your own site
<a href="https://agentmods.dev/commands/cdeust/session-optimizer/review-pr"><img src="https://agentmods.dev/badge/commands/cdeust/session-optimizer/review-pr/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 review-pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/cdeust/session-optimizer/review-pr"><img src="https://agentmods.dev/badge/commands/cdeust/session-optimizer/review-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 325 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 100% copy Near-identical to another mod 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.00004 $0.00325
Opus 5.5 $0.00002 $0.00130
Sonnet 5.5 $0.00001 $0.00065
Haiku 4.5 $0.00000 $0.00032

Measured 17d ago against content hash 288d681f5586, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

Origin

This is a copy

100% identical to review-pr — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/review-pr.md · 27 lines

What it actually says

Perform a comprehensive code review using subagents for key areas:

  • code-quality-reviewer
  • performance-reviewer
  • test-coverage-reviewer
  • documentation-accuracy-reviewer
  • security-code-reviewer

Instruct each to only provide noteworthy feedback. Once they finish, review the feedback and post only the feedback that you also deem noteworthy.

Instruct code-quality-reviewer and documentation-accuracy-reviewer, in addition, to try to refute the pull request, not to confirm it (ADR-1135):

  • For every factual statement the diff or the description adds (in documentation, records, rules, comments, changelog), find its primary source: the files of the repository, the diff itself, or a run, commit or pull request it cites. Report each statement that is false, unsupported, contradicted by another statement of the same pull request, or stronger than its evidence.
  • For every rule or procedure the pull request adds, give a concrete case that follows the rule and still fails, or a harmless case the rule forbids.
  • For every change to a workflow, a CI script, or a file CI reads: say which commit's version of each workflow runs each job, before and after the merge, and whether the tree the pull request leaves passes every step that will run on it.

Provide feedback using inline comments for specific issues. Use top-level comments for general observations or praise. Keep feedback concise.


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. 17d ago Changed · +6 lines 288d681f5586
  2. 20d ago First seen · 21 lines · 4 tokens per session scan A 7b03c6330355

Subscribe to this mod's changes

review-pr is a command published in the GitHub repository cdeust/session-optimizer (2 stars, last pushed 5d ago), licensed MIT. It adds 4 tokens to every session and 325 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to review-pr, differing in 6 lines, and is treated as a copy.

Related

review-pr compared with commands from other repositories

review-pr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
review-prcdeust/session-optimizerCommand25d agoMITA4Claude Code
review-branchdamusix/atomic-claudeCommand1172d agoMITA35Claude Code
noterestarter/lets-workflowCommand172d agoMITA54Claude Code
review-skillsKevinZai/commanderCommand6todayMITA38Claude Code
audit-securitystarter-series/create-starterCommand227d agoMITA63Claude Code
claude-looprunnithan/claudex-setupCommand11mo agoMITB72Claude Code
mr-description-creatorGantisStorm/essentials-claude-codeCommand899mo agoUnlicenseA17Claude Code