<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Claude-Code | Alfonso Fortunato</title><link>https://alfonsofortunato.com/tags/claude-code/</link><atom:link href="https://alfonsofortunato.com/tags/claude-code/index.xml" rel="self" type="application/rss+xml"/><description>Claude-Code</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Mon, 06 Apr 2026 00:00:00 +0000</lastBuildDate><image><url>https://alfonsofortunato.com/media/logo_hu_2de8902a9a04b271.png</url><title>Claude-Code</title><link>https://alfonsofortunato.com/tags/claude-code/</link></image><item><title>My Obsidian PKM Setup: Karpathy's LLM Wiki + Claude Code + Local Search</title><link>https://alfonsofortunato.com/blog/obsidian-pkm-llm-wiki/</link><pubDate>Mon, 06 Apr 2026 00:00:00 +0000</pubDate><guid>https://alfonsofortunato.com/blog/obsidian-pkm-llm-wiki/</guid><description>&lt;p&gt;Most people use AI to answer questions. I use it to maintain a library: a personal knowledge base in Obsidian where Claude Code acts as the librarian and everything compounds over time.&lt;/p&gt;
&lt;p&gt;I have always loved Obsidian as a PKM tool. The plugin ecosystem is excellent, the vault is just files so it stays exportable, and there is a ridiculous amount of automation you can build around it. That part was never the problem. The nightmare starts later, when the vault grows and you are left cleaning up hundreds of files, fixing links, and trying to keep structure and meaning aligned over time.&lt;/p&gt;
&lt;p&gt;That is the real tension in personal knowledge management. The value is not in hoarding notes. It lives in the associations you make between concepts and in the answers you write back when something finally clicks. The mechanical part, the cleanup, the maintenance, the endless small edits, gets in the way of the learning.&lt;/p&gt;
&lt;p&gt;This workflow removes most of that burden. The RAG-like retrieval and LLM wiki maintenance handle the file work, the linking, and the ongoing structure, so the part left to me is the part I actually care about: reading, understanding, and making better connections.&lt;/p&gt;
&lt;p&gt;It started with a
: a short document describing a pattern he called the &amp;ldquo;LLM wiki.&amp;rdquo; Not a product. Not a tutorial. Just an idea. The right idea, as it turned out. I&amp;rsquo;ve been building on it ever since.&lt;/p&gt;
&lt;p&gt;I also took practical reference from the Chase AI setup guide, which helped turn the pattern into something concrete faster.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="why-this-is-a-better-rag-alternative-than-youd-expect"&gt;Why This Is a Better RAG Alternative Than You&amp;rsquo;d Expect&lt;/h2&gt;
&lt;p&gt;When most people talk about &amp;ldquo;using AI with your notes,&amp;rdquo; they mean RAG: upload your files, retrieve relevant chunks at query time, get an answer. It works. But nothing accumulates. Ask the same question twice and the AI rediscovers the same fragments from scratch. There&amp;rsquo;s no memory of what you&amp;rsquo;ve already figured out.&lt;/p&gt;
&lt;p&gt;Karpathy&amp;rsquo;s insight is simple: &lt;strong&gt;what if the LLM built a persistent wiki instead of just retrieving from raw sources?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When a new source arrives, the LLM doesn&amp;rsquo;t index it for later retrieval. It reads it, extracts the key information, and folds it into the existing wiki: updating relevant pages, flagging contradictions, and strengthening cross-references. The synthesis happens once and stays current.&lt;/p&gt;
&lt;p&gt;The wiki compounds. Every source you add makes it richer. Every question you ask can be filed back as a new article. The next question is cheaper to answer than the last one.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="my-obsidian-pkm-setup-claude-code-as-the-librarian"&gt;My Obsidian PKM Setup: Claude Code as the Librarian&lt;/h2&gt;
&lt;p&gt;The tool combination is simpler than it sounds: Obsidian as the IDE, Claude Code as the programmer, the wiki as the codebase.&lt;/p&gt;
&lt;h3 id="folder-structure"&gt;Folder Structure&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;vault/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; raw/ ← inbox — dump anything here
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; wiki/ ← LLM&amp;#39;s domain — never edit directly
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; _master-index.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; terminal/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; _index.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; terminal-emulators-2025.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; linux-power-commands.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; knowledge-management/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; _index.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; llm-wiki-karpathy.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; obsidian-rag-setup.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; output/ ← query results and generated reports
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; CLAUDE.md ← the schema
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="the-schema-claudemd"&gt;The Schema (&lt;code&gt;CLAUDE.md&lt;/code&gt;)&lt;/h3&gt;
&lt;p&gt;This is the most important file. It&amp;rsquo;s what makes Claude Code a disciplined librarian instead of a generic chatbot. Every session starts with Claude Code reading it.&lt;/p&gt;
&lt;p&gt;The rules it defines:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;wiki/&lt;/code&gt; is the LLM&amp;rsquo;s domain. It writes and maintains everything there.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;raw/&lt;/code&gt; is the inbox. &amp;ldquo;Compile&amp;rdquo; means process everything unprocessed.&lt;/li&gt;
&lt;li&gt;Every article needs a &lt;code&gt;## Key Takeaways&lt;/code&gt; section and &lt;code&gt;[[wiki links]]&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Navigation follows a hierarchy: &lt;code&gt;_master-index.md&lt;/code&gt; → topic &lt;code&gt;_index.md&lt;/code&gt; → article.&lt;/li&gt;
&lt;li&gt;Query answers worth keeping get filed back as new wiki articles.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is the actual &lt;code&gt;CLAUDE.md&lt;/code&gt; I keep in the root of my vault:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-md" data-lang="md"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gu"&gt;## Knowledge Base Rules
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; This is an LLM-maintained knowledge base. You are the librarian.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; The wiki/ folder is YOUR domain — you write and maintain everything in it.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; I rarely edit wiki files directly.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; raw/ is the inbox. When I dump files here, you process them into the wiki
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; during a &amp;#34;compile&amp;#34; step.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; wiki/_master-index.md is the entry point. It lists every topic folder with
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; a one-line description. Always keep this up to date.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Each topic gets its own subfolder in wiki/ (e.g., wiki/ai-agents/) with its
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; own _index.md that lists all articles in that topic with brief descriptions.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Always use [[wiki links]] to connect related concepts across topics.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; When compiling raw material:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;1.&lt;/span&gt; Read the raw file
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;2.&lt;/span&gt; Decide which topic it belongs to (or create a new one)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;3.&lt;/span&gt; Write a wiki article with key takeaways and relevant links
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;4.&lt;/span&gt; Update that topic&amp;#39;s _index.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;5.&lt;/span&gt; Update wiki/_master-index.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;6.&lt;/span&gt; If a raw file spans multiple topics, create articles in both and cross-link
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Keep articles concise — bullet points over paragraphs.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Include a ## Key Takeaways section in every wiki article.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; output/ is for query results and generated reports.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; When answering questions, read _master-index.md first to navigate, then
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; drill into the relevant topic _index.md, then read specific articles.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; When I ask you to &amp;#34;compile&amp;#34;, process everything in raw/ that hasn&amp;#39;t been
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; compiled yet into the wiki.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; When I ask you to &amp;#34;audit&amp;#34; or &amp;#34;lint&amp;#34;, review the wiki for inconsistencies,
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; broken links, gaps, and suggest improvements.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I also used the initial scaffolding prompt suggested in the setup guide that now lives in my vault. It is intentionally simple:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Create this folder structure for my knowledge base:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- raw/ — this is my inbox where I&amp;#39;ll dump source material
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- wiki/ — this is your domain, you&amp;#39;ll write and maintain everything here
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; - Create a _master-index.md inside wiki/ with the heading &amp;#34;Knowledge Base Index&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; and a note that says &amp;#34;Topics will be listed here as they are created.&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- output/ — this is where query results and reports go
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Just create the folders and that one file. Nothing else yet.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;That prompt is small on purpose. It does not try to overdesign the system on day one. It just creates the minimum viable structure, then &lt;code&gt;CLAUDE.md&lt;/code&gt; takes over as the real operating manual.&lt;/p&gt;
&lt;p&gt;The first real compile prompt is just as important, because this is what turns a pile of clipped files into an actual knowledge base:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Compile everything in raw/ into the wiki. For each file:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;1. Read it and identify the core topic
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;2. Create or find the right topic folder in wiki/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;3. Write a wiki article with a summary, key takeaways, and [[wiki links]]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; to any related concepts
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;4. Update the topic&amp;#39;s _index.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;5. Update wiki/_master-index.md
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Cross-link between topics wherever relevant.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And this is the audit prompt I use to keep the vault healthy over time:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Audit the wiki. Review every topic for:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- Inconsistent or contradictory information across articles
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- Missing cross-links between related concepts
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- Gaps in coverage — topics that are mentioned but don&amp;#39;t have articles yet
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- Suggest 3-5 new articles that would strengthen the knowledge base
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Don&amp;#39;t make changes yet — just give me the report.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="the-daily-workflow"&gt;The Daily Workflow&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Diagram: The daily Obsidian PKM workflow showing Clip, Compile, Query, and Audit as a continuous loop.&lt;/em&gt;&lt;/p&gt;
&lt;div class="mermaid"&gt;flowchart TD
A["🔗 Clip&lt;br/&gt;save source into raw/"] --&gt; B["⚙️ Compile&lt;br/&gt;create or update wiki articles"]
B --&gt; C["🗂 Index&lt;br/&gt;refresh topic _index.md&lt;br/&gt;and wiki/_master-index.md"]
C --&gt; D["💬 Query&lt;br/&gt;read indexes&lt;br/&gt;then specific articles"]
D --&gt; E["💾 Save&lt;br/&gt;promote strong answers&lt;br/&gt;back into wiki/output"]
E --&gt; F["🔍 Audit&lt;br/&gt;find contradictions&lt;br/&gt;gaps&lt;br/&gt;missing links"]
F --&gt; A
style A fill:#ede9fe,stroke:#6D28D9,color:#000
style B fill:#ede9fe,stroke:#6D28D9,color:#000
style C fill:#f5f3ff,stroke:#7C3AED,color:#000
style D fill:#dcfce7,stroke:#15803D,color:#000
style E fill:#eff6ff,stroke:#2563EB,color:#000
style F fill:#f8fafc,stroke:#475569,color:#000
&lt;/div&gt;
&lt;p&gt;Four verbs. That&amp;rsquo;s the whole system.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Clip:&lt;/strong&gt; I use the Obsidian Web Clipper browser extension. One click saves any article as clean markdown in &lt;code&gt;raw/&lt;/code&gt;. It strips ads and keeps the structure intact.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Compile:&lt;/strong&gt; I open Claude Code and say &amp;ldquo;compile.&amp;rdquo; It reads each unprocessed raw file, decides which topic it belongs to or whether a new topic is needed, writes a wiki article with key takeaways and cross-links, then updates the topic index and master index. A single source often touches 10 to 15 wiki pages.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Query:&lt;/strong&gt; The LLM navigates via the index hierarchy: master index → topic index → specific articles. Three or four reads usually gets it to the answer. It doesn&amp;rsquo;t need to read everything. If the synthesis is worth keeping, I say &amp;ldquo;save this as a wiki article&amp;rdquo; and it does.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Audit:&lt;/strong&gt; Periodically I ask Claude Code to audit the wiki. It looks for contradictions between articles, orphan pages with no incoming links, concepts mentioned but lacking their own article, and missing cross-references. It suggests improvements. Quality improves over time instead of just accumulating.&lt;/p&gt;
&lt;h3 id="why-it-works-without-a-vector-database"&gt;Why It Works Without a Vector Database&lt;/h3&gt;
&lt;p&gt;The index hierarchy is the key. At personal scale, up to a few hundred articles, &lt;code&gt;_master-index.md&lt;/code&gt; gives the LLM a complete map of the knowledge base in one read. It picks the right topic, reads the topic index, then reads the specific article. Three reads, any question.&lt;/p&gt;
&lt;p&gt;Humans abandon wikis because maintenance burden grows faster than value. The LLM doesn&amp;rsquo;t get bored, doesn&amp;rsquo;t forget to update a cross-reference, and can touch 15 files in one pass. Maintenance cost gets close to zero. The wiki stays current.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="adding-local-search-to-your-personal-knowledge-base-with-qmd"&gt;Adding Local Search to Your Personal Knowledge Base with &lt;code&gt;qmd&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;The index-file approach works well up to a few hundred articles. As the wiki grows, you want faster lookup, especially when you&amp;rsquo;re not sure which topic something falls under.&lt;/p&gt;
&lt;p&gt;
is a local on-device search engine for markdown files. It combines BM25 keyword search with vector semantic search and LLM re-ranking, all running locally. No cloud, no API cost for search.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Diagram: How &lt;code&gt;qmd&lt;/code&gt; fits into the personal knowledge base, with the LLM shelling out to the &lt;code&gt;qmd&lt;/code&gt; CLI for local search before reading wiki files.&lt;/em&gt;&lt;/p&gt;
&lt;div class="mermaid"&gt;sequenceDiagram
participant L as 🤖 Claude Code
participant Q as ⚡ qmd CLI
participant W as 📚 Wiki Folder
participant R as 📋 Results
L-&gt;&gt;Q: qmd search "query" via Bash
Q-&gt;&gt;W: searches markdown files
W--&gt;&gt;Q: matching documents
Q--&gt;&gt;L: ranked results + context
note over Q: BM25 keyword&lt;br/&gt;+ local search&lt;br/&gt;no API cost
note over L: reads only&lt;br/&gt;relevant articles&lt;br/&gt;not everything
&lt;/div&gt;
&lt;h3 id="setup"&gt;Setup&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Install&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bun install -g @tobilu/qmd
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Index your wiki&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;qmd collection add /path/to/vault/wiki --name wiki
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;qmd context add qmd://wiki &lt;span class="s2"&gt;&amp;#34;Personal knowledge base wiki articles&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Search&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;qmd search &lt;span class="s2"&gt;&amp;#34;terminal emulators comparison&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;qmd search &lt;span class="s2"&gt;&amp;#34;rag vs obsidian&amp;#34;&lt;/span&gt; -c wiki
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="how-it-fits-in"&gt;How It Fits In&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;CLAUDE.md&lt;/code&gt; in my vault now includes a search section that tells Claude Code to use the &lt;code&gt;qmd&lt;/code&gt; CLI instead of reading files blindly. Before deciding what to read, it runs &lt;code&gt;qmd search&lt;/code&gt; and gets a ranked list of relevant articles first. It&amp;rsquo;s faster and holds up better as the wiki grows.&lt;/p&gt;
&lt;p&gt;This is the search block I added:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-md" data-lang="md"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="gu"&gt;## Search
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; When searching the vault, always use the qmd CLI instead of reading files manually.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Keyword search: &lt;span class="sb"&gt;`qmd search &amp;#34;query&amp;#34;`&lt;/span&gt; — fast, works always
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Scoped search: &lt;span class="sb"&gt;`qmd search &amp;#34;query&amp;#34; -c wiki`&lt;/span&gt; or &lt;span class="sb"&gt;`-c raw`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Export all matches for context: &lt;span class="sb"&gt;`qmd search &amp;#34;query&amp;#34; --all --files`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;-&lt;/span&gt; Re-index after new files are added: &lt;span class="sb"&gt;`qmd collection sync wiki`&lt;/span&gt; then &lt;span class="sb"&gt;`qmd collection sync raw`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The full pipeline looks like this: clip an article, compile it into the wiki and sync the &lt;code&gt;qmd&lt;/code&gt; index, query using &lt;code&gt;qmd&lt;/code&gt; for fast retrieval, then audit periodically for quality.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="what-i-actually-use-it-for"&gt;What I Actually Use It For&lt;/h2&gt;
&lt;p&gt;A few examples from the past few weeks:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Terminal setup:&lt;/strong&gt; I clipped five articles about terminal emulators and shell configuration. I run Claude Code inside
, which has first-class support for it, so this topic comes up a lot. After compiling those sources, I asked &amp;ldquo;what&amp;rsquo;s the best terminal for WSL2?&amp;rdquo; and got a synthesized answer drawing from three different articles. That comparison got saved as its own wiki article.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AI tools:&lt;/strong&gt; I&amp;rsquo;m tracking Claude Code updates, model comparisons, and workflow patterns. The wiki has a running synthesis of what works, updated every time I clip something new.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;This setup itself:&lt;/strong&gt; the wiki has articles on Karpathy&amp;rsquo;s original pattern, the practical implementation, and the search layer. Meta, but useful.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="the-one-insight-worth-taking"&gt;The One Insight Worth Taking&lt;/h2&gt;
&lt;p&gt;The hard part of maintaining a knowledge base has never been the reading or the thinking. It&amp;rsquo;s the bookkeeping: updating cross-references, keeping summaries current, and noting when new data contradicts old claims. That&amp;rsquo;s what kills personal wikis. People build them, then stop maintaining them because the cost grows faster than the value.&lt;/p&gt;
&lt;p&gt;LLMs are good at bookkeeping. They don&amp;rsquo;t get bored. They don&amp;rsquo;t forget to update a cross-reference. They can touch 15 files in one pass and keep everything consistent.&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s the whole trick. The LLM does the maintenance. You do the thinking.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="my-exact-setup-files"&gt;My Exact Setup Files&lt;/h2&gt;
&lt;p&gt;If you want to reproduce this setup, the starter kit is just three pieces:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The scaffolding prompt:&lt;/strong&gt; creates &lt;code&gt;raw/&lt;/code&gt;, &lt;code&gt;wiki/&lt;/code&gt;, &lt;code&gt;output/&lt;/code&gt;, and the initial &lt;code&gt;wiki/_master-index.md&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt;:&lt;/strong&gt; the operating manual that tells Claude Code how to compile, query, and audit the vault&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The compile prompt:&lt;/strong&gt; the first real command that turns clipped source material into a structured wiki&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The audit prompt:&lt;/strong&gt; the maintenance pass that finds contradictions, missing links, and weak spots before the vault decays&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The flow is deliberately minimal:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Run the scaffolding prompt once.&lt;/li&gt;
&lt;li&gt;Create &lt;code&gt;CLAUDE.md&lt;/code&gt; once.&lt;/li&gt;
&lt;li&gt;Start clipping sources into &lt;code&gt;raw/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Tell Claude Code to compile.&lt;/li&gt;
&lt;li&gt;Query and audit from there.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That is one reason I like this approach so much. It feels lightweight on day one, but it still scales surprisingly well because the structure gets stronger as the vault grows.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="references"&gt;References&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Andrej Karpathy,
&lt;/li&gt;
&lt;li&gt;Chase AI,
&lt;/li&gt;
&lt;li&gt;Obsidian,
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;qmd&lt;/code&gt;,
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;Related posts:
·
·
&lt;/em&gt;&lt;/p&gt;</description></item></channel></rss>