pi-archimedes: Instructions file for Codex

AGENTS.md

pi-archimedes AGENTS.md is an instructions file for Codex, OpenCode from danielcherubini/pi-archimedes. It costs 4,598 tokens per session, scanned B, original, MIT.

Repository guidance for Archimedes, a monorepo containing multiple related packages. A monorepo is one repository that stores several packages or applications, often with shared code and dependencies.

In plain words
What is it for?
Use it when creating a package, changing shared components, publishing safely, or working on features such as diffs, images, todos, notifications, MCP connections, or privileged commands.
Why use it?
It maps package dependencies and describes the checks needed when adding or publishing packages, reducing the risk of breaking other parts of the repository.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/danielcherubini/pi-archimedes/agents-md"><img src="https://agentmods.dev/badge/instructions/danielcherubini/pi-archimedes/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,598 This file is loaded in full into every session.
When invoked 4,598 The same file — it is already loaded in full.
Security scan B 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.04598 $0.04598
Opus 5.5 $0.01839 $0.01839
Sonnet 5.5 $0.00920 $0.00920
Haiku 4.5 $0.00460 $0.00460

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

Security

Grade B, and why

pi-archimedes AGENTS.md scanned grade B 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 9d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- `packages/sudo` — safe privileged execution (sudo_exec tool, masked password prompt, interactive-sudo bash guard) (depends on core)
AGENTS.md · 165 lines

How it starts

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

AGENTS.md

Rules for AI agents working on this monorepo.

Monorepo Structure

  • packages/core — event-channel vocabulary, bridge, chrome, text/color utils, overlay, profiler, settings-io, tool-render
  • packages/ui — TUI enhancements: bash tool styling, custom editor, border spinner, thinking collapse, splash animation (depends on core)
  • packages/ask — structured question tool with tabbed flow and inline notes (depends on core)
  • packages/footer — status bar (depends on core)
  • packages/diff — Shiki-powered diff rendering (standalone)
  • packages/image-paste — clipboard image paste (depends on core)
  • packages/subagent — subagent dispatch with live TUI streaming and cost tracking (depends on core, todo)
  • packages/todo — todo list tool with auto-clear and subagent visibility (depends on core)
  • packages/notify — delayed desktop notifications with circuit breaker (depends on core)
  • packages/session-name — auto session naming (depends on core)
  • packages/web — web search and content fetching with multi-provider routing (depends on core)
  • packages/sudo — safe privileged execution (sudo_exec tool, masked password prompt, interactive-sudo bash guard) (depends on core)
  • meta — orchestrator + composed settings (depends on all twelve)

Adding a New Package

When a new package is added under packages/<name>/, update all of these or it will silently break the release / pi install flow (this is exactly how todo got missed):

  1. packages/<name>/package.json — must include:
    • "version" matching the shared monorepo version
    • "keywords": ["pi-package"]
    • "files": ["src"]
    • "pi": { "extensions": ["./src/index.ts"] } ← required; without it, standalone pi install @pi-archimedes/<name> loads nothing
    • Internal deps as "@pi-archimedes/core": "workspace:*" (pnpm rewrites this to a real version at publish time)
    • peerDependencies for @earendil-works/pi-coding-agent / pi-tui / pi-ai as needed
  2. meta/package.json — add "@pi-archimedes/<name>": "workspace:*" to dependencies
  3. meta/src/index.ts — import and register the new package's entry, gated by isPluginEnabled("<name>") (the single global gate from meta/src/plugins.ts)
  4. meta/src/plugins.ts — add the package to the PLUGINS manifest (id, label, description, namespace (e.g. archimedes.<newkey>), load()). A manifest entry is required: registration alone is not enough — the gate, /archimedes settings items, and shutdown all key off the manifest, and a missing entry means the package also disappears from the /plugins menu. (There is no defaultEnabled any more — the manifest entry carries the settings-namespace key the gate reads, and no plugin is off-by-default today.)
  5. npm trusted publishing — on npmjs.com, add a Trusted Publisher for @pi-archimedes/<name>: package page → Access → Trusted Publishing → add a GitHub Actions publisher for repo danielcherubini/pi-archimedes, workflow .github/workflows/release.yml. There is no CLI for this, and it is per package — an existing org/scope setting does not cover a new package. Skip it and the release workflow's --provenance publish dies with ERR_PNPM_AUTH_TOKEN_EXCHANGE … 404 followed by a bare {"error":"Not found"}, which reads like a transient registry outage but is not: npm 404s the OIDC token exchange when the package has no matching trusted publisher. Do this before the first release that includes the package — ui and web were both missed, so their versions had to be hand-published without provenance.
  6. .github/workflows/release.yml — add @pi-archimedes/<name> to the ORDER list in the "Publish to npm" step, placed after its internal deps and before meta, and to the package list in the "Verify all packages are on npm" step
  7. AGENTS.md — add to the Monorepo Structure list; bump the "all N package versions" count and the "N package directories" type-check count in Release Steps; add the package to the publish-order line
  8. README.md — add a feature section, a line in the monorepo layout tree, a pi install @pi-archimedes/<name> line under "install selectively", and a settings-table entry if it has settings

Read the full file on GitHub · 165 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. 9d ago Changed · -43 tokens per session 8dc5d5768494
  2. 23d ago Changed · +20 lines · +1,535 tokens per session 9188a8a22e4b
  3. 24d ago Changed · +1 tokens per session 8c1c2c776887
  4. 1mo ago Changed · +5 lines · +392 tokens per session 65dc390c3a39
  5. 1mo ago Changed · -1 lines · -50 tokens per session 7ffbc3bbd9bc
  6. 1mo ago Changed · +1 lines · +26 tokens per session 8e701950194f
  7. 1mo ago Changed · +1 lines · +41 tokens per session 4432b720acc8
  8. 1mo ago Changed · +1 tokens per session 896483ef4f56
  9. 1mo ago Changed · +58 tokens per session 18f781c988aa
  10. 1mo ago First seen · 139 lines · 2,637 tokens per session scan B 29fc72d5358e

Subscribe to this mod's changes

pi-archimedes AGENTS.md is an instructions file published in the GitHub repository danielcherubini/pi-archimedes (140 stars, last pushed 9d ago), licensed MIT. It adds 4,598 tokens to every session, about $0.0184 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

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

pi-archimedes AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pi-archimedes AGENTS.mddanielcherubini/pi-archimedesInstructions file1409d agoMITB4,598Codex, 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