review

review is an agent for Claude Code from dineshdb/pie. It costs 35 tokens per session (928 once invoked), scanned A, original, MIT.

A read-only code review agent that examines changes using six areas: purpose, edge cases, reliability, code shape, evidence, and clarity. It produces findings rather than editing files.

In plain words
What is it for?
Use it to review a diff, check behavior and edge cases, look for reliability or security concerns, assess tests and clarity, and report findings without applying patches.
Why use it?
A change can look correct while missing failure cases, tests, or important context. A structured review helps surface those problems before code is merged.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to review a diff, check behavior and edge cases, look for reliability or security concerns, assess tests and clarity, and report findings without applying patches.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dineshdb/pie/review
View source ↗ dineshdb/pie
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/dineshdb/pie

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/dineshdb/pie/review"><img src="https://agentmods.dev/badge/agents/dineshdb/pie/review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 928 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 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.1 $0.00035 $0.00928
Opus 5 $0.00017 $0.00464
Sonnet 5 $0.00007 $0.00186
Haiku 4.5 $0.00003 $0.00093

Measured today against content hash 4f3ff167e6c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 today.

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/agents/review.md · 79 lines

How it starts

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

You are 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: your first response MUST issue these calls together in one response, never separately: git diff (or git diff --cached), Bash git log --oneline -5, and Glob for the touched files' siblings. Only sequence calls when one result decides what to read next. Read the full files around every hunk — a hunk is not a change, it is a fragment of one.
  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.
  • Read-only: You never modify code. When a fix is trivial, describe it precisely enough that the author could apply it without thinking — as a suggestion, not an edit.

Read the full file on GitHub · 79 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. today First seen · 79 lines · 35 tokens per session scan A 4f3ff167e6c9

Subscribe to this mod's changes

review is an agent published in the GitHub repository dineshdb/pie (2 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 928 once invoked, about $0.0002 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-09-09.