A personal knowledge base compiled and maintained by an LLM agent (Claude Code), following the pattern described in llm-wiki.md: instead of re-deriving answers from raw documents on every query (as in typical RAG), sources are read once and incrementally compiled into a persistent, interlinked Obsidian-flavored wiki that keeps getting richer over time.
- You drop source documents into
raw/and tell the agent to compile them. - The agent reads each source, extracts the key information, and writes/updates pages in
wiki/— creating entity and concept pages, cross-linking them with[[Wikilinks]], and flagging contradictions with old material instead of silently overwriting it. - You browse the result in Obsidian (open this folder as a vault), following links and checking the graph view.
The agent's operating rules — directory layout, frontmatter format, linking conventions, and the "never overwrite, always merge" policy — are defined in CLAUDE.md. llm-wiki.md is the reference idea document the agent uses as a style/depth blueprint for how wiki pages should read.
raw/ Source documents (immutable). Only unprocessed files are read.
Files prefixed [PROCESSED] have already been compiled and are skipped.
wiki/ LLM-generated, interlinked markdown pages. Never hand-edited.
index.md catalogs every page; log.md is an append-only ingest history.
CLAUDE.md Agent operating rules for this vault (read by Claude Code every session).
llm-wiki.md The general pattern this project implements — background reading, not vault config.
parse_pdf.py Helper script: extracts text from any *.pdf in raw/ to a sibling .txt file,
then renames the source pdf to [EXTRACTED]_<name>.pdf.
- Add a new source file to
raw/(PDF, text, clipped article, etc.). - If it's a PDF, optionally run
python parse_pdf.pyfirst to get a plain-text copy — easier for the agent to read in full. - Ask the agent (in Claude Code) to compile the new raw file(s) into the wiki.
- Review the new/updated pages in Obsidian; ask follow-up questions or request corrections.
- Periodically ask the agent to "lint" the wiki — check for contradictions, orphan pages, or missing cross-links.
To kick off a first ingest, point the agent at the style blueprint and the new sources:
Read
llm-wiki.mdas an example idea and writing style. Then, scan the raw files underraw/and compile them into the wiki, matching the same style and standard as that example file.
For a single new source once the wiki is already established, something shorter works just as well:
Compile the new file in
raw/into the wiki, following the conventions inCLAUDE.md.
- Obsidian (optional but recommended) to browse
wiki/as a vault with backlinks and graph view. - Claude Code to run the compiler agent.
- Python 3 +
pypdfonly if you useparse_pdf.pyfor PDF sources.
