agentleFS
eyupcanbodureyupcanbodur/agent-knowledge-hub/template/AGENTS.md

agent-knowledge-hub / template

AGENTS.md0 starsChanged 6 months agoMITView on GitHub

Part of the agent-knowledge-hub monorepo. See the root AGENTS.md for hub isolation rules. This file is this hub's charter: its domain, note voice, and rules. Canonical shape: ../docs/note-format.md (TL;DR, code-grounded body, verified-vs-inferred, sources, related). Add any hub-specific requirements below this line for {{HUB_NAME}}. File back when: - You spent more than 30 minutes piecing something together that was not in one place. - You answered a question that came up before or will come up again. - The investigation revealed…

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

The file

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

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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. Distinctive:

    Do NOT file back:

    line 25
  2. Distinctive:

    After adding or substantially changing a note:

    line 31
  3. Very specific:

    Add or update its entry in INDEX.md.

    line 32
  4. Distinctive:

    No frontmatter. No log file.

    line 35
  5. Very specific:

    Read before writing. Check INDEX.md and related notes first.

    line 39
  6. Distinctive:

    Verify before asserting. A grep hit is a lead, not an answer.

    line 41
  7. Very specific:

    Every new or renamed note gets an INDEX.md entry.

    line 43
  8. Very specific:

    Use docs/adr/ for decisions that are hard to reverse, surprising without context, and the result of a real trade-off.

    line 47

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

{{HUB_NAME}}

{{DOMAIN}}

Part of the agent-knowledge-hub monorepo. See the root AGENTS.md for hub isolation rules. This file is this hub's charter: its domain, note voice, and rules.

Structure

  • *.md: Standalone topical notes. One file per topic, kebab-case filename. A topic is something you learned or investigated that future-you will want to find again.
  • works/<project-slug>/: Active multi-step project research. Numbered files (00-context.md, 01-research-findings.md, ...) capture the linear story of a project. When it stabilizes, add a ## TL;DR to the top of its lead file (00-context.md, or a README.md in the folder). The folder stays as the durable record. Do not migrate it into a root note.
  • INDEX.md: One-line summary of every note. First place to look when finding a note by topic.
  • AGENTS.md / CLAUDE.md: This charter. CLAUDE.md redirects to AGENTS.md.

What makes a good note

Canonical shape: ../docs/note-format.md (TL;DR, code-grounded body, verified-vs-inferred, sources, related). Add any hub-specific requirements below this line for {{HUB_NAME}}.

When to add a new note

File back when:

  • You spent more than 30 minutes piecing something together that was not in one place.
  • You answered a question that came up before or will come up again.
  • The investigation revealed a non-obvious pattern, gotcha, or pipeline a future investigation will start from.

Do NOT file back:

  • One-off lookups, status checks, fix-and-forget bugs.
  • Things already captured in another note. Update the existing note instead of forking.

Bookkeeping

After adding or substantially changing a note:

  1. Add or update its entry in INDEX.md.
  2. Reference related notes inline by filename when the relationship is non-obvious.

No frontmatter. No log file. Keep overhead minimal so friction never blocks a write.

Rules

  1. Read before writing. Check INDEX.md and related notes first. Update an existing note instead of forking.
  2. Cite code, do not paraphrase. Include file path and line range; quote the relevant lines.
  3. Verify before asserting. A grep hit is a lead, not an answer. Open the file before claiming anything.
  4. Match existing style. Dense, code-grounded prose. No em dashes.
  5. Every new or renamed note gets an INDEX.md entry.

ADRs

Use docs/adr/ for decisions that are hard to reverse, surprising without context, and the result of a real trade-off. Skip the ADR if any of the three is missing.

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.