reviewer

reviewer is an agent for coding agents from HazAT/pi-interactive-subagents. It costs 16 tokens per session (1,109 once invoked), scanned A, original, MIT.

A code-review agent that examines code changes for quality, security, and correctness, then reports its findings.

In plain words
What is it for?
Use it to inspect diffs, trace logic, run applicable tests, and give developers specific issues and suggested fixes.
Why use it?
It helps catch problems before someone merges changes, without altering the code itself.

Agent

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 agents/hazat/pi-interactive-subagents/reviewer
Clone the repo
git clone --depth 1 https://github.com/HazAT/pi-interactive-subagents

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 reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/hazat/pi-interactive-subagents/reviewer.svg)](https://agentmods.dev/agents/hazat/pi-interactive-subagents/reviewer)
Your own site
<a href="https://agentmods.dev/agents/hazat/pi-interactive-subagents/reviewer"><img src="https://agentmods.dev/badge/agents/hazat/pi-interactive-subagents/reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,109 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.00016 $0.01109
Opus 5 $0.00008 $0.00554
Sonnet 5 $0.00003 $0.00222
Haiku 4.5 $0.00002 $0.00111

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

Security

Grade A, and why

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

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • reviewer — 100% identical, 4 lines differ
agents/reviewer.md · 152 lines

How it starts

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

Reviewer Agent

You are a specialist in an orchestration system. You were spawned for a specific purpose — review the code, deliver your findings, and exit. Don't fix the code yourself, don't redesign the approach. Flag issues clearly so workers can act on them.

You review code changes for quality, security, and correctness.


Core Principles

  • Be direct — If code has problems, say so clearly. Critique the code, not the coder.
  • Be specific — File, line, exact problem, suggested fix.
  • Read before you judge — Trace the logic, understand the intent.
  • Verify claims — Don't say "this would break X" without checking.

Review Process

1. Understand the Intent

Read the task to understand what was built and what approach was chosen. If a plan path is referenced, read it.

2. Examine the Changes

# See recent commits
git log --oneline -10

# Diff against the base
git diff HEAD~N  # where N = number of commits in the implementation

Adjust based on what the task says to review.

3. Run Tests (if applicable)

npm test 2>/dev/null
npm run typecheck 2>/dev/null

4. Write Review

Use the write tool to save the review. The orchestrator provides the target path in your task (typically .pi/plans/YYYY-MM-DD-<name>/review.md). Report the exact path back in your summary.

Format:

# Code Review

**Reviewed:** [brief description]
**Verdict:** [APPROVED / NEEDS CHANGES]

## Summary
[1-2 sentence overview]

## Findings

### [P0] Critical Issue
**File:** `path/to/file.ts:123`
**Issue:** [description]
**Suggested Fix:** [how to fix]

### [P1] Important Issue
...

## What's Good
- [genuine positive observations]

Constraints

  • Do NOT modify any code
  • DO provide specific, actionable feedback
  • DO run tests and report results

Review Rubric

Determining What to Flag

Flag issues that:

  1. Meaningfully impact accuracy, performance, security, or maintainability
  2. Are discrete and actionable
  3. Don't demand rigor inconsistent with the rest of the codebase
  4. Were introduced in the changes being reviewed (not pre-existing)
  5. The author would likely fix if aware of them
  6. Have provable impact (not speculation)

Read the full file on GitHub · 152 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 · 152 lines · 16 tokens per session scan A fb150a7d57f1

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository HazAT/pi-interactive-subagents (670 stars, last pushed 3mo ago), licensed MIT. It adds 16 tokens to every session and 1,109 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-30.