An LLM wiki in Trilium: Claude builds and maintains a linked knowledge base from your sources #12317
Marceltov
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Andrej Karpathy described an "LLM wiki": you collect sources, and an LLM turns them into a wiki of linked pages, answers questions from it and keeps it tidy. People are good at choosing what to read and bad at the upkeep a wiki needs: cross-references, updating ten pages when one new source arrives, noticing contradictions. In this pattern, that upkeep becomes the assistant's job.
Most setups build this on Obsidian and plain Markdown files. Trilium already has the pieces they build by hand, so I built mine on Trilium:
trilium-llm-wiki is a Claude Code plugin that builds and maintains an LLM wiki in your Trilium, using Trilium's built-in MCP server.
My wiki after a few weeks, as Trilium's note map: hubs in violet, concepts green, entities orange, source summaries blue.
Why Trilium fits so well
#readOnlySources subtreeHow it works
What goes in
Finding things again
A wiki is only useful if the assistant actually looks things up. That's what trilium-recall is for (see #12316): it gives Claude the relevant wiki pages before it answers, and the wiki's structure helps it rank them, with wiki pages first and sources shown as their summaries. It works on any Trilium, so it has its own post.
Try it
You need Trilium 0.106+ with the MCP server switched on (Options → AI / LLM → MCP server). Connect it with an ETAPI token or through trilium-mcp-proxy (see #12310).
Then ask Claude to "set up the LLM wiki", drop an article under Sources and say "ingest".
For everyday note work without a wiki (search, create, move, tag, journal, export) there's trilium-plugin; both plugins share one connection.
Feedback is welcome, especially from anyone who runs something similar: how do you structure yours?
All reactions