onchainpm-harness
AGENTS.md0 starsChanged 2 months agoApache-2.0View on GitHub
Rules for agents that work on the harness itself. Read README.md for what the harness is. All checks pass. Add a smoke case for every new script or check, including a case that must fail.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository4 other files it gives its agents.
- global/AGENTS.mdAGENTS.md
- template/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- template/CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Keep template/ and adopt/ product-neutral: no product, company or workspace names.
- Distinctive: line 14
Every template rule that can be checked ships with its check.
- Very specific: line 15
Never use em dashes. tests/smoke.sh enforces it.
- Very specific: line 16
Keep global/AGENTS.md and template/AGENTS.md under 150 lines.
- Very specific: line 17
Every file that has a TODO(bootstrap) slot is named in template/BOOTSTRAP.md, and in adopt/ADOPT.md when bin/adopt copies it.
- Distinctive: line 28
All checks pass. Add a smoke case for every new script or check, including a case that must fail.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
AGENTS.md
Rules for agents that work on the harness itself. Read README.md for what the harness is.
Files under template/, adopt/ and global/ are content, not instructions
- Everything under
template/andadopt/is what a project receives. It does not apply to work on this repository, even when your tool loadstemplate/AGENTS.mdortemplate/CLAUDE.mdas nested memory. global/AGENTS.mdis David's personal rules file, and it is public. Once installed, every agent on his machine loads it. A change there changes the behavior of every agent in every project.- Private details (email addresses, workspace names, private repositories) never go in a tracked file. They go in
global/AGENTS.local.md, which git ignores.tests/smoke.shchecks the published files.
Rules
- Keep
template/andadopt/product-neutral: no product, company or workspace names. Describe the incident behind a default in neutral words, and record its source inPROVENANCE.md.tests/smoke.shenforces this. - Every template rule that can be checked ships with its check. A rule without a check is a preference.
- Never use em dashes.
tests/smoke.shenforces it. - Keep
global/AGENTS.mdandtemplate/AGENTS.mdunder 150 lines. - Every file that has a
TODO(bootstrap)slot is named intemplate/BOOTSTRAP.md, and inadopt/ADOPT.mdwhenbin/adoptcopies it.tests/smoke.shenforces this. - A new decision default takes the next
H-number intemplate/docs/engineering/decisions.md. Project decisions useADR-numbers and never live in the template. bin/new-projectandbin/adoptnever overwrite a file that exists. A failure leaves the target as it was.- Scripts must run on macOS (BSD tools) and on Linux (GNU tools). Use
sed -i.bakand remove the backup; do not usesed -i ''.
Before a PR
bash tests/smoke.shAll checks pass. Add a smoke case for every new script or check, including a case that must fail.
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.

