review-pr

review-pr is a command for Claude Code from talayash/agentrium. It costs 0 tokens per session (292 once invoked), scanned A, original, MIT.

A pull-request review command checks the proposed code changes against project-specific Rust, React, Tauri, and security rules. A pull request is a request to merge changes into a shared codebase.

In plain words
What is it for?
Use it to review a pull request by number or URL, inspect its changed files, and produce a grouped summary of findings.
Why use it?
It helps catch bugs, mismatched interfaces, cleanup problems, unsafe permissions, leaked secrets, and inconsistent versions before the changes are merged.

Command for Claude Code

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

Made for: Claude Code.

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/talayash/agentrium/review-pr.svg)](https://agentmods.dev/commands/talayash/agentrium/review-pr)
Your own site
<a href="https://agentmods.dev/commands/talayash/agentrium/review-pr"><img src="https://agentmods.dev/badge/commands/talayash/agentrium/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 292 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.00292
Opus 5 $0.00000 $0.00146
Sonnet 5 $0.00000 $0.00058
Haiku 4.5 $0.00000 $0.00029

Measured 3d ago against content hash b46c5bceae7f, 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 3d 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.

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

What it actually says

Review a pull request

Review the PR at $ARGUMENTS (a PR number or URL). Fetch the diff and changed files, then check for:

Rust Backend

  1. No .unwrap() in production code paths - use .map_err() or ? operator
  2. Proper Arc<Mutex<>> usage for shared state access
  3. PTY reader threads properly handle process exit
  4. CREATE_NO_WINDOW flag used for spawned processes on Windows
  5. All #[tauri::command] handlers return Result<T, String>

React Frontend

  1. xterm.js Terminal instances are disposed on unmount
  2. Tauri event listeners return unlisten functions that are called on cleanup
  3. No stale closures in Zustand selectors or useEffect hooks
  4. Consistent dark glassmorphic Tailwind classes

IPC Consistency

  1. Every new invoke() call has a matching registered command in main.rs
  2. Parameter names and types match between Rust and TypeScript
  3. Error handling uses try/catch around invoke calls

General

  1. No new capabilities added to capabilities/default.json without justification
  2. Version numbers consistent across package.json, Cargo.toml, tauri.conf.json
  3. No secrets or credentials committed

Provide a summary with findings grouped by severity (blocking, warning, nit).

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. 3d ago First seen · 29 lines · 0 tokens per session scan A b46c5bceae7f

Subscribe to this mod's changes

review-pr is a command published in the GitHub repository talayash/agentrium (39 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 292 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-30.