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.
npx agentmods add instructions/dannote/dot-pi/agents-mdgit clone --depth 1 https://github.com/dannote/dot-piWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00827 | $0.00827 |
| Opus 5 | $0.00413 | $0.00413 |
| Sonnet 5 | $0.00165 | $0.00165 |
| Haiku 4.5 | $0.00083 | $0.00083 |
Grade A, and why
dot-pi 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Development Guidelines
Pi reads this AGENTS.md automatically when working in this repository. Keep durable dot-pi development policy here; use prompt templates for turn-specific intent and rules/ for optional personal preferences.
Installation
Install the complete package with Pi:
pi install git:github.com/dannote/dot-pi
For a project-local install:
pi install git:github.com/dannote/dot-pi -l
Use direct symlinks only when enabling individual optional resources from a manual checkout:
# Extensions
ln -s /path/to/dot-pi/extensions/codesearch.ts ~/.pi/agent/extensions/
# Skills
ln -s /path/to/dot-pi/skills/ai-news ~/.pi/agent/skills/
# Rules
ln -s /path/to/dot-pi/rules/typescript.md ~/.pi/agent/rules/
Each symlink points directly to the source file or directory. No intermediate symlinks. Pi discovers this repository's AGENTS.md natively; do not symlink it into ~/.pi/agent/.
Adding New Components
When adding new extensions, skills, or rules:
- Add entry to the corresponding table in
README.md - Keep tables alphabetically sorted
- Include Origin column with link to source if adapted from another project
- Commit both the component and README update together
Quality Gates
Before committing changes, run:
npm run check
npm run test
npm run format:check
npm run check includes oxlint, TypeScript checking, Vitest, jscpd duplicate detection, and deps:check dependency hygiene. Keep shared helpers in extensions/shared/ when logic appears in more than one extension.
Native pi Tool Rendering Rules
When adding or changing model-facing tool renderers, follow native pi TUI conventions systematically:
- Use shared primitives from
extensions/shared/render.tsinstead of ad-hocnew Text(...)result styling. - Result blocks start with one leading blank line, but do not add blanket left padding. Indent only when the structure needs it.
- Use semantic colors:
- metadata, paths, counts, hidden-detail text:
meta(...)/ muted - primary output/code/content:
primary(...)/toolOutput - important headings/names:
title(...)/ boldtoolOutput - additions/removals in diffs: success/error
- metadata, paths, counts, hidden-detail text:
- Do not use raw white text for tool output unless it is intentionally neutral prose from the assistant. Tool result content should be styled.
- Human-readable metadata order is left-to-right: subject first, then attributes, e.g.
https://example.com/ · 559 B, not(559 B) → url. - Compact renderers show a summary and a few semantic items only. Raw bodies, long snippets, page text, and full diffs belong in expanded output.
- If compact output is lossy, show
(ctrl+o to expand)as a footer with a blank line before it. Do not show the hint when there is nothing hidden. - Never duplicate state/mode labels. If the call line says
dry-run, the result body must not also sayDRY RUN. - Search results should be parsed into semantic rows (
count,path:line, source preview), not dumped as raw command stdout. - AST edit dry-run diffs must render like pi's built-in edit diff style; do not expose ast-grep's pseudo-diff format (
1 1│, etc.). - Absolute paths should be muted and avoided in compact primary text when a shorter name is sufficient.
- After renderer changes, run
npm run check,npm run test,npm run format:check, and verify representative cases in tmux/asciinema before claiming the UI is fixed.
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.
- 2d ago First seen · 75 lines · 827 tokens per session scan A 587b42233a97
dot-pi AGENTS.md is an instructions file published in the GitHub repository dannote/dot-pi (51 stars, last pushed 2d ago), licensed MIT. It adds 827 tokens to every session, about $0.0041 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.
Other instructions, from other repositories
actionbook CLAUDE.md
Instructions for actionbook/actionbook, covering claude.md, project overview, architecture, domain model hierarchy and module structure.
dev-browser AGENTS.md
Instructions for SawyerHood/dev-browser, covering claude.md, tooling and validation.
open-plan-annotator AGENTS.md
Instructions for ndom91/open-plan-annotator, covering open-plan-annotator: development guide, what this is, architecture, runtime distribution and key files.
cafleet CLAUDE.md
Instructions for himkt/cafleet, covering claude.md, skills, project: cafleet, tech stack and commands.
speq-skill CLAUDE.md
Instructions for marconae/speq-skill, covering local development rules, rules and commands.
ai-rules-sync AGENTS.md
Instructions for PanisHandsome/ai-rules-sync, covering agentsync, build & test commands, architecture, code style & conventions and before opening a pr.