Skip to main content

Turn any folder into a queryable knowledge graph. Inspired by Andrej Karpathy's LLM Wiki concept.

Project description

my-llm-wiki logo

my-llm-wiki

Drop any files into a folder. Get a living, queryable knowledge graph.

PyPI Tests Documentation · Issues


In April 2026, Andrej Karpathy shared a concept he called LLM Wiki — a personal knowledge system with three layers: raw files (never modified), a compiled wiki with cross-references, and a schema that tells the LLM how to maintain it. The key insight: compile once, query forever, and let the wiki grow with every session as a "persistent, compounding artifact" rather than re-deriving knowledge on every query.

my-llm-wiki implements all three layers.

pip install my-llm-wiki
cd your-project && llm-wiki .

The output wiki-out/vault/ is a drop-in Obsidian vault — open it directly, or query from CLI. Re-run anytime; SHA256 cache skips unchanged files. llm-wiki note "<insight>" writes back from your Claude Code sessions so the graph compounds over time.

Supported file types

  • Code (19 languages) — Python, TypeScript/JavaScript, Go, Rust, Java, C/C++, Ruby, C#, and more (full list). Tree-sitter AST: classes, functions, typed extends/implements, function signatures, doc comments (Javadoc / JSDoc / GoDoc / ///), call graph.
  • Markdown / text — headings, definitions, [[wikilinks]], cross-document references.
  • PDF / DOCX / PPTX / HTML / EPUB — layout-aware extraction via Docling (pip install 'my-llm-wiki[docling]'). Headings + tables preserved. Scanned PDFs auto-OCR. EPUB unpacked via stdlib zipfile and routed through Docling's HTML pipeline. Bold-as-heading fallback for documents without Word Heading styles.
  • Images (HEIC / PNG / JPG) — hub nodes from structural pass; vision OCR via Claude Code agent mode (/wiki .).

Read the docs

The full story lives at phuc-nt.github.io/my-llm-wiki:

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

my_llm_wiki-0.9.0.tar.gz (104.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

my_llm_wiki-0.9.0-py3-none-any.whl (109.8 kB view details)

Uploaded Python 3

File details

Details for the file my_llm_wiki-0.9.0.tar.gz.

File metadata

  • Download URL: my_llm_wiki-0.9.0.tar.gz
  • Upload date:
  • Size: 104.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for my_llm_wiki-0.9.0.tar.gz
Algorithm Hash digest
SHA256 0ba28ee44e7df4ddf391fde0646e51eea2bd04aa4d56032d4b2de5bba3cb6924
MD5 1073cf88dd68f118009600e703f1e1d8
BLAKE2b-256 0ae3d861fe8cd9f5e103e808cbf0222f094b9893f5f42ab8cad8c6b63238fa9d

See more details on using hashes here.

File details

Details for the file my_llm_wiki-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: my_llm_wiki-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 109.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for my_llm_wiki-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f9c0e1639e2ace393e2543e41b9a96ed0cfa72b0da32e875e61d765afe5c598
MD5 ebf75531fd97bdb9eb906742f9cb36d2
BLAKE2b-256 ee362e9f7988db0435346dcab8ac0251e70aa6ea27629cbe44f3ba76aa70566d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page