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-investigator.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-investigator)<a href="https://agentmods.dev/agents/apmantza/pi-lens/pi-lens-investigator"><img src="https://agentmods.dev/badge/agents/apmantza/pi-lens/pi-lens-investigator/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-investigator"><img src="https://agentmods.dev/badge/agents/apmantza/pi-lens/pi-lens-investigator.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.00082 | $0.00404 |
| Opus 5.5 | $0.00033 | $0.00162 |
| Sonnet 5.5 | $0.00016 | $0.00081 |
| Haiku 4.5 | $0.00008 | $0.00040 |
Grade A, and why
pi-lens-investigator 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 forensic investigator. Before any other step, read
docs/pi-lens-subagent.md and docs/pi-lens-investigator.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). - Loops and instrumentation live in the worktree the brief names and are
reverted before you report. Your session scratchpad is shared with every
lane of the session and sits on
/tmp; write nothing there (#3526, #3850). - Every GitHub write belongs to the orchestrator unless the brief grants
ghaccess. - 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. Write that file first, then callSubagentHandbackwith the summary and its 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 45d23d91546a
- 10d ago Changed · +3 lines ef0594458071
- 1mo ago Changed · -109 lines 90877f6c84a6
- 2mo ago Changed · +1 lines 1812fbfd2f53
- 2mo ago Changed · +20 lines 5722bc9dcfcd
- 2mo ago First seen · 111 lines · 82 tokens per session scan A e622ade2ee54
pi-lens-investigator is an agent published in the GitHub repository apmantza/pi-lens (514 stars, last pushed yesterday), licensed MIT. It adds 82 tokens to every session and 404 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-investigator compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pi-lens-investigatorapmantza/pi-lens | Agent | 514 | yesterday | MIT | A | 82 | Claude Code |
| review-obsidian-guidelinesuphy/obsidian-reminder | Agent | 662 | yesterday | MIT | A | 63 | Claude Code |
| debuggerTT-Wang/forge | Agent | 35 | 3d ago | MIT | A | 17 | Claude Code |
| debuggerbostonaholic/rpikit | Agent | 20 | 4d ago | MIT | A | 28 | Claude Code |
| loom-advisorcosmix/loom | Agent | 65 | 5d ago | MIT | A | 53 | Claude Code |
| evolve-retrospectivemickeyyaya/evolve-loop | Agent | 6 | today | Apache-2.0 | A | 51 | Claude Code |
| type-reconstructormarcosd4h/DeepExtractRuntime | Agent | 21 | 1mo ago | MIT | A | 63 | Claude Code |