pi-extensions: Instructions file for Codex

AGENTS.md

pi-extensions AGENTS.md is an instructions file for Codex, OpenCode from narumiruna/pi-extensions. It costs 3,053 tokens per session, scanned A, original, MIT.

A set of repository rules for pi-extensions, a Node.js and TypeScript monorepo containing several related packages and small local extensions.

In plain words
What is it for?
Use it when adding or editing extension packages, shared libraries, local Pi extensions, manifests, README files, or TypeScript configuration.
Why use it?
It clarifies where packages, reusable libraries, and repository-only extensions belong, reducing misplaced files and inconsistent documentation.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to narumiruna/pi-extensions. 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/narumiruna/pi-extensions/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/narumiruna/pi-extensions

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-extensions AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/narumiruna/pi-extensions/agents-md/github.svg)](https://agentmods.dev/instructions/narumiruna/pi-extensions/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/narumiruna/pi-extensions/agents-md"><img src="https://agentmods.dev/badge/instructions/narumiruna/pi-extensions/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-extensions AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/narumiruna/pi-extensions/agents-md"><img src="https://agentmods.dev/badge/instructions/narumiruna/pi-extensions/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,053 This file is loaded in full into every session.
When invoked 3,053 The same file — it is already loaded in full.
Security scan A 0 findings. 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.03053 $0.03053
Opus 5.5 $0.01221 $0.01221
Sonnet 5.5 $0.00611 $0.00611
Haiku 4.5 $0.00305 $0.00305

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

Security

Grade A, and why

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

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.

AGENTS.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository Guidelines

Documentation

  • Lead with the most important information and use concise, accurate prose without repetition.
  • Use concise paragraphs for human-facing narrative and lists only when separate items are easier to scan.
  • Keep AGENTS.md instructions as one-sentence, enforceable bullet points.
  • Follow docs/readme-conventions.md for active package READMEs, including its required sections, warnings, scope rules, and verification checklist.
  • Keep package versions out of long-lived guidance and derive them from manifests, lockfiles, or workflows.

Code style

  • Follow KISS and YAGNI, add dependencies only for current needs, and use Pi core functions when they already provide the required behavior.
  • Use NodeNext modules, ES2024, strict TypeScript, and no emit for root TypeScript.
  • Upgrade outdated dependencies instead of removing or downgrading valid code to hide their type errors.
  • Split source files over 1,000 lines by clear responsibility, but do not mechanically split generated, vendored, migration, snapshot, or mainly declarative files.

Commands and tooling

  • Run commands from the repository root unless their documentation says otherwise.
  • Use npm install to install dependencies, npm run format to apply Biome formatting, and npm run typecheck to typecheck every workspace.
  • Run npm run before adding or documenting a root workflow command.
  • Keep root npm scripts as canonical entrypoints only for workflows users run from the root, and move complex implementations under scripts/.
  • Keep pre-commit hook logic in scripts/pre-commit.sh, invoke it directly from .husky/pre-commit, and do not add a duplicate root npm script.
  • Do not run root checks concurrently with a pi-tui-kit build or check because both clear packages/pi-tui-kit/dist.
  • Rebuild pi-tui-kit before consumer tests because consumers resolve its built output.
  • After raising a consumer's Kit floor, run root npm install, verify the resolution with npm ls @narumitw/pi-tui-kit, and then typecheck.
  • Keep imported Pi packages in root devDependencies so tests emitted under node_modules/.cache resolve the intended versions.
  • Prefer Pi AI root exports, and use a variable-specifier dynamic import only when a required subpath has no root export because official Pi can misresolve static @earendil-works/pi-ai/api/* imports.
  • Treat Pi's user and project managed npm roots as separate install scopes because deduplication is guaranteed only within one root.
  • Never use npm audit fix --force; if it changes Pi dependencies, restore every workspace manifest and the lockfile before applying targeted patched upgrades or overrides.

Read the full file on GitHub · 143 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 · +1 lines · +32 tokens per session 02be7bec712e
  2. 11d ago Changed aa0472877c90
  3. 1mo ago Changed · -1 lines · -16 tokens per session 6547603e2b17
  4. 1mo ago Changed · -37 lines · -441 tokens per session 25b166b36fd5
  5. 2mo ago Changed · +2 lines · +113 tokens per session c4e8c6fd92c2
  6. 2mo ago Changed · +23 tokens per session fe69c8a8b10e
  7. 2mo ago First seen · 178 lines · 3,342 tokens per session scan A e33ebf8f6ae7

Subscribe to this mod's changes

pi-extensions AGENTS.md is an instructions file published in the GitHub repository narumiruna/pi-extensions (757 stars, last pushed yesterday), licensed MIT. It adds 3,053 tokens to every session, about $0.0122 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.

Related

pi-extensions AGENTS.md compared with instructions from other repositories

pi-extensions AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pi-extensions AGENTS.mdnarumiruna/pi-extensionsInstructions file757yesterdayMITA3,053Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode