agentleFS
jrcopetijrcopeti/brain-template/AGENTS.md

brain-template

AGENTS.md0 starsChanged 6 days agoMITView on GitHub

This repo is a second brain: knowledge that applies to every project. Project-specific knowledge stays in each project's own AGENTS.md and skills, never here. - Read index.md first. It lists every note in one line each. Then grep for details. - Read taste.md before you judge or create anything: it says what good means here. - Asked what the brain says about something? Use the ask-brain skill: it answers from the notes, with a link to each one, and says…

  • 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,266 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 repository5 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

8 rules. About 1 is common, 1 is distinctive, and 6 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read index.md first. It lists every note in one line each.

    line 8
  2. Very specific:

    Read taste.md before you judge or create anything: it says what good means here.

    line 9
  3. Very specific:

    Every note links the source it came from (sources/…, a URL, or source: own for a rule you decided yourself).

    line 18
  4. Very specific:

    Every file you add gets one line in index.md, in its folder's section.

    line 19
  5. Distinctive:

    When in doubt, don't create the note.

    line 23
  6. Common:

    Never store secrets: no keys, tokens, passwords, or personal data of others.

    line 24
  7. Very specific:

    Run the lint (python3 skills/lint/scripts/lint.py) after you change more than one file.

    line 28
  8. Very specific:

    Always leave the repo pushed: node sync.mjs (commit, pull --rebase, push), on a machine with your git login.

    line 29

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

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

AGENTS.md — rules for this brain

This repo is a second brain: knowledge that applies to every project. Project-specific knowledge stays in each project's own AGENTS.md and skills, never here.

Read

  • Read index.md first. It lists every note in one line each. Then grep for details.
  • Read taste.md before you judge or create anything: it says what good means here.
  • Asked what the brain says about something? Use the ask-brain skill: it answers from the notes, with a link to each one, and says when the brain has nothing.
  • sources/ holds originals (links, pasted text, files). They are evidence, never edited. Everything else is interpretation of them.

Write

  • New things go to inbox/ first, with the capture skill. Only triage files them.
  • One topic per file. File names: kebab-case, decisions and inbox items start with the date (YYYY-MM-DD-).
  • Every note links the source it came from (sources/…, a URL, or source: own for a rule you decided yourself).
  • Every file you add gets one line in index.md, in its folder's section.
  • A changed decision is never deleted: mark the old one status: superseded, set superseded_by: to the new file, and supersedes: on the new one back to it. If only part of it changed, amend it instead (amended_by:); unsure which, amend. The test is in the triage skill's rule 6.
  • When in doubt, don't create the note. A missing note can be written later; a junk note costs every agent.
  • Never store secrets: no keys, tokens, passwords, or personal data of others.

Finish

  • Run the lint (python3 skills/lint/scripts/lint.py) after you change more than one file.
  • Always leave the repo pushed: node sync.mjs (commit, pull --rebase, push), on a machine with your git login. Where an agent keeps the brain on a server, it never runs git: a host script copies its files into its own clone and pushes.

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.