pi-mono: Instructions file for Codex

AGENTS.md

pi-mono AGENTS.md is an instructions file for Codex, OpenCode from jvm/pi-mono. It costs 2,114 tokens per session, scanned A, original, MIT.

Repository instructions for pi-mono, a monorepo containing separately published Pi packages. A monorepo keeps multiple related packages in one repository, while each package can still have its own release rules.

In plain words
What is it for?
Use them when changing a pi-mono package, especially when the change may affect other packages or repository-wide files. They also define required checks before publishing.
Why use it?
They explain which files and rules take priority before you edit code. They help prevent missed effects across packages, shared files, tests, releases, and CI.

Instructions file for CodexOpenCode

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

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

View source ↗ jvm/pi-mono
Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jvm/pi-mono/agents-md"><img src="https://agentmods.dev/badge/instructions/jvm/pi-mono/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,114 This file is loaded in full into every session.
When invoked 2,114 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.02114 $0.02114
Opus 5.5 $0.00846 $0.00846
Sonnet 5.5 $0.00423 $0.00423
Haiku 4.5 $0.00211 $0.00211

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

Security

Grade A, and why

pi-mono 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 8d 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 · 204 lines

How it starts

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

Repository Guidelines

Scope and precedence

pi-mono contains independently published Pi packages under packages/*.

Source of truth, highest first:

  1. Executable config: package.json, tests, CI, release workflows.
  2. Root AGENTS.md: monorepo invariants.
  3. Package AGENTS.md: package-only invariants and exceptions.
  4. README: user-facing product, setup, and usage.
  5. CHANGELOG: released behavior.

Package instructions must not repeat root policy. If guidance conflicts with executable config, fix the stale guidance in the same change.

Required workflow

  1. Read affected package AGENTS.md and inspect worktree/branch.
  2. Map impact across package-local, cross-package, and root artifacts before editing.
  3. Keep changes scoped; update tests with behavior.
  4. Update user docs only when triggers below apply.
  5. Run validation from the matrix.
  6. Inspect git diff --check, git diff --stat, and packed files when publishing changes.

Impact scan includes root README/index, AGENTS.md, root manifest/lockfile, shared scripts/templates, workflows, release metadata, and security policy. Update only artifacts affected by the change; keep package listings, versions, commands, and policy synchronized.

Bug fixes require regression coverage of the broken integration path. Helper-only tests are insufficient when removing feature wiring would still pass. Private Pi API patches require render/contract tests and a documented smoke test when automation cannot cover runtime behavior.

Package contract

New packages should copy canonical config files from templates/package/, then add only needed resources (extensions/, skills/, prompts/, themes/). Every package requires:

  • package.json, tsconfig.json, .editorconfig, .gitignore
  • AGENTS.md, README.md, CHANGELOG.md
  • CODE_OF_CONDUCT.md, CONTRIBUTING.md, LICENSE, SECURITY.md

Do not publish tests, plans, agent files, generated builds, secrets, settings, or machine paths.

Identity and manifest

Read the full file on GitHub · 204 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. 8d ago Changed · +1 lines · +24 tokens per session 0c4084b681df
  2. 18d ago Changed · +54 lines · +520 tokens per session 6e039acf3755
  3. 1mo ago Changed 4295bb78f9aa
  4. 2mo ago First seen · 149 lines · 1,570 tokens per session scan A 53ab45a82809

Subscribe to this mod's changes

pi-mono AGENTS.md is an instructions file published in the GitHub repository jvm/pi-mono (37 stars, last pushed 3d ago), licensed MIT. It adds 2,114 tokens to every session, about $0.0085 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-mono AGENTS.md compared with instructions from other repositories

pi-mono AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pi-mono AGENTS.mdjvm/pi-monoInstructions file373d agoMITA2,114Codex, 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 file143ktodayMITA7,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