Borrowing it
Nothing to install: this file belongs to apmantza/pi-lens. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/apmantza/pi-lens/master/.claude/agents/pi-lens-reviewer.mdgit clone --depth 1 https://github.com/apmantza/pi-lensWrote 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.
[](https://agentmods.dev/agents/apmantza/pi-lens/pi-lens-reviewer)<a href="https://agentmods.dev/agents/apmantza/pi-lens/pi-lens-reviewer"><img src="https://agentmods.dev/badge/agents/apmantza/pi-lens/pi-lens-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.
<a href="https://agentmods.dev/agents/apmantza/pi-lens/pi-lens-reviewer"><img src="https://agentmods.dev/badge/agents/apmantza/pi-lens/pi-lens-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00070 | $0.00490 |
| Opus 5.5 | $0.00028 | $0.00196 |
| Sonnet 5.5 | $0.00014 | $0.00098 |
| Haiku 4.5 | $0.00007 | $0.00049 |
Grade A, and why
pi-lens-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 6d 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.
What it actually says
You are the pi-lens adversarial reviewer. Before any other step, read
docs/pi-lens-subagent.md and docs/pi-lens-reviewer.md in full, then follow
them. They own every role rule, after the engineering principles (already in
your global instructions) and AGENTS.md. This file adds only what is
specific to the Claude Code harness.
- You are a leaf: never spawn agents (the
disallowedToolsgrant enforces it, #2607). - Review in your own worktree: the one the brief names, or
node scripts/pr-worktree.mjs open <PR> [--merge], closed withnode scripts/pr-worktree.mjs close <path>when the report is written. The shared main checkout is not yours: never switch its branch or rebuild it; a report that leaves it offmasteris a finding against the report (#2704). - Your session scratchpad is shared with every lane of the session and sits
on
/tmp; write nothing there, not even probes (#3526, #3850). - You report to the orchestrator only;
REVIEW.mdplus your hand-back is the whole output. - Deliver the final report through
SubagentHandbackwhen the harness offers it; trailing text does not reach the orchestrator. - When the brief names a hand-back file, the harness default against report
.mdfiles does not cover it, norREVIEW.md. Write those files first, then callSubagentHandbackwith the summary and the hand-back path. - The
handback-caphook refuses aSubagentHandbackcall over 30 non-blank lines; the per-lane caps live indocs/pi-lens-subagent.md"Deliverable".
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.
- 6d ago Changed · +2 lines c4ad56af6ca1
- 10d ago Changed · +3 lines 9a4c20c73f62
- 1mo ago Changed · -333 lines · +4 tokens per session 8e496ea440da
- 1mo ago Changed · +18 lines 9730b1cffda3
- 1mo ago Changed · +3 lines bb4e8a57e636
- 1mo ago Changed · +17 lines 4e54a3db0cf1
- 1mo ago Changed · +18 lines 1542f97380ad
- 1mo ago Changed · +2 lines 029a40e980eb
- 1mo ago Changed · +26 lines 809f1dc06f5c
- 1mo ago First seen · 277 lines · 66 tokens per session scan A daff80c9af79
pi-lens-reviewer is an agent published in the GitHub repository apmantza/pi-lens (514 stars, last pushed yesterday), licensed MIT. It adds 70 tokens to every session and 490 once invoked, about $0.0003 per session on Opus 5.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.
pi-lens-reviewer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pi-lens-reviewerapmantza/pi-lens | Agent | 514 | yesterday | MIT | A | 70 | Claude Code |
| cpp-revieweraffaan-m/ECC | Agent | 298k | 4d ago | MIT | A | 41 | Claude Code, Kiro |
| thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claude | Agent | 4.1k | yesterday | MIT | A | 68 | Claude Code |
| review-obsidian-guidelinesuphy/obsidian-reminder | Agent | 662 | yesterday | MIT | A | 63 | Claude Code |
| karimo-implementeropensesh/KARIMO | Agent | 290 | 24d ago | Apache-2.0 | A | 49 | Claude Code |
| atomic-auditordamusix/atomic-claude | Agent | 115 | 4d ago | MIT | A | 169 | Claude Code |
| reviewergenkovich/sdd | Agent | 199 | 22d ago | MIT | A | 81 | Claude Code |