llm-wiki / vault-template
AGENTS.md2 starsChanged 4 months agoMITView on GitHub
This vault is a Karpathy-style LLM wiki: a compiled knowledge base maintained by your AI agents (Claude Code, Hermes, or any agent that reads this file) and curated by its human owner. Every wiki skill MUST read this file after config resolution. These rules override framework defaults. Laws, not tips — each has a number, a never, or a check. _raw/ is intentionally absent. If a drop-to-raw flow requires it, create it on demand — do not route normal captures…
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 repository32 other files it gives its agents.
- vault-template/CLAUDE.mdCLAUDE.md
- claude-history-ingestSkill
- cross-linkerSkill
- daily-updateSkill
- graph-colorizeSkill
- hermes-history-ingestSkill
- impl-validatorSkill
- llm-wikiSkill
- memory-bridgeSkill
- skill-creatorSkill
- tag-taxonomySkill
- vault-skill-factorySkill
- wiki-agentSkill
- wiki-captureSkill
- wiki-context-packSkill
- wiki-dashboardSkill
- wiki-dedupSkill
- wiki-digestSkill
- wiki-exportSkill
- wiki-history-ingestSkill
- wiki-importSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-querySkill
- wiki-rebuildSkill
- wiki-researchSkill
- wiki-setupSkill
- wiki-stage-commitSkill
- wiki-statusSkill
- wiki-switchSkill
- wiki-synthesizeSkill
- wiki-updateSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 1 is common, 1 is distinctive, and 8 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.
8
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 17
Never delete a wiki page. Supersede it: set lifecycle: archived and superseded_by: a wikilink to the successor page.
- Very specific: line 18
Never modify, move, or delete anything inside _inbox/.
- Very specific: line 19
Never write wiki pages outside concepts/, entities/, skills/, references/, synthesis/, journal/, projects/.
- Very specific: line 20
Never write a page without complete frontmatter: title, category, tags, sources, summary, lifecycle, created, updated.
- Very specific: line 21
Never present a synthesized claim as extracted.
- Very specific: line 22
Never create a page for a concept that already has one.
- Very specific: line 23
Never leave index.md, log.md, or hot.md stale after a write operation.
- Common: line 24
Never commit secrets, API keys, tokens, or credentials into the vault.
- Distinctive: line 25
Never start a write operation when git status shows uncommitted changes you did not make.
- Very specific: line 26
Never set lifecycle above draft on pages you write.
≈ “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.
Files
AGENTS.md — Constitution of This Vault
This vault is a Karpathy-style LLM wiki: a compiled knowledge base maintained by your AI agents (Claude Code, Hermes, or any agent that reads this file) and curated by its human owner. Every wiki skill MUST read this file after config resolution. These rules override framework defaults. Laws, not tips — each has a number, a never, or a check.
NEVER (laws; exceptions require asking the owner first)
- Never delete a wiki page. Supersede it: set
lifecycle: archivedandsuperseded_by:a wikilink to the successor page. - Never modify, move, or delete anything inside
_inbox/. Layer-1 sources are immutable ground truth. - Never write wiki pages outside
concepts/,entities/,skills/,references/,synthesis/,journal/,projects/. System folders (_*) hold only their designated system data. - Never write a page without complete frontmatter:
title,category,tags,sources,summary,lifecycle,created,updated. A page missing any of these is not done. - Never present a synthesized claim as extracted. Mark inferences
^[inferred]and contested claims^[ambiguous]. Unmarked = paraphrase of a real source. - Never create a page for a concept that already has one. Grep
index.mdfirst; merge into the existing page. One concept = one page. - Never leave
index.md,log.md, orhot.mdstale after a write operation. Stale bookkeeping = the operation is not done. - Never commit secrets, API keys, tokens, or credentials into the vault.
- Never start a write operation when
git statusshows uncommitted changes you did not make. Another agent may be mid-operation: stop and report to the owner. - Never set
lifecycleabovedrafton pages you write.reviewed/verifiedare human-only transitions. - Never stamp a timestamp with a
Zsuffix unless it is true UTC.log.mdentries and ISO frontmatter timestamps come from a UTC clock (date -uor equivalent) — never local time relabeled as Z. Check: a new timestamp must not be in the future relative todate -u.
FOLDERS
| Folder | Contents | Agent access |
_inbox/ | Owner-dropped source documents (PDFs, articles, exports). THE one intake door. | Read-only. Ingest reads; never moves or edits. |
_staging/ | Review queue (unused unless WIKI_STAGED_WRITES=true) | Unused |
_archives/ | Vault snapshots from wiki-rebuild | Write-once during rebuild |
_meta/ | taxonomy.md tag vocabulary; Bases dashboards; templates/ page templates (Obsidian core Templates); hooks/ git hooks; trust-ledger.md per-skill gate outcomes (graduated trust) | Via tag-taxonomy / wiki-dashboard; templates read-only at write time; trust ledger append-only after a skill's gate |
docs/ | Repo documentation for humans — not wiki pages | Read-only |
concepts/ | One page per standalone idea, pattern, mental model | Read/write |
entities/ | One page per proper noun: tool, person, org, product | Read/write |
skills/ | One page per reusable procedure/how-to (knowledge, NOT agent skills) | Read/write |
references/ | One page per ingested source; single-source view, cites _inbox/ original | Read/write |
synthesis/ | Insights that only exist by combining multiple pages | Read/write |
journal/ | Dated session logs and observations (YYYY-MM-DD.md) | Read/write |
projects/ | One page per project: projects/<name>.md. Nest to projects/<name>/<name>.md + scoped subdirs only when a project exceeds ~5 related pages. Never _project.md. | Read/write |
_raw/ is intentionally absent. If a drop-to-raw flow requires it, create it on demand — do not route normal captures through it; distill directly to category pages.
Filing rule (walk top-down, first match wins): dated? → journal/ · one source's summary? → references/ · proper noun? → entities/ · followable steps? → skills/ · combines multiple pages? → synthesis/ · else → concepts/.
OPERATIONS
| Intent | Skill |
| Save a finding from this session | wiki-capture |
Distill documents from _inbox/ | wiki-ingest |
| Answer a question from the vault | wiki-query |
| Freshness check, index, hot.md refresh | daily-update |
| Health audit / dream cycle | wiki-lint (--consolidate) |
| Weave links between pages | cross-linker |
| Mine agent histories | the framework's *-history-ingest family (claude-history-ingest, hermes-history-ingest) |
| Cross-source insight pages | wiki-synthesize |
Config: ~/.llm-wiki/config (see Config Resolution Protocol in llm-wiki/SKILL.md). Deterministic gate after write operations: llm-wiki doctor passes, and llm-wiki lint --json shows zero fail-level findings (broken_links, missing_frontmatter) outside _inbox/. Findings inside _inbox/ are exempt: sources are immutable (law 2) and the CLI does not skip that folder.
DONE (an operation is complete ONLY when all six hold)
- Pages written with full frontmatter (law 4) and double-bracket wikilinks to related pages.
.manifest.jsonupdated for every source touched (absolute expanded paths as keys;pages_created/pages_updatedpopulated).log.mdappended:- [ISO-8601Z] OPERATION agent=<agent-name> key=value …hot.mdrefreshed with a one-line summary of what changed.index.mdreconciled (every page listed exactly once: list item with a wikilink, an em-dash one-line summary, then tags).git commitcreated with messagewiki(<op>): <summary>. Uncommitted work = not done.
Anything less than all six is a partial operation: finish it or report it as incomplete. Never report done from your own assessment — done = the checks above pass.
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.

