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 checking a change actually works.
Of the AGENTS.md files we read, the 11,736 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 repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hub-doctorSkill
- hub-lintSkill
- load-contextSkill
- store-to-hubSkill
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
- Distinctive: line 25
Do NOT file back:
- Distinctive: line 31
After adding or substantially changing a note:
- Very specific: line 32
Add or update its entry in INDEX.md.
- Distinctive: line 35
No frontmatter. No log file.
- Very specific: line 39
Read before writing. Check INDEX.md and related notes first.
- Distinctive: line 41
Verify before asserting. A grep hit is a lead, not an answer.
- Very specific: line 43
Every new or renamed note gets an INDEX.md entry.
- Very specific: line 47
Use docs/adr/ for decisions that are hard to reverse, surprising without context, and the result of a real trade-off.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
{{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;DRto the top of its lead file (00-context.md, or aREADME.mdin 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.mdredirects toAGENTS.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:
- Add or update its entry in
INDEX.md. - 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
- Read before writing. Check
INDEX.mdand related notes first. Update an existing note instead of forking. - Cite code, do not paraphrase. Include file path and line range; quote the relevant lines.
- Verify before asserting. A grep hit is a lead, not an answer. Open the file before claiming anything.
- Match existing style. Dense, code-grounded prose. No em dashes.
- Every new or renamed note gets an
INDEX.mdentry.
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.
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.

