Skip to main content

LLM Wiki

Pattern originally described by Andrej Karpathy: LLM Wiki

The LLM Wiki is a structured knowledge base that lives alongside — but is separate from — the conversation memory system. It uses Obsidian-style markdown (wikilinks, callouts, frontmatter) and is organized according to a schema.md the agent reads before every operation.

How it works

  • The vault root is /mnt/notebook (sandbox) or ${MOUNT_NOTEBOOK} (host).
  • Three agent-maintained navigation files live at the vault root:
    • schema.md — vault conventions, folder layout, and page types. The agent reads this first on every operation.
    • index.md — catalog of synthesized pages, updated on every ingest or query filing.
    • log.md — append-only chronological record of all agent operations.
  • The agent reads and writes vault pages directly via ReadFileTool/WriteFileTool/EditFileTool.
  • WikiManager bootstraps these three files on first init (from skills/notebook/schema_example.md), then stays out of the way.

Distinction from conversation memory

Conversation MemoryLLM Wiki
ContentEpisodic facts extracted from chatsSynthesized knowledge pages
StructureDaily logs + MEMORY.md + LanceDBObsidian vault (schema-defined folders)
Written byAutomatic extractionAgent directly via file tools
Searched viaLanceDB hybrid searchGlobTool + GrepTool + wikilinks
LifetimeAccumulates across conversationsPersistent; updated by agent on ingest

Operational skills

The notebook skill (under skills/notebook/) provides the agent with procedures for working with the vault:

  • ingest.md — procedure for ingesting new content into the vault
  • lint.md — procedure for auditing and cleaning vault pages