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/AGENTS.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/instructions/apmantza/pi-lens/agents-md)<a href="https://agentmods.dev/instructions/apmantza/pi-lens/agents-md"><img src="https://agentmods.dev/badge/instructions/apmantza/pi-lens/agents-md/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/instructions/apmantza/pi-lens/agents-md"><img src="https://agentmods.dev/badge/instructions/apmantza/pi-lens/agents-md.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.17403 | $0.17403 |
| Opus 5.5 | $0.06961 | $0.06961 |
| Sonnet 5.5 | $0.03481 | $0.03481 |
| Haiku 4.5 | $0.01740 | $0.01740 |
Grade C, and why
pi-lens AGENTS.md scanned grade C with 1 finding 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 2d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
delete through such a link (`rm -rf node_modules/`, `node_modules/*`, `find How it starts
The opening of the file, as written. The whole thing — 1,003 lines — stays where its author put it; the contents beside it link to each section on GitHub.
pi-lens — agent context
How to use this file
Read order: the engineering principles (every harness here carries a verbatim
copy in its global instructions; vendored at
docs/engineering-principles.md, never
hand-edited), then this file, then the role contract for the task. This file
holds only what is specific to pi-lens and wins on conflict. Dated incidents and
closed decisions live in HISTORY.md.
The principles, one line each, linked to their section of the vendored file. The vendored file wins on any difference from this digest.
- Premise first: reproduce the defect through the production call path before the fix (§1 Building).
- Speculative robustness needs buy-in: no new mechanism for an unreproduced race or edge case without the trigger path, evidence, cost and a maintainer decision (§1 Building).
- Climb the minimalism ladder: reuse an existing seam before adding a line (§1 Building).
- Net-count rule: a new shared helper deletes a same-shape sibling in the same change (§1 Building).
- Sweep the pattern, not the instance, and record the consolidation verdict (§1 Building).
- Design shared state once, before a second writer joins (§1 Building).
- Give every new failure path one bounded, observable record (§1 Building).
- Diff the blast radius as a call tree, with
+/-on moved lines (§1 Building). - Red first, and paste the failing transcript (§2 Testing).
- Ship the tests in the same commit as the code (§2 Testing).
- Quote each mutation's red; a ticked box with no transcript is false (§2 Testing).
- No tautological test: assert an independent effect through the real seam (§2 Testing).
- Close only when every criterion is met; otherwise
Refsand post the remainder (§4 Honesty and records).
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.
- 2d ago Changed · +10 lines · +192 tokens per session 90757e442b62
- 3d ago Changed · +4 lines · +106 tokens per session 7b3b54d5440f
- 3d ago Changed · +5 lines · +162 tokens per session 16efd7508744
- 5d ago Changed · +9 lines · +175 tokens per session a21837dda3e9
- 6d ago Changed · +15 lines · +249 tokens per session 90999aa860b9
- 8d ago Changed · +6 lines · +177 tokens per session 8f063f3b520b
- 9d ago Changed · +7 lines · +170 tokens per session f6f2b5f43268
- 10d ago Changed · -1,311 lines · -19,336 tokens per session 1b238a2717dc
- 12d ago Changed · +15 lines · +263 tokens per session d9b9fcd1f337
- 13d ago First seen · 2,243 lines · 35,245 tokens per session scan C 7dd3ba379c1f
pi-lens AGENTS.md is an instructions file published in the GitHub repository apmantza/pi-lens (514 stars, last pushed yesterday), licensed MIT. It adds 17,403 tokens to every session, about $0.0696 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.
pi-lens AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pi-lens AGENTS.mdapmantza/pi-lens | Instructions file | 514 | yesterday | MIT | C | 17,403 | Claude Code, Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |