pi-subagents: Instructions file for Codex

AGENTS.md

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

Development instructions for a repository containing tools that run helper agents. They set rules for concise communication, careful file inspection, consistent code style, dependency checks, and implementation quality.

In plain words
What is it for?
Use them when answering repository questions, changing code, checking external package types, following formatting rules, or responding to review feedback.
Why use it?
They reduce accidental broad edits and prevent fixes based on guessed APIs or outdated dependency assumptions.

Instructions file for CodexOpenCode

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

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

About the project

pi-subagents is a pi extension that runs specialized AI sub-agents in separate sessions and coordinates them through parallel or sequential workflows. It is for developers who want autonomous agents with independent tools, prompts, models, and controllable execution. The catalogue agents and instruction define additional agent types and orchestration workflows for pi.

tintinweb/pi-subagents · 1,407 stars · on GitHub · npmjs.com

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tintinweb/pi-subagents/agents-md"><img src="https://agentmods.dev/badge/instructions/tintinweb/pi-subagents/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,969 This file is loaded in full into every session.
When invoked 2,969 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.02969 $0.02969
Opus 5.5 $0.01188 $0.01188
Sonnet 5.5 $0.00594 $0.00594
Haiku 4.5 $0.00297 $0.00297

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

Security

Grade A, and why

pi-subagents 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 4d 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 · 166 lines

How it starts

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

Development Rules

Conversational Style

  • Keep answers short and concise
  • No emojis in issues, PR comments, or code
  • No fluff or cheerful filler text (e.g., "Thanks @user" not "Thanks so much @user!")
  • Technical prose only, be direct
  • When the user asks a question, answer it first before making edits or running implementation commands.
  • When responding to user feedback or an analysis, explicitly say whether you agree or disagree before saying what you changed.

Code Quality

  • Read files in full before wide-ranging changes, before editing files you have not fully inspected, and when asked to investigate or audit. Do not rely on search snippets for broad changes.
  • No any unless absolutely necessary.
  • Inline single-line helpers that have only one call site.
  • Check node_modules for external API types (@earendil-works/pi-*, typebox, etc.); don't guess.
  • No inline imports (await import(), import("pkg").Type, dynamic type imports). Top-level imports only.
  • Never remove or downgrade code to fix type errors from outdated deps; upgrade the dep instead.
  • Match the surrounding code style — it is enforced by biome (biome.json).
  • Always ask before removing functionality or code that appears intentional.
  • Do not preserve backward compatibility unless the user asks for it.
  • This is a pi extension. Respect the Claude Code-compatible tool names, calling conventions, and UI patterns the extension deliberately mirrors; don't diverge from them without a stated reason.

Reviewing

Applies to every review: an external PR, your own branch, or the working tree.

  • Report correctness defects first: wrong behavior, crashes, races, data loss, broken contracts, missing or wrong tests for changed behavior, docs or comments that now contradict the code. State each with the input or state that triggers it.
  • Also flag overengineering: needless abstraction, layering, or defensive code the change doesn't warrant. Favor the elegant solution.
  • No nits: style, naming, formatting, comment wording, or other preferences. Violations of this file's rules are findings, except code style that biome accepts.

Read the full file on GitHub · 166 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. 4d ago Changed · +8 lines · +148 tokens per session 63333001f024
  2. 24d ago Changed · +1 lines · +93 tokens per session 12385410caf0
  3. 25d ago Changed · +2 lines · +35 tokens per session d33f783bbfbb
  4. 28d ago Changed · -3 tokens per session 19e6f851d22e
  5. 2mo ago First seen · 155 lines · 2,696 tokens per session scan A 153f8dd763d0

Subscribe to this mod's changes

pi-subagents AGENTS.md is an instructions file published in the GitHub repository tintinweb/pi-subagents (1,407 stars, last pushed 2d ago), licensed MIT. It adds 2,969 tokens to every session, about $0.0119 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-subagents AGENTS.md compared with instructions from other repositories

pi-subagents AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pi-subagents AGENTS.mdtintinweb/pi-subagentsInstructions file1.4k2d agoMITA2,969Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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