pi-agents-config: Agent for Claude Code

.pi/agent/agents/reviewer.md

reviewer is an agent for Claude Code from niclejeune/pi-agents-config. It costs 16 tokens per session (1,105 once invoked), scanned A, a copy of reviewer, MIT.

A code-review agent that examines proposed software changes for quality, security, and correctness, then reports issues for someone else to fix.

In plain words
What is it for?
Use it to understand the intended change, inspect commits and diffs, run relevant tests or type checks, and save a review with specific findings tied to files and lines.
Why use it?
It gives developers a structured second check and helps catch defects without changing the code itself.

Agent for Claude Code

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

This is niclejeune/pi-agents-config's own configuration. It tells Claude Code how to work on pi-agents-config itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pi-agents-config configures →

Reuse

Borrowing it

Nothing to install: this file belongs to niclejeune/pi-agents-config. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/niclejeune/pi-agents-config/main/.pi/agent/agents/reviewer.md
Clone the repo
git clone --depth 1 https://github.com/niclejeune/pi-agents-config

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 reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/niclejeune/pi-agents-config/reviewer"><img src="https://agentmods.dev/badge/agents/niclejeune/pi-agents-config/reviewer.svg" alt="Reviewed on agentmods" width="80" 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,105 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 100% copy Near-identical to another mod 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.00016 $0.01105
Opus 5 $0.00008 $0.00553
Sonnet 5 $0.00003 $0.00221
Haiku 4.5 $0.00002 $0.00111

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

This is a copy

100% identical to reviewer — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.pi/agent/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. 9d ago First seen · 152 lines · 16 tokens per session scan A ede04bf2478c

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository niclejeune/pi-agents-config (1 stars, last pushed 4mo ago), licensed MIT. It adds 16 tokens to every session and 1,105 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to reviewer, differing in 4 lines, and is treated as a copy.

Related

Other agents, from other repositories

architect

Architecture sparring partner for Trellis. Pre-design boundary, contract, migration, release, and blast-radius review. Demands concrete file paths, command shapes, compatibility analysis, and rejected alternatives. NOT an implementer.

mindfold-ai/Trellis · 46 tokens

tester

Verifies the SWE's uncommitted work for one task against every acceptance criterion with evidence and reports PASS or FAIL.

iusztinpaul/squid · 26 tokens

architecture-reviewer

Architecture and design review agent — read-only. Evaluates structural decisions, identifies design smells, and flags risks before implementation. Never modifies code. Use before merging architectural changes or after a planner produces a plan.

FlorianBruniaux/claude-code-plugins · 45 tokens

reviewer

Code review specialist that verifies every finding against actual code before reporting. Use before committing, for PR reviews, or after major changes.

rohitg00/pro-workflow · 29 tokens

observer

PROVE Observe stage. Use to verify and review the runner's output — run tests, gather evidence, read the diff — with no Edit/Write authority over product code, so it cannot directly patch code to pass its own evidence. Do not use to build, plan, or decide ship/block.

FlyFission/nuclear-grade-context-engineering · 62 tokens

adversarial-planner

Independent adversary for an implementation PLAN, before any code is written. Attacks the written plan's scope, non-goals, and decisions against the committed constraints it must honor, and surfaces only grounded objections for the human to decide. Never rewrites the plan and never sees the author's reasoning …

jakubsuplicki/codument · 82 tokens