pi-extensions AGENTS.md

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

Repository instructions for pi-extensions, an npm workspace containing several independently maintained packages.

In plain words
What is it for?
It guides TypeScript development, Biome linting, Vitest tests, type checking, package structure, and use of documented past solutions.
Why use it?
It gives an agent the project layout, commands, and conventions needed to change one package without overlooking shared checks.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/feniix/pi-extensions/agents-md
Clone the repo
git clone --depth 1 https://github.com/feniix/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/feniix/pi-extensions/agents-md.svg)](https://agentmods.dev/instructions/feniix/pi-extensions/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/feniix/pi-extensions/agents-md"><img src="https://agentmods.dev/badge/instructions/feniix/pi-extensions/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,516 This file is loaded in full into every session.
When invoked 1,516 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01516 $0.01516
Opus 5 $0.00758 $0.00758
Sonnet 5 $0.00303 $0.00303
Haiku 4.5 $0.00152 $0.00152

Measured 4d ago against content hash e54bda4a1869, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 104 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

  • This repo is an npm workspace with independent packages in packages/*.
  • Each package follows a consistent layout:
    • extensions/index.ts for the pi extension entry point.
    • __tests__/ for Vitest tests (e.g., index.test.ts, helpers.test.ts).
    • README.md, package.json, and LICENSE per package.
  • Root-level configs live in biome.json, tsconfig.json, and vitest.config.ts.
  • docs/solutions/ contains documented solutions to past problems (bugs, best practices, workflow patterns), organized by category with YAML frontmatter fields such as module, tags, and problem_type; relevant when implementing or debugging in documented areas.
  • CONCEPTS.md defines shared domain vocabulary (entities, named processes, status concepts) with project-specific meaning; relevant when orienting to the codebase or discussing domain concepts.

Build, Test, and Development Commands

Run these from the repo root unless noted:

  • npm run lint — Biome lint/format checks.
  • npm run lint:fix — auto-fixable Biome issues.
  • npm run typecheck — TypeScript type checking only.
  • npm run test — Vitest test suite.
  • npm run test:coverage — Vitest coverage run with repo-wide thresholds.
  • npm run check — lint + typecheck.
  • npm run check:ci — CI-friendly Biome + typecheck.
  • npm run ci:detect -- <base> <head> — show which packages the CI workflow will check for a given diff.

Local package testing:

  • cd packages/<package-name>
  • pi -e . — run the package in pi without installing.
  • npx biome ci packages/<package-name> — lint a single package.
  • npx tsc --noEmit --project packages/<package-name>/tsconfig.json — typecheck a single package using the shared root TS config via the package wrapper tsconfig.
  • npx vitest run packages/<package-name>/__tests__ — run tests for a single package.

Workspace version bumps:

  • Use npm workspace versioning from the repo root: npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]
  • Prefer targeting a single package with --workspace / -w, for example: npm version --workspace packages/pi-devtools minor
  • -w, --workspace runs the command in the context of the configured workspace(s).

Read the full file on GitHub · 104 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 First seen · 104 lines · 1,516 tokens per session scan A e54bda4a1869

Subscribe to this mod's changes

pi-extensions AGENTS.md is an instructions file published in the GitHub repository feniix/pi-extensions (23 stars, last pushed 11d ago), licensed MIT. It adds 1,516 tokens to every session, about $0.0076 per session on Opus 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.