pi-hashline-readmap: Instructions file for Codex

AGENTS.md

pi-hashline-readmap AGENTS.md is an instructions file for Codex, OpenCode from coctostan/pi-hashline-readmap. It costs 3,570 tokens per session, scanned C, original, MIT.

Repository-local instructions for agents working on the pi-hashline-readmap project, including its tools, editing process, tests, and Git workflow.

In plain words
What is it for?
Use them when reading, editing, testing, or preparing GitHub changes in this repository.
Why use it?
They give coding agents the project context and working rules they need, including when to restart sessions after changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex.

This is coctostan/pi-hashline-readmap's own configuration. It tells Codex and OpenCode how to work on pi-hashline-readmap 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-hashline-readmap configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/coctostan/pi-hashline-readmap/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/coctostan/pi-hashline-readmap

Made for: Codex, OpenCode.

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 pi-hashline-readmap AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/coctostan/pi-hashline-readmap/agents-md/github.svg)](https://agentmods.dev/instructions/coctostan/pi-hashline-readmap/agents-md)
Your own site
<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.

agentmods 80×15 button for pi-hashline-readmap AGENTS.md

Your own site · 80×15
<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>
Per session 3,570 This file is loaded in full into every session.
When invoked 3,570 The same file — it is already loaded in full.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.03570 $0.03570
Opus 5.5 $0.01428 $0.01428
Sonnet 5.5 $0.00714 $0.00714
Haiku 4.5 $0.00357 $0.00357

Measured 3d ago against content hash 2841e84e5eea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
AGENTS.md · 199 lines

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-by and From slice numbers 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 the tool_execution_end events in the JSON stream (read on a 3-line file returns 1: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 reads
  • edit — hash-anchored edits with semantic diff summaries
  • grep — hashlined search results
  • ast_search — ast-grep wrapper with hashlined output
  • bash — Pi's own output, ANSI codes stripped, plus anti-pattern hints

Read the full file on GitHub · 199 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. 3d ago Changed · -7 lines · -28 tokens per session 2841e84e5eea
  2. 5d ago Changed · +1 lines · +22 tokens per session 07a9b3d8f5b3
  3. 6d ago Changed · +1 lines · -45 tokens per session 76dbd8082d94
  4. 7d ago Changed · +18 lines · +404 tokens per session f31036277393
  5. 24d ago Changed · -1 lines · -16 tokens per session e0e75804cc37
  6. 26d ago Changed · +14 lines · +974 tokens per session 3d31b880f7e5
  7. 27d ago Changed · +6 lines · +308 tokens per session 3196decb9b29
  8. 28d ago Changed · +2 lines · +154 tokens per session 541b76195d7e
  9. 1mo ago Changed · +107 tokens per session ee5201eb0d2f
  10. 1mo ago First seen · 165 lines · 1,690 tokens per session scan C 5e904ffabddb

Subscribe to this mod's changes

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.

Related

pi-hashline-readmap AGENTS.md compared with instructions from other repositories

pi-hashline-readmap AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pi-hashline-readmap AGENTS.mdcoctostan/pi-hashline-readmapInstructions file1043d agoMITC3,570Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot