onchainpm-harness / global
AGENTS.md0 starsChanged 2 months agoApache-2.0View on GitHub
These rules apply to every coding agent (Claude Code, Codex, Cursor, Gemini) in every repository. A repository's own AGENTS.md wins where it is more specific. Source of truth: global/AGENTS.md in the onchainpm-harness repository, which is public. Private details (addresses, workspace names, private repositories) go in global/AGENTS.local.md, which git ignores. global/install.sh joins the two into ~/.agents/AGENTS.md, and every agent loads that path through a link or an import. Edit the two source files and run the install again. Do not edit…
- Deletes or force-pushes
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 35,337 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.
- AGENTS.mdAGENTS.md
- template/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- template/CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
45 rules. About 0 are common, 40 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈40
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
- could be automatic: a setting could enforce it
- Very specific: line 11
When I give a correction that applies beyond the current repository, propose a one-line addition here.
- Distinctive: line 12
When a correction applies only to the current repository, add it to that repository's nearest AGENTS.md.
- Distinctive: line 13
Do not keep a correction only in private agent memory.
- Distinctive: line 15
Keep this file under 150 lines.
- Distinctive: line 25
Write chat replies in ASD-STE100 Simplified Technical English.
- Distinctive: line 28
Keep Linear comments, issue bodies and PR bodies to a few sentences.
- Distinctive: line 29
After you publish a prototype or a page, give the link and the open decisions.
- Distinctive: line 33
After I approve a plan, continue until the work is done or you are blocked.
- Distinctive: line 39
Do anything other people can see: push, comment on a PR or issue, send a message, post to a service.
- Distinctive: line 40
Never merge a PR that has review comments you have not addressed.
- Distinctive: line 42
Start a delegated job (another agent, a background task) from the worktree it must work in, and check its working directory before it runs …
- Distinctive: line 43
Do not create structure in shared tools (Linear projects, milestones, batches of issues, shared docs) until I agree each layer.
- Distinctive: line 44
Never remove a feature flag or a rollout gate without my approval.
- Distinctive: line 45
When I test a local build live and give feedback, fix the code in the working tree.
- Distinctive: line 46
Never accept a license, terms of service or other agreement for me.
- Distinctive: line 47
Ask before you restart a shared local service that you did not start, such as a simulator service, a database or a dev server.
- Distinctive: line 51
Never push to main. Use a feature branch and a PR for every change.
- Very specific: line 54
Check the commit identity before the first commit (git config --get user.email).
- Distinctive: line 55
Before you ask me to merge, read the PR description again against the final diff.
- Distinctive: line 57
Default to one PR per logical change, with related sub-issues bundled together.
- Distinctive: line 58
After you address a review comment, reply with the fix or the reason, then resolve the thread.
- Very specific: line 60
When you cannot upload screenshots, stage them in /tmp/<repo>-pr-screenshots/<branch>/ with a caption for each, and I drag them into the PR.
- Distinctive: line 64
Before you push new features, substantive changes or bug fixes, get an adversarial review from a different model than the one that wrote …
- Distinctive: line 67
Do not ask me to review UI that you have not rendered and screenshotted yourself.
- Distinctive: line 68
Treat delegated work as a draft.
- Distinctive: line 69
Do not delegate exact ports or mechanical renames to a generative agent.
- Distinctive: line 71
When agents review UI that I already approved, their findings about approved decisions are proposals for me, not edits.
- Distinctive: line 77
Write the failing test first for new features and bug fixes.
- Distinctive: line 78
Put decision rules in pure modules that the test runner can load.
- Distinctive: line 81
When a privacy-safe path fails, fail closed.
- Distinctive: line 86
When the build differs from the spec, add an "As built" list of the differences to the spec in the same PR.
- Distinctive: line 92
Before a large UI change, build a standalone HTML prototype with at least two variations.
- Distinctive: line 94
No layout shift. Reserve space, keep rows mounted, animate every show and hide, and keep the scroll position when content swaps.
- Distinctive: line 96
Every chart and table has an empty state.
- Very specific: line 97
Never put an interactive element inside another one (<button> in <button>).
- Distinctive: line 98
Do not put a thick single-side border on a rounded container.
- Distinctive: line 99
Do not number section headings ("01 /") unless the order is the content.
- Very specific: line 100
Do not limit body text to a narrow ch width.
- Distinctive: line 102
When the system changes something for the user, name each dimension that changed and give its value before the change.
- Distinctive: line 103
If the agent has the impeccable skills (critique, polish, audit, animate), use them on UI work before you hand it over.
- Distinctive: line 107
Never use em dashes in writing.
- Distinctive: line 109
No hype and no corporate words: "leverage", "synergies", "the intersection of", "transformative".
- Distinctive: line 111
Use a personal voice skill only for blog and social posts under my name.
- Distinctive: line 117
Create tracker issues in the Triage state.
- Distinctive: line 119
When a PR or issue addresses user feedback, quote the user verbatim with the source and date.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
Personal agent rules: David Fernandez
These rules apply to every coding agent (Claude Code, Codex, Cursor, Gemini) in every repository.
A repository's own AGENTS.md wins where it is more specific.
Source of truth: global/AGENTS.md in the onchainpm-harness repository, which is public. Private details (addresses, workspace names, private repositories) go in global/AGENTS.local.md, which git ignores. global/install.sh joins the two into ~/.agents/AGENTS.md, and every agent loads that path through a link or an import.
Edit the two source files and run the install again. Do not edit the generated copy.
How this file grows
- When I give a correction that applies beyond the current repository, propose a one-line addition here. Add it through a PR to the harness repository after I agree. If it names a private detail, add it to
global/AGENTS.local.mdinstead. - When a correction applies only to the current repository, add it to that repository's nearest
AGENTS.md. - Do not keep a correction only in private agent memory. Other agents and teammates cannot read it.
- Rules that teammates' agents must also follow go in the repository, not only here.
- Keep this file under 150 lines. Write each rule as the rule, then a short reason when the reason is not obvious.
About me
- Product builder, co-founder of TNT Labs. Zero-to-one, discovery-heavy, design-sensitive. I dislike generic AI output.
- Define each acronym and domain term the first time you use it.
- I review on a board and in notifications, not as documents. Put the decision or the ask first.
Talking to me
- Write chat replies in ASD-STE100 Simplified Technical English. Use the active voice and short sentences: 20 words maximum for an instruction, 25 for a description.
- Give one instruction per sentence. Use the same word for the same thing. Do not use idioms or metaphors. Put a warning before its step.
- STE applies to chat only. Product copy, PRs, docs and commit messages follow the repository's voice.
- Keep Linear comments, issue bodies and PR bodies to a few sentences. Use tables and code blocks only when they are the content.
- After you publish a prototype or a page, give the link and the open decisions. Do not describe what the page shows.
Autonomy and approval
- After I approve a plan, continue until the work is done or you are blocked. Do not ask "shall I continue?".
- Reversible local work does not need approval: edit files, run tests, run local servers.
- Get my current, explicit approval before each of these actions. An approval covers only the action it names and does not carry forward.
- Merge a PR. A multiple-choice option that mentions merging is not approval to merge.
- Force-push, hard reset, delete a branch,
rm -rf, drop data, or overwrite uncommitted work. - Change production or shared infrastructure: migrations, deploys, jobs against production data.
- Do anything other people can see: push, comment on a PR or issue, send a message, post to a service.
- Never merge a PR that has review comments you have not addressed.
- A test run is a job against production when the checkout holds production credentials. Run test suites only where they cannot reach production, such as a fresh worktree, which has no git-ignored env files. Unsetting variables is not a guard: a test can read an env file itself. In a checkout with production credentials, run only named test files you have checked, never a glob or a grep-built list.
- Start a delegated job (another agent, a background task) from the worktree it must work in, and check its working directory before it runs anything. A brief that names a worktree does not move the job there.
- Do not create structure in shared tools (Linear projects, milestones, batches of issues, shared docs) until I agree each layer. Propose it in chat first.
- Never remove a feature flag or a rollout gate without my approval. Feature-complete does not mean ready for users.
- When I test a local build live and give feedback, fix the code in the working tree. Do not post PR comments or file issues unless I ask.
- Never accept a license, terms of service or other agreement for me. Accepting binds me or my company. Stop and hand me that step.
- Ask before you restart a shared local service that you did not start, such as a simulator service, a database or a dev server. I may be using it for other work.
Git
- Never push to
main. Use a feature branch and a PR for every change. - Stage explicit paths only. Never use
git add -Aorgit add .. Rungit status --shortfirst, because my own unfinished work is often in the tree. - Fetch before you start work, not before you commit. Compare local
mainwith the remote, and check open PRs for work that overlaps. - Check the commit identity before the first commit (
git config --get user.email). The local rules say which address each kind of repository uses. Set identity with--localonly. - Before you ask me to merge, read the PR description again against the final diff. Correct each statement that is no longer true. A long PR drifts from its first description.
- When you say a PR is ready to merge, also say what the merge does: what it deploys (a migration that runs on deploy), what it blocks (over-the-air updates until a new binary) and who sees it (behind a flag or not). Green CI alone does not make a PR ready.
- Default to one PR per logical change, with related sub-issues bundled together. Stack PRs only when I agree. Then merge from the bottom up and retarget each child to
main. - After you address a review comment, reply with the fix or the reason, then resolve the thread.
- Never commit screenshots or prototypes. Attach screenshots to the PR from a secret gist: push the images to the gist and embed their raw URLs. A secret gist is unlisted, not private, so use it only for screenshots of test or fixture data, never real account data. Gist upload for those screenshots does not need a separate approval.
- When you cannot upload screenshots, stage them in
/tmp/<repo>-pr-screenshots/<branch>/with a caption for each, and I drag them into the PR. Delete the folder after.
Review and verification
- Before you push new features, substantive changes or bug fixes, get an adversarial review from a different model than the one that wrote the code. Address or dismiss each finding with a reason.
- Dismiss a review finding only for a reason you have checked in the code or the data, not from memory.
- That review is not needed for PR-comment follow-ups, docs, changelog or test-only changes, or while I test the branch by hand.
- Do not ask me to review UI that you have not rendered and screenshotted yourself. Check each important state, in light and dark themes. Skip this while I test the same change live.
- Treat delegated work as a draft. Run the acceptance checks yourself. Do not trust another agent's report or status label.
- Do not delegate exact ports or mechanical renames to a generative agent. Do them with deterministic edits or a script.
- A fix for a review finding in logic that changes user outcomes needs its own adversarial check before you push. A second model reviews the fix. For non-trivial logic, have independent agents build and run scenarios that try to break it. A reviewer's suggested fix is a hypothesis until it survives that check.
- When agents review UI that I already approved, their findings about approved decisions are proposals for me, not edits. My approved design is the spec.
- A restyle or copy pass changes presentation only. Before handover, diff the rendered text, numbers, chart series, links and disclaimers between
mainand the branch. Each fact that disappears needs a counterpart. - For UI work, let me see it running before you push: a local URL for a web app, the simulator or a dev build for a native app. Wait for my OK. A repository can override this.
Engineering defaults
- Write the failing test first for new features and bug fixes. CSS-only and HTML-only changes are exempt.
- Put decision rules in pure modules that the test runner can load. A rule that lives only in a store or a component that imports native code cannot be tested.
- Restart the dev server after code changes, before you ask me to test.
- A failed read must not return the same value as an empty result when the caller acts on it. Return an error or
null, and make the caller stop. A failed duplicate check that returns no rows causes a duplicate write. - When a privacy-safe path fails, fail closed. Do not fall back to the less safe default, such as storage that is backed up to the cloud.
- Migrations: prefer a clean slate to preserving ambiguous legacy data. Never build a review queue for me. Curated reference data is the exception.
- Data fixes: limit the change to the affected user or record, and do a dry run first. Build a general backfill tool only when scale requires it.
- Values that change user outcomes (thresholds, multipliers, cuts) need three things: the decision, the reason, and a source. Use a citation, or label the value "heuristic, refine with data".
- Record non-obvious decisions in the repository's ADR log. When an ADR claims an invariant, add a grep-level check in CI if you can.
- When the build differs from the spec, add an "As built" list of the differences to the spec in the same PR.
- Security findings (an open vulnerability, an exposed secret, a missing control): run
gh repo view <repo> --json visibilityfirst. Never file one in a public repository. Use the tracker or a private repository. - A change to an LLM feature's model, prompt or output format needs an eval: run the baseline and the change on the same synthetic inputs, and compare speed, cost, failures and content. Before any paid run, show me the estimated spend and wait for my OK. Method:
docs/engineering/evals.mdin the repository or in the harness template.
UI defaults
- Before a large UI change, build a standalone HTML prototype with at least two variations. Wait for my choice. After you build it, check the implementation against the prototype.
- For a native app, prototype natively: a dev-only preview screen on a design branch that never merges. I judge native UI on the device, not in a browser.
- No layout shift. Reserve space, keep rows mounted, animate every show and hide, and keep the scroll position when content swaps.
- Motion and interaction feel are part of the design. After the visual pass, do a motion pass.
- Every chart and table has an empty state. A section never disappears without an explanation.
- Never put an interactive element inside another one (
<button>in<button>). For a tappable card with child controls, use<div role="button" tabindex="0">. - Do not put a thick single-side border on a rounded container.
- Do not number section headings ("01 /") unless the order is the content.
- Do not limit body text to a narrow
chwidth. Make text the same width as the media in its column. - Copy must earn its place. Do not describe the page, add explanatory subtitles, repeat facts already on screen, or add "Optional" tags. Use one word for one concept.
- When the system changes something for the user, name each dimension that changed and give its value before the change. Write "Volume 6 min, was 10. Intensity: easier pace", not "6/10 min, easier".
- If the agent has the impeccable skills (critique, polish, audit, animate), use them on UI work before you hand it over.
Writing (content, docs, public copy)
- Never use em dashes in writing. A repository's voice guide can override this.
- AI writes the draft and a human edits it. Cut hedges, repetition, introductions that only warm up, and summaries that only repeat.
- No hype and no corporate words: "leverage", "synergies", "the intersection of", "transformative".
- Empirical claims in published content need a citation that you checked. Verify each citation. Never cite from memory.
- Use a personal voice skill only for blog and social posts under my name. Product copy follows the repository's brand voice.
- Market research follows the data, not internal team positions.
Work tracking
- Short-lived work (features, bugs, proposals) goes in the tracker. Knowledge that lasts goes in repository markdown.
- Create tracker issues in the Triage state. The Linear API default is Backlog, and I miss items there.
- When more than one tracker workspace is connected, the local rules say which repository uses which. Check the workspace in each issue
urlbefore you report or write. If the correct workspace is not available, stop. Never fall back to another one, for reads or for writes. - When a PR or issue addresses user feedback, quote the user verbatim with the source and date. Every PR that changes behavior needs a plain-language "Proposed solution" section.
Agent-specific notes
- Claude Code: the adversarial review is
/codex:adversarial-review. Only I can run it. Commit, stop before push, and hand over. - Claude Code auto mode blocks gist uploads unless a permission rule allows them. Without that rule, stage the screenshots and say that the permission is the block.
- Claude Code auto-memory: save project facts there. Put corrections here or in the repository
AGENTS.md, as "How this file grows" says.
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.

