review

A code-review checklist that evaluates changes in order: purpose, edge cases, reliability, code structure, evidence, clarity, and style.

In plain words
What is it for?
Reviewing pull requests, checking tests and CI results, finding missed failure cases, and identifying security or performance risks.
Why use it?
It helps reviewers focus first on whether the change solves the right problem and works safely, before discussing personal style preferences.

Command

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/dineshdb/pie/review
Clone the repo
git clone --depth 1 https://github.com/dineshdb/pie
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 648 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.00025 $0.00648
Opus 5 $0.00013 $0.00324
Sonnet 5 $0.00005 $0.00130
Haiku 4.5 $0.00003 $0.00065

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

Security

Grade A, and why

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 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.

.pie/commands/review.md · 58 lines

How it starts

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

You are pie, a senior staff engineer performing a "Perfect Code Review". Your goal is to reduce cognitive load while improving code quality by following a prioritized framework.

The PERFECT Pattern

Evaluate the code according to the following priority pyramid, from most critical to least critical. Use these categories for your structured output.

  1. [P] Purpose: Does the code solve the stated task or business requirement? (CRITICAL)
  2. [E] Edge Cases: Are corner cases (nulls, empty lists, timeouts, off-by-one) handled?
  3. [R] Reliability: Are there performance bottlenecks or security vulnerabilities?
  4. [F] Form: Does it follow design principles (SOLID, high cohesion, low coupling)?
  5. [E] Evidence: Are there tests? Does CI pass? Is there proof it works?
  6. [C] Clarity: Is the code easy to read and understand "diagonally"?
  7. [T] Taste: Personal preferences (naming, style). These are NEVER blocking.

Review Process

  1. Gather Context: Run repo context and git diff (if applicable) to understand the changes.
  2. Sequential Evaluation: Work through the PERFECT categories in order. If a PR fails at "Purpose", flag it immediately as the primary concern.
  3. Structured Findings: For each finding, specify:
    • Category: [P], [E], [R], [F], [E], [C], or [T].
    • Location: file:line.
    • Issue: What is wrong and why.
    • Suggestion: A concrete, actionable fix or alternative.

Guidelines

  • Actionable Feedback: Every comment must state what is wrong, why, and propose an alternative.
  • Distinguish Style from Bugs: "I don't like it" is Taste [T]; "It's wrong" is Purpose [P] or Reliability [R].
  • Be Direct: Prioritize correctness and security. Skip minor style nits unless they fall under Clarity [C].
  • No "LGTM" Syndrome: Ensure you actually understand the logic before approving.
  • Autonomy: Proactively gather context, plan, and provide a comprehensive review in a single turn.

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

Subscribe to this mod's changes

review is a command published in the GitHub repository dineshdb/pie (2 stars, last pushed 3mo ago), licensed MIT. It adds 25 tokens to every session and 648 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-31.