review-pr

review-pr is a command for Codex from saski/arnesto. It costs 0 tokens per session (3,368 once invoked), scanned A, original, Unlicense.

An interactive pull-request review workflow for examining proposed code changes in an editor. It checks out the pull request, analyzes the differences, summarizes them, and supports questions, comments, and optional fixes.

In plain words
What is it for?
Reviewing pull requests, walking through changed files, asking questions about the implementation, posting GitHub comments, and creating optional fix sub-pull requests.
Why use it?
It gives reviewers a guided way to understand a change without manually piecing together its files, description, and history. It also keeps review notes and can send line-specific feedback to GitHub.

Command for Codex

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/saski/arnesto/review-pr
Clone the repo
git clone --depth 1 https://github.com/saski/arnesto

Made for: Codex.

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/saski/arnesto/review-pr.svg)](https://agentmods.dev/commands/saski/arnesto/review-pr)
Your own site
<a href="https://agentmods.dev/commands/saski/arnesto/review-pr"><img src="https://agentmods.dev/badge/commands/saski/arnesto/review-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,368 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.00000 $0.03368
Opus 5 $0.00000 $0.01684
Sonnet 5 $0.00000 $0.00674
Haiku 4.5 $0.00000 $0.00337

Measured 5d ago against content hash 58aa47105fc8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

.agents/commands/review-pr.md · 497 lines

How it starts

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

Review PR

Command: /review-pr

Provides an interactive, AI-assisted code review experience that helps reviewers understand changes, ask questions, provide feedback, and optionally implement fixes directly in the IDE.

What This Command Does

This command orchestrates a comprehensive PR review workflow:

  1. Checks out the PR branch locally
  2. Analyzes all changes in the PR
  3. Reads the PR review document (if available)
  4. Summarizes changes at a high level
  5. Offers post-summary options including file-by-file walkthrough
  6. Allows questions and comments as you go
  7. Posts line-specific comments via GitHub API
  8. Enables direct fixes with optional sub-PRs
  9. Tracks review time for metrics

Workflow Steps

Phase 0: Initialize Review

- Ask for PR number or URL
- Record review start timestamp
- Create review tracking: `.pr-review-metrics.json`
- Fetch PR details using gh CLI
- Checkout PR branch
- Pull latest changes

Phase 1: Analysis & Summary

- Identify all changed files using git diff
- Read PR_REVIEW_DOC.md if it exists (or similar PR description document)
- Analyze complexity of changes
- Generate high-level summary:
  - What changed and why
  - Key files modified
  - Complexity concerns
  - Test coverage status
  - Blocking issues flagged by submitter
- Present summary to reviewer

Phase 2: Post-Summary Options

After presenting the summary, offer these options:

=== Review Options ===

How would you like to proceed?

1. **File-by-file walkthrough** - See each file's diff one at a time with "next" navigation
2. **Show all diffs at once** - Display all changes in one view
3. **Jump to specific file** - Go directly to a file of interest
4. **Ask questions first** - Discuss the changes before diving in
5. **Post a general comment** - Add a PR-level comment

Choose option (1/2/3/4/5):

Phase 3: File-by-File Walkthrough

When the user chooses the file-by-file walkthrough:

For each changed file (1 of N):
  - Show file path, lines added/removed
  - Display summary of changes in that file
  - Show the diff with syntax highlighting
  - Wait for user input before proceeding

User can respond with:
  - "next" - Move to next file
  - "skip" - Skip to next file without commenting
  - "comment [line#] <message>" - Add line-specific comment
  - "question" - Ask about this file
  - "fix this" - Propose or implement a fix
  - "show full" - Show full diff without truncation
  - "done" - Exit walkthrough and go to completion

Read the full file on GitHub · 497 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 · 497 lines · 0 tokens per session scan A 58aa47105fc8

Subscribe to this mod's changes

review-pr is a command published in the GitHub repository saski/arnesto (5 stars, last pushed 9d ago), licensed Unlicense. It costs nothing until one of its globs matches a file; then it loads 3,368 tokens. 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.