Skip to content
aphisiitPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

LLM Wiki

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.

How it works

  • 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.

Graph view of the wiki in Obsidian, showing interlinked entity and concept pages

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.

Directory structure

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.

Typical workflow

  1. Add a new source file to raw/ (PDF, text, clipped article, etc.).
  2. If it's a PDF, optionally run python parse_pdf.py first to get a plain-text copy — easier for the agent to read in full.
  3. Ask the agent (in Claude Code) to compile the new raw file(s) into the wiki.
  4. Review the new/updated pages in Obsidian; ask follow-up questions or request corrections.
  5. Periodically ask the agent to "lint" the wiki — check for contradictions, orphan pages, or missing cross-links.

Example prompt

To kick off a first ingest, point the agent at the style blueprint and the new sources:

Read llm-wiki.md as an example idea and writing style. Then, scan the raw files under raw/ 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 in CLAUDE.md.

Requirements

  • Obsidian (optional but recommended) to browse wiki/ as a vault with backlinks and graph view.
  • Claude Code to run the compiler agent.
  • Python 3 + pypdf only if you use parse_pdf.py for PDF sources.

Reference

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages