Productivity · GitHub repo
llm-wiki
A design pattern for building LLM-maintained personal knowledge bases in markdown
An architectural idea file by Andrej Karpathy proposing a persistent, compounding markdown wiki maintained by an LLM agent rather than transient RAG queries. Users feed raw documents into a repository while the AI organizes, cross-references, and updates topic pages viewed alongside an editor like Obsidian. Designed as a prompt spec, it is intended to be handed to a coding agent to build a customized local setup.
What it's for
- Instruct a coding agent to scaffold an automated personal knowledge base
- Synthesize research across dozens of articles into cross-referenced topic pages
- Maintain living documentation from project notes, transcripts, and reading materials
- Audit note collections for contradictions and orphaned concepts via agent lint passes
Features
- Separates architecture into immutable raw sources, agent-maintained wiki files, and an agent instruction schema
- Incremental ingest workflow that updates topic overviews, entity pages, and central catalogs automatically
- Append-only log tracking and index catalog to simplify retrieval without complex vector databases
- Compounding query responses that file deep answers and comparisons directly back into the wiki
- Automated linting passes to identify dead links, missing topics, and factual contradictions
- Integrates natively with plain markdown tools and Obsidian features like graph view and Dataview
Pricing
Free public GitHub Gist
Details
- Type
- GitHub repo
- Category
- Productivity
- Topic
- Knowledge Management
- Open source
- Yes
- Platforms
- Web, other
- For
- Developers, researchers, and knowledge workers using AI coding agents and markdown editors
- Alternative to
- NotebookLM, Mem.ai
- Tags
- pkm, obsidian, llm agents, markdown, knowledge base, rag
Why it was saved
- @karpathy: A shareable spec of the idea instead of code — the agent customizes and builds it for the user's specific needs.
Compare
Related
Connected workspace for notes, docs, databases, and AI automation.
A workflow for using LLMs to compile and maintain personal wikis
Ad-free platform for saving, organizing, and connecting ideas into channels
Local-first IDE and framework for building typed, agentic knowledge graphs
Architecture framework for building an LLM-maintained markdown wiki that compounds knowledge
Turn Twitter bookmarks into a searchable AI knowledge base with citations
Updated