dot-pi
AGENTS.md57 starsChanged 5 months agoMITView on GitHub
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. Install the complete package with Pi: For a project-local install: Use direct symlinks only when enabling individual optional resources from a manual checkout: 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/. When adding new extensions,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository15 other files it gives its agents.
- agent-browserSkill
- ai-newsSkill
- applescriptSkill
- birdSkill
- chat-to-skillSkill
- dont-anger-marioSkill
- github-issuesSkill
- keyboard-layout-decoderSkill
- maintainer-replySkill
- package-releaseSkill
- pr-reviewSkill
- session-reflectSkill
- skill-discoverySkill
- twitter-thread-styleSkill
- vibe-mergeSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 10 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Use direct symlinks only when enabling individual optional resources from a manual checkout:
- Distinctive: line 36
When adding new extensions, skills, or rules:
- Distinctive: line 38
Add entry to the corresponding table in README.md
- Distinctive: line 39
Keep tables alphabetically sorted
- Distinctive: line 41
Commit both the component and README update together
- Distinctive: line 45
Update an existing canonical home before creating a new Markdown document:
- Distinctive: line 53
Do not commit ad hoc audit reports, execution diaries, machine-local test evidence, or speculative proposals as standalone docs.
- Distinctive: line 57
Before committing changes, run:
- Distinctive: line 69
When adding or changing model-facing tool renderers, follow native pi TUI conventions systematically:
- Very specific: line 71
Use shared primitives from extensions/shared/render.ts instead of ad-hoc new Text(...) result styling.
- Distinctive: line 78
Do not use raw white text for tool output unless it is intentionally neutral prose from the assistant.
- Very specific: line 81
If compact output is lossy, show (ctrl+o to expand) as a footer with a blank line before it.
- Very specific: line 82
Never duplicate state/mode labels.
- Very specific: line 83
Search results should be parsed into semantic rows (count, path:line, source preview), not dumped as raw command stdout.
- Very specific: line 86
After renderer changes, run npm run check, npm run test, npm run format:check, and verify representative cases in tmux/asciinema before …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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-piFor a project-local install:
pi install git:github.com/dannote/dot-pi -lUse 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
Documentation
Update an existing canonical home before creating a new Markdown document:
README.md: installation, resource catalog, documentation navigation.docs/handbook.md: user workflows.docs/smoke-test.md: repeatable validation procedures.extensions/shared/README.md: extension development, shared helpers, API references, known limitations.- Component READMEs: component-specific usage only;
demos/README.md: demo recording.
Do not commit ad hoc audit reports, execution diaries, machine-local test evidence, or speculative proposals as standalone docs. Use issues/reviews or commit history for those. Skills, prompts, rules, and Markdown test fixtures are functional resources, not documentation clutter.
Quality Gates
Before committing changes, run:
npm run check
npm run test
npm run format:checknpm 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

