by Pratiyush
LLM-powered knowledge base from your Claude Code, Codex CLI, Copilot, Cursor & Gemini sessions. Karpathy's LLM Wiki pattern — implemented and shipped.
# Add to your Claude Code skills
git clone https://github.com/Pratiyush/llm-wikiLLM-powered knowledge base from your Claude Code, Codex CLI, Cursor, Gemini CLI, and Obsidian sessions. Built on Andrej Karpathy's LLM Wiki pattern.
Rebuilt on every master push from the synthetic sessions in examples/demo-sessions/. No personal data. Shows every feature of the real tool (activity heatmap, tool charts, token usage, model info cards, vs-comparisons, project topics) running against safe reference data.
No comments yet. Be the first to share your thoughts!
Every Claude Code, Codex CLI, Copilot, Cursor, and Gemini CLI session writes a full transcript to disk. You already have hundreds of them and never look at them again.
llmwiki turns that dormant history into a beautiful, searchable, interlinked knowledge base — locally, in two commands. Plus, it produces AI-consumable exports (llms.txt, llms-full.txt, JSON-LD graph, per-page .txt + .json siblings) so other AI agents can query your wiki directly.
./setup.sh # one-time install
./build.sh && ./serve.sh # build + serve at http://127.0.0.1:8765

Contributing in one line: read CONTRIBUTING.md, keep PRs focused (one concern each), use feat: / fix: / docs: / chore: / test: commit prefixes, never commit real session data (raw/ is gitignored), no new runtime deps. CI must be green to merge.
All screenshots below are from the public demo site which is built on every master push from the dummy example sessions. Your own wiki will look identical — just with your real work.



CHANGELOG.md as a first-class page

.jsonl to clean, redacted markdownsources/, entities/, concepts/, syntheses/, comparisons/, questions/ linked with [[wikilinks]]data-theme)/ search · g h/p/s nav · j/k rows · ? helpX min read)Every HTML page has sibling machine-readable files at the same URL:
<page>.html — human HTML with schema.org microdata<page>.txt — plain text version (no HTML tags)<page>.json — structured metadata + bodySite-level AI-agent entry points:
| File | What |
|---|---|
| /llms.txt | Short index per llmstxt.org spec |
| /llms-full.txt | Flattened plain-text dump (~5 MB cap) — paste into any LLM's context |
| /graph.jsonld | Schema.org JSON-LD entity/concept/source graph |
| /sitemap.xml | Standard sitemap with lastmod |
| /rss.xml | RSS 2.0 feed of newest sessions |
| /robots.txt | AI-friendly robots with llms.txt reference |
| /ai-readme.md | AI-specific navigation instructions |
| /manifest.json | Build manifest with SHA-256 hashes + perf budget |
Every page also includes an <!-- llmwiki:metadata --> HTML comment that AI agents can parse without fetching the separate .json sibling.
link-obsidian CLI — symlinks the whole project into an Obsidian vault; graph view + backlinks + full-text search just workdocs/obsidian-integration.md covers 6 recommended plugins with per-plugin configsllmwiki watch polls agent stores with debounce and runs sync on change/wiki-sync triggers /wiki-build (configurable; default on)llmwiki schedule generates OS-specific task files (launchd/systemd/Task Scheduler)llmwiki install-skills mirrors .claude/skills/ to .codex/skills/ and .agents/skills//wiki-sync processes queuemarkdown. Syntax highlighting loads from a highlight.js CDN at view time.┌─────────────────────────────────────┐
│ ~/.claude/projects/*/*.jsonl │ ← Claude Code sessions
│ ~/.codex/sessions/**/*.jsonl │ ← Codex CLI sessions
│ ~/Library/.../Cursor/workspaceS… │ ← Cursor
│ ~/Documents/Obsidian Vault/ │ ← Obsidian
│ ~/.gemini/ │ ← Gemini CLI
└──────────────┬──────────────────────┘
│
▼ python3 -m llmwiki sync
┌─────────────────────────────────────┐
│ raw/sessions/<project>/ │ ← immutable markdown (Karpathy layer 1)
│ 2026-04-08-<slug>.md │
└──────────────┬──────────────────────┘
│
▼ /wiki-ingest (your coding agent)
┌─────────────────────────────────────┐
│ wiki/sources/<slug>.md │ ← LLM-generated wiki (Karpathy layer 2)
│ wiki/entities/<Name>.md │
│ wiki/concepts/<Name>.md │
│ wiki/syntheses/<Name>.md │
│ wiki/comparisons/<Name>.md