Borrowing it
Nothing to install: this file belongs to coctostan/pi-hashline-readmap. 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/coctostan/pi-hashline-readmap/main/AGENTS.mdgit clone --depth 1 https://github.com/coctostan/pi-hashline-readmapWrote 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/coctostan/pi-hashline-readmap/agents-md)<a href="https://agentmods.dev/instructions/coctostan/pi-hashline-readmap/agents-md"><img src="https://agentmods.dev/badge/instructions/coctostan/pi-hashline-readmap/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/coctostan/pi-hashline-readmap/agents-md"><img src="https://agentmods.dev/badge/instructions/coctostan/pi-hashline-readmap/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.03570 | $0.03570 |
| Opus 5.5 | $0.01428 | $0.01428 |
| Sonnet 5.5 | $0.00714 | $0.00714 |
| Haiku 4.5 | $0.00357 | $0.00357 |
Grade C, and why
pi-hashline-readmap 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 3d 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.
trap 'rm -rf -- "$host_prefix"' EXIT How it starts
The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — Developer & Agent Guide
Repo-local guide for working on pi-hashline-readmap.
A Pi extension that replaces Pi's read, edit, grep, write, ls and find with hash-anchored, structure-aware versions, adds ast_search, and strips ANSI codes from bash output, adding hints toward the dedicated tools. It must keep anchored read→edit chains exact and stay loadable on both the locked and the current Pi host.
Space
type: dev kits: core, dev root: space/ neighbors: codegraph: coctostan/pi-codegraph git: { merge: agent, push: free, main-direct: process-only }
Hard rules
- Name an arc or slice by its title each time you mention it, in a reply, a file, a PR or a commit message: a slice as
slice <n> (<Title>), an arc as<slug> (<Title>). One cited in passing, as a source or a precedent, is a mention too. In an arc file,blocked-byandFrom slicenumbers stay bare. - Shrink a tool result only when the full result stays recoverable: accuracy outranks token savings.
Prove
- Checks:
npm test -- tests/<file>.test.ts;npm test && npm run typecheck - Real artifact: no server; in a scratch directory run
pi --no-extensions --no-session -e <repo>/index.ts --model openai-codex/gpt-6-luna --mode json -p "<a prompt that makes the model call the tool>", a fresh process per drive since sessions don't hot-reload · drive through the prompt · observe thetool_execution_endevents in the JSON stream (readon a 3-line file returns1:1df|export function alpha() {) and any files the tools changed · instances run side by side but share the map cache at~/.cache/pi-hashline-readmap/maps. Host-compatibility changes also run the host tests against an override install, by "Host compatibility".
What This Project Is
pi-hashline-readmap is a unified pi extension that replaces several built-in tools with enhanced versions:
read— hashlined reads, structural maps, symbol-addressable readsedit— hash-anchored edits with semantic diff summariesgrep— hashlined search resultsast_search— ast-grep wrapper with hashlined outputbash— Pi's own output, ANSI codes stripped, plus anti-pattern hints
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.
- 3d ago Changed · -7 lines · -28 tokens per session 2841e84e5eea
- 5d ago Changed · +1 lines · +22 tokens per session 07a9b3d8f5b3
- 6d ago Changed · +1 lines · -45 tokens per session 76dbd8082d94
- 7d ago Changed · +18 lines · +404 tokens per session f31036277393
- 24d ago Changed · -1 lines · -16 tokens per session e0e75804cc37
- 26d ago Changed · +14 lines · +974 tokens per session 3d31b880f7e5
- 27d ago Changed · +6 lines · +308 tokens per session 3196decb9b29
- 28d ago Changed · +2 lines · +154 tokens per session 541b76195d7e
- 1mo ago Changed · +107 tokens per session ee5201eb0d2f
- 1mo ago First seen · 165 lines · 1,690 tokens per session scan C 5e904ffabddb
pi-hashline-readmap AGENTS.md is an instructions file published in the GitHub repository coctostan/pi-hashline-readmap (104 stars, last pushed 3d ago), licensed MIT. It adds 3,570 tokens to every session, about $0.0143 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-08-30.
pi-hashline-readmap AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pi-hashline-readmap AGENTS.mdcoctostan/pi-hashline-readmap | Instructions file | 104 | 3d ago | MIT | C | 3,570 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | 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 | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |