agentleFS
chobizzychobizzy/llm-wiki/vault-template/AGENTS.md

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…

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
  1. Very specific:

    Never delete a wiki page. Supersede it: set lifecycle: archived and superseded_by: a wikilink to the successor page.

    line 17
  2. Very specific:

    Never modify, move, or delete anything inside _inbox/.

    line 18
  3. Very specific:

    Never write wiki pages outside concepts/, entities/, skills/, references/, synthesis/, journal/, projects/.

    line 19
  4. Very specific:

    Never write a page without complete frontmatter: title, category, tags, sources, summary, lifecycle, created, updated.

    line 20
  5. Very specific:

    Never present a synthesized claim as extracted.

    line 21
  6. Very specific:

    Never create a page for a concept that already has one.

    line 22
  7. Very specific:

    Never leave index.md, log.md, or hot.md stale after a write operation.

    line 23
  8. Common:

    Never commit secrets, API keys, tokens, or credentials into the vault.

    line 24
  9. Distinctive:

    Never start a write operation when git status shows uncommitted changes you did not make.

    line 25
  10. Very specific:

    Never set lifecycle above draft on pages you write.

    line 26

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

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

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)

  1. Never delete a wiki page. Supersede it: set lifecycle: archived and superseded_by: a wikilink to the successor page.
  2. Never modify, move, or delete anything inside _inbox/. Layer-1 sources are immutable ground truth.
  3. Never write wiki pages outside concepts/, entities/, skills/, references/, synthesis/, journal/, projects/. System folders (_*) hold only their designated system data.
  4. Never write a page without complete frontmatter: title, category, tags, sources, summary, lifecycle, created, updated. A page missing any of these is not done.
  5. Never present a synthesized claim as extracted. Mark inferences ^[inferred] and contested claims ^[ambiguous]. Unmarked = paraphrase of a real source.
  6. Never create a page for a concept that already has one. Grep index.md first; merge into the existing page. One concept = one page.
  7. Never leave index.md, log.md, or hot.md stale after a write operation. Stale bookkeeping = the operation is not done.
  8. Never commit secrets, API keys, tokens, or credentials into the vault.
  9. Never start a write operation when git status shows uncommitted changes you did not make. Another agent may be mid-operation: stop and report to the owner.
  10. Never set lifecycle above draft on pages you write. reviewed/verified are human-only transitions.
  11. Never stamp a timestamp with a Z suffix unless it is true UTC. log.md entries and ISO frontmatter timestamps come from a UTC clock (date -u or equivalent) — never local time relabeled as Z. Check: a new timestamp must not be in the future relative to date -u.

FOLDERS

FolderContentsAgent 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-rebuildWrite-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 pagesRead-only
concepts/One page per standalone idea, pattern, mental modelRead/write
entities/One page per proper noun: tool, person, org, productRead/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/ originalRead/write
synthesis/Insights that only exist by combining multiple pagesRead/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

IntentSkill
Save a finding from this sessionwiki-capture
Distill documents from _inbox/wiki-ingest
Answer a question from the vaultwiki-query
Freshness check, index, hot.md refreshdaily-update
Health audit / dream cyclewiki-lint (--consolidate)
Weave links between pagescross-linker
Mine agent historiesthe framework's *-history-ingest family (claude-history-ingest, hermes-history-ingest)
Cross-source insight pageswiki-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)

  1. Pages written with full frontmatter (law 4) and double-bracket wikilinks to related pages.
  2. .manifest.json updated for every source touched (absolute expanded paths as keys; pages_created/pages_updated populated).
  3. log.md appended: - [ISO-8601Z] OPERATION agent=<agent-name> key=value …
  4. hot.md refreshed with a one-line summary of what changed.
  5. index.md reconciled (every page listed exactly once: list item with a wikilink, an em-dash one-line summary, then tags).
  6. git commit created with message wiki(<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.

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.