pi-project-profile
AGENTS.md0 starsChanged 45 days agoMITView on GitHub
A π (pi-coding-agent) extension package. README.md is the user-facing reference; this file is for contributors and agents. Add a unit test for every detector or planner change. Add changelog entries under ## Unreleased in CHANGELOG.md; releases are cut by the Release workflow (see CONTRIBUTING.md), never by hand. Workflows pin actions to commit SHAs and must pass actionlint and zizmor.
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 repository2 other files it gives its agents.
- llms.txtllms.txt
- project-profileSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
No runtime dependencies: Import only from node:*, @earendil-works/pi-coding-agent, @earendil-works/pi-ai (Type), @earendil-works/pi-tui …
- Very specific: line 10
Never write into the target repository: All state goes under ~/.pi/agent/project-profile/ or $TMPDIR/pi-project-profile/.
- Very specific: line 25
Add a unit test for every detector or planner change.
≈ “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
Working on pi-project-profile
A π (pi-coding-agent) extension package. README.md is the user-facing reference; this file is for contributors and agents.
Hard constraints — do not regress
- Erasable TypeScript only. π loads
.tsdirectly (Node type stripping / jiti): noenum,namespace, parameter properties, or decorators. Useimport type, explicit.tsimport extensions,"type": "module".tscenforceserasableSyntaxOnlyandverbatimModuleSyntax. - No runtime dependencies. Import only from
node:*,@earendil-works/pi-coding-agent,@earendil-works/pi-ai(Type),@earendil-works/pi-tui(Box/Text/Markdown). - The prompt section must be deterministic per session (no timestamps, branch names, or ordering that depends on iteration order) so prompt caching keeps working.
- Never write into the target repository. All state goes under
~/.pi/agent/project-profile/or$TMPDIR/pi-project-profile/. - Never auto-run installs, migrations, deploys, or anything network-bound. Tests and builds are confirm-once tiers (
TIER_POLICYintypes.ts). When unsure, fail to a no-op — never to a wrong action. - Bump
DETECTOR_VERSIONindetect/index.tswhenever detector output shape or semantics change (it invalidates cached profiles). - Discoverability metadata is tested (
test/package.test.ts). The npmdescriptionmust stay ≤ 250 characters (the registry truncates at 255; the π catalog card shows ~250).skills/project-profile/SKILL.mdfollows the Agent Skills spec (name = directory name, description ≤ 1024 characters, states when to use it) and must document every/profilesubcommand and config key that exists.llms.txtlinks only to files that exist.docs/site/index.html,sitemap.xmland.github/workflows/pages.ymlmust agree (the test checks). When a command, config key or behaviour changes, update the README, the skill and the site together.
Verify your changes
npm run check # tsc, must be clean
npm test # node --test test/*.test.ts, all passing
node scripts/scan.ts <repo> --checks # detector output for any real repository
npm run corpus # detection on ~20 real repositories (clones them; CI runs it too)
PI_PROJECT_PROFILE_DEBUG=1 pi -p "…" # live gate trace in $TMPDIR/pi-project-profile/debug.jsonlAdd a unit test for every detector or planner change. Add changelog entries under ## Unreleased in CHANGELOG.md; releases are cut by the Release workflow (see CONTRIBUTING.md), never by hand. Workflows pin actions to commit SHAs and must pass actionlint and zizmor.
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.

