PARA Knowledge Base — Claude Code + Codex Plugin
English | 한국어

LLM as Knowledge Compiler — Karpathy's LLM Knowledge Base pattern, optimized for PARA Obsidian vaults
Inspiration
Inspired by Karpathy's llm-wiki — the idea that an LLM should act as a knowledge compiler, not a search engine. Rather than re-retrieving and re-summarizing raw notes on every query, knowledge is compiled once into structured wiki-style articles, then maintained incrementally as new information arrives.
This plugin applies that pattern to PARA-structured Obsidian vaults.
See examples/ for a fictional initialized vault snapshot, including indexes, a project hub, a change log, and optional query telemetry.
Why this plugin?
If you already have a PARA vault with hundreds of notes, Claude Code or Codex can read them — but every conversation starts from scratch. Each query re-reads files, re-discovers structure, and burns tokens figuring out what's where.
This plugin fixes that by adding a persistent knowledge layer on top of your existing vault:
The problem without a KB:
User: "What do I know about distributed systems?"
Claude: reads 30+ files → 15K tokens → synthesizes answer → forgotten next session
User: (asks again next week)
Claude: reads the same 30+ files again → 15K tokens again
With this plugin:
/kb-ingest → new notes classified, linked, indexed (once)
/kb-query "distributed systems" → reads _index.md (50 tokens) → targets 2 files (400 tokens) → done
What you get on top of your existing PARA vault
| Already have | This plugin adds |
|---|
| Folders organized by PARA | _index.md per category — Claude reads 10 lines instead of scanning 100 files |
| Notes with some tags | Tag convention detection + consistency enforcement across vault |
| Manual wikilinks | Auto-generated wikilinks on ingest — first occurrence of known terms linked automatically |
| CLAUDE.md with basic rules | Full vault schema — structure, KB operations, tag system, navigation strategies |
| Raw notes in Inbox | One-command classification + move + metadata + linking |
| Unmeasured ad-hoc searches and builds | Optional operation telemetry — route, document/link counts, tool/time/token signals for later analysis |
Token efficiency
| Operation | Without plugin | With plugin |
|---|
| "What projects am I working on?" | Scan all project folders ~3K tokens | Read _index.md ~50 tokens |
| "Find everything about topic X" | Grep entire vault ~5K tokens | Tag search via index ~200 tokens |
| Ingest a new document | Manual: move, tag, link, update index | /kb-ingest — all automated, ~500 tokens |
| Weekly health check | Not possible | /kb-lint — orphans, broken links, stale content |
| Keep notes true over time | Not possible | /kb-dream on a schedule — re-checks volatile notes against logs, fixes the mechanical, proposes the rest |
The key insight: indexes are cheap to read, and they tell Claude exactly where to look. Instead of scanning your whole vault every time, Claude reads a 10-line index, picks the right folder, and reads only what's needed.
Concept
The 3-Layer Architecture
Inbox/ ← raw capture (fleeting notes, clippings, meeting notes)
PARA/ ← compiled knowledge wiki (Projects / Areas / Resources / Archives)
CLAUDE.md ← vault schema (topics, conventions, wikilink vocabulary)
- Inbox is the staging area. Raw, unprocessed, low-friction.
- PARA is the knowledge base. LLM-compiled, structured, cross-linked.
- CLAUDE.md is the schema. Tells the LLM what topics exist, how notes are organized, what wikilinks are canonical.
Input sources
The KB wikifies any Markdown dropped into Inbox/ — that's the whole extension point. Adding a new source is just "get it to Markdown," and mature tools already cover most of that, so this plugin doesn't bundle its own converters:
- Web pages → Obsidian Web Clipper saves clean Markdown straight into the vault.
- PDFs, docs, other formats → use an existing converter or the official Obsidian Importer community plugin to land Markdown in
Inbox/. Text-layer PDFs convert cleanly; image-only/scanned PDFs need OCR first.
kb-ingest then classifies, links, and files whatever Markdown shows up — it doesn't care how the Markdown was produced.
Project Lifecycle