agentleFS
fernandezdavidfernandezdavid/onchainpm-harness/AGENTS.md

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.

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
  1. Very specific:

    Keep template/ and adopt/ product-neutral: no product, company or workspace names.

    line 13
  2. Distinctive:

    Every template rule that can be checked ships with its check.

    line 14
  3. Very specific:

    Never use em dashes. tests/smoke.sh enforces it.

    line 15
  4. Very specific:

    Keep global/AGENTS.md and template/AGENTS.md under 150 lines.

    line 16
  5. Very specific:

    Every file that has a TODO(bootstrap) slot is named in template/BOOTSTRAP.md, and in adopt/ADOPT.md when bin/adopt copies it.

    line 17
  6. Distinctive:

    All checks pass. Add a smoke case for every new script or check, including a case that must fail.

    line 28

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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/ and adopt/ is what a project receives. It does not apply to work on this repository, even when your tool loads template/AGENTS.md or template/CLAUDE.md as nested memory.
  • global/AGENTS.md is 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.sh checks the published files.

Rules

  • Keep template/ and adopt/ product-neutral: no product, company or workspace names. Describe the incident behind a default in neutral words, and record its source in PROVENANCE.md. tests/smoke.sh enforces 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.sh enforces it.
  • Keep global/AGENTS.md and template/AGENTS.md under 150 lines.
  • Every file that has a TODO(bootstrap) slot is named in template/BOOTSTRAP.md, and in adopt/ADOPT.md when bin/adopt copies it. tests/smoke.sh enforces this.
  • A new decision default takes the next H- number in template/docs/engineering/decisions.md. Project decisions use ADR- numbers and never live in the template.
  • bin/new-project and bin/adopt never 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.bak and remove the backup; do not use sed -i ''.

Before a PR

bash tests/smoke.sh

All checks pass. Add a smoke case for every new script or check, including a case that must fail.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.