Productivity · GitHub repo

llm-wiki

A design pattern for building LLM-maintained personal knowledge bases in markdown

Visit gist.github.com ↗

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, 4 April 2026: A shareable spec of the idea instead of code — the agent customizes and builds it for the user's specific needs.

Compare

Related

  • Notion

    Connected workspace for notes, docs, databases, and AI automation.

  • Andrej Karpathy's LLM Knowledge Base Workflow

    A workflow for using LLMs to compile and maintain personal wikis

  • Are.na

    Ad-free platform for saving, organizing, and connecting ideas into channels

  • Ars Umbris

    Local-first IDE and framework for building typed, agentic knowledge graphs

  • LLM Living Knowledge Base Pipeline

    Architecture framework for building an LLM-maintained markdown wiki that compounds knowledge

  • YapThread

    Turn Twitter bookmarks into a searchable AI knowledge base with citations

All 7 in Knowledge Management →

Updated