Skip to content

Instantly share code, notes, and snippets.

@karpathy
Created April 4, 2026 16:25
Show Gist options
  • Select an option

  • Save karpathy/442a6bf555914893e9891c11519de94f to your computer and use it in GitHub Desktop.

Select an option

Save karpathy/442a6bf555914893e9891c11519de94f to your computer and use it in GitHub Desktop.
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

The idea here is different. Instead of just retrieving from raw documents at query time, the LLM incrementally builds and maintains a persistent wiki — a structured, interlinked collection of markdown files that sits between you and the raw sources. When you add a new source, the LLM doesn't just index it for later retrieval. It reads it, extracts the key information, and integrates it into the existing wiki — updating entity pages, revising topic summaries, noting where new data contradicts old claims, strengthening or challenging the evolving synthesis. The knowledge is compiled once and then kept current, not re-derived on every query.

This is the key difference: the wiki is a persistent, compounding artifact. The cross-references are already there. The contradictions have already been flagged. The synthesis already reflects everything you've read. The wiki keeps getting richer with every source you add and every question you ask.

You never (or rarely) write the wiki yourself — the LLM writes and maintains all of it. You're in charge of sourcing, exploration, and asking the right questions. The LLM does all the grunt work — the summarizing, cross-referencing, filing, and bookkeeping that makes a knowledge base actually useful over time. In practice, I have the LLM agent open on one side and Obsidian open on the other. The LLM makes edits based on our conversation, and I browse the results in real time — following links, checking the graph view, reading the updated pages. Obsidian is the IDE; the LLM is the programmer; the wiki is the codebase.

This can apply to a lot of different contexts. A few examples:

  • Personal: tracking your own goals, health, psychology, self-improvement — filing journal entries, articles, podcast notes, and building up a structured picture of yourself over time.
  • Research: going deep on a topic over weeks or months — reading papers, articles, reports, and incrementally building a comprehensive wiki with an evolving thesis.
  • Reading a book: filing each chapter as you go, building out pages for characters, themes, plot threads, and how they connect. By the end you have a rich companion wiki. Think of fan wikis like Tolkien Gateway — thousands of interlinked pages covering characters, places, events, languages, built by a community of volunteers over years. You could build something like that personally as you read, with the LLM doing all the cross-referencing and maintenance.
  • Business/team: an internal wiki maintained by LLMs, fed by Slack threads, meeting transcripts, project documents, customer calls. Possibly with humans in the loop reviewing updates. The wiki stays current because the LLM does the maintenance that no one on the team wants to do.
  • Competitive analysis, due diligence, trip planning, course notes, hobby deep-dives — anything where you're accumulating knowledge over time and want it organized rather than scattered.

Architecture

There are three layers:

Raw sources — your curated collection of source documents. Articles, papers, images, data files. These are immutable — the LLM reads from them but never modifies them. This is your source of truth.

The wiki — a directory of LLM-generated markdown files. Summaries, entity pages, concept pages, comparisons, an overview, a synthesis. The LLM owns this layer entirely. It creates pages, updates them when new sources arrive, maintains cross-references, and keeps everything consistent. You read it; the LLM writes it.

The schema — a document (e.g. CLAUDE.md for Claude Code or AGENTS.md for Codex) that tells the LLM how the wiki is structured, what the conventions are, and what workflows to follow when ingesting sources, answering questions, or maintaining the wiki. This is the key configuration file — it's what makes the LLM a disciplined wiki maintainer rather than a generic chatbot. You and the LLM co-evolve this over time as you figure out what works for your domain.

Operations

Ingest. You drop a new source into the raw collection and tell the LLM to process it. An example flow: the LLM reads the source, discusses key takeaways with you, writes a summary page in the wiki, updates the index, updates relevant entity and concept pages across the wiki, and appends an entry to the log. A single source might touch 10-15 wiki pages. Personally I prefer to ingest sources one at a time and stay involved — I read the summaries, check the updates, and guide the LLM on what to emphasize. But you could also batch-ingest many sources at once with less supervision. It's up to you to develop the workflow that fits your style and document it in the schema for future sessions.

Query. You ask questions against the wiki. The LLM searches for relevant pages, reads them, and synthesizes an answer with citations. Answers can take different forms depending on the question — a markdown page, a comparison table, a slide deck (Marp), a chart (matplotlib), a canvas. The important insight: good answers can be filed back into the wiki as new pages. A comparison you asked for, an analysis, a connection you discovered — these are valuable and shouldn't disappear into chat history. This way your explorations compound in the knowledge base just like ingested sources do.

Lint. Periodically, ask the LLM to health-check the wiki. Look for: contradictions between pages, stale claims that newer sources have superseded, orphan pages with no inbound links, important concepts mentioned but lacking their own page, missing cross-references, data gaps that could be filled with a web search. The LLM is good at suggesting new questions to investigate and new sources to look for. This keeps the wiki healthy as it grows.

Indexing and logging

Two special files help the LLM (and you) navigate the wiki as it grows. They serve different purposes:

index.md is content-oriented. It's a catalog of everything in the wiki — each page listed with a link, a one-line summary, and optionally metadata like date or source count. Organized by category (entities, concepts, sources, etc.). The LLM updates it on every ingest. When answering a query, the LLM reads the index first to find relevant pages, then drills into them. This works surprisingly well at moderate scale (~100 sources, ~hundreds of pages) and avoids the need for embedding-based RAG infrastructure.

log.md is chronological. It's an append-only record of what happened and when — ingests, queries, lint passes. A useful tip: if each entry starts with a consistent prefix (e.g. ## [2026-04-02] ingest | Article Title), the log becomes parseable with simple unix tools — grep "^## \[" log.md | tail -5 gives you the last 5 entries. The log gives you a timeline of the wiki's evolution and helps the LLM understand what's been done recently.

Optional: CLI tools

At some point you may want to build small tools that help the LLM operate on the wiki more efficiently. A search engine over the wiki pages is the most obvious one — at small scale the index file is enough, but as the wiki grows you want proper search. qmd is a good option: it's a local search engine for markdown files with hybrid BM25/vector search and LLM re-ranking, all on-device. It has both a CLI (so the LLM can shell out to it) and an MCP server (so the LLM can use it as a native tool). You could also build something simpler yourself — the LLM can help you vibe-code a naive search script as the need arises.

Tips and tricks

  • Obsidian Web Clipper is a browser extension that converts web articles to markdown. Very useful for quickly getting sources into your raw collection.
  • Download images locally. In Obsidian Settings → Files and links, set "Attachment folder path" to a fixed directory (e.g. raw/assets/). Then in Settings → Hotkeys, search for "Download" to find "Download attachments for current file" and bind it to a hotkey (e.g. Ctrl+Shift+D). After clipping an article, hit the hotkey and all images get downloaded to local disk. This is optional but useful — it lets the LLM view and reference images directly instead of relying on URLs that may break. Note that LLMs can't natively read markdown with inline images in one pass — the workaround is to have the LLM read the text first, then view some or all of the referenced images separately to gain additional context. It's a bit clunky but works well enough.
  • Obsidian's graph view is the best way to see the shape of your wiki — what's connected to what, which pages are hubs, which are orphans.
  • Marp is a markdown-based slide deck format. Obsidian has a plugin for it. Useful for generating presentations directly from wiki content.
  • Dataview is an Obsidian plugin that runs queries over page frontmatter. If your LLM adds YAML frontmatter to wiki pages (tags, dates, source counts), Dataview can generate dynamic tables and lists.
  • The wiki is just a git repo of markdown files. You get version history, branching, and collaboration for free.

Why this works

The tedious part of maintaining a knowledge base is not the reading or the thinking — it's the bookkeeping. Updating cross-references, keeping summaries current, noting when new data contradicts old claims, maintaining consistency across dozens of pages. Humans abandon wikis because the maintenance burden grows faster than the value. LLMs don't get bored, don't forget to update a cross-reference, and can touch 15 files in one pass. The wiki stays maintained because the cost of maintenance is near zero.

The human's job is to curate sources, direct the analysis, ask good questions, and think about what it all means. The LLM's job is everything else.

The idea is related in spirit to Vannevar Bush's Memex (1945) — a personal, curated knowledge store with associative trails between documents. Bush's vision was closer to this than to what the web became: private, actively curated, with the connections between documents as valuable as the documents themselves. The part he couldn't solve was who does the maintenance. The LLM handles that.

Note

This document is intentionally abstract. It describes the idea, not a specific implementation. The exact directory structure, the schema conventions, the page formats, the tooling — all of that will depend on your domain, your preferences, and your LLM of choice. Everything mentioned above is optional and modular — pick what's useful, ignore what isn't. For example: your sources might be text-only, so you don't need image handling at all. Your wiki might be small enough that the index file is all you need, no search engine required. You might not care about slide decks and just want markdown pages. You might want a completely different set of output formats. The right way to use this is to share it with your LLM agent and work together to instantiate a version that fits your needs. The document's only job is to communicate the pattern. Your LLM can figure out the rest.

@GeraldGrootRoessink

Copy link
Copy Markdown

I agree with the motivation (using an LLM to maintain a persistent, compounding artifact as a “knowledge view”), but I’m skeptical of proposals that treat Markdown front-matter as the semantic backbone. We need something machine-executable: a precise way to define semantics, data selection, joins/mappings, and provenance for the resulting view. Human-oriented formatting from Markdown isn’t essential for that; an LLM can generate presentation at the end.

Much of the relevant infrastructure already exists in the Semantic Web: HTTP, URIs, RDF, and SPARQL, plus established linked data vocabularies. So the gap is less about inventing a new container and more about producing view ready outputs in a repeatable, automated way.

My conclusion: the key missing piece is not a new metadata container format, but a reliable, machine executable way to build and maintain an LLM ready “knowledge view” from multiple sources.

@suwonleee

Copy link
Copy Markdown

Follow-up to my earlier comment here (the project wiki that quizzes you back) — since then the interesting problems have all been trust boundaries, the kind that only show up once the thing runs on machines that aren't yours:

A clone is not consent. Early versions treated git clone + setup as permission to start capturing sessions. It isn't. Everything is now inert until you enroll a repository explicitly, and until a session is known to belong to an enrolled repo, the capture layer reads exactly two routing fields from a transcript and stops — fail closed, by budget.

The installing agent is your least-trusted user. On a nonstandard machine, the agent doing the install is also the thing searching your disk for where Claude Code / Codex / OpenCode keep their data. So discovery became three-tier: deterministic resolution → schema-signature verification (a candidate is judged by what's inside — transcripts, rollouts, a session table — never by its name; the E2E that motivated this watched a plain home directory pass as a Claude profile because it contained a folder called projects/) → and only then persistence, which the engine refuses unless verification passed. And a connected location stays read-only forever: capture reads from it, install wiring never writes into it.

Models are observed, not declared. The engine shipped with a hardcoded model id for its generative passes; it had gone stale by the time the replacement landed — the argument making itself. Now a pass runs on whatever model the session actually recorded (every harness already writes this), with per-harness fallbacks only when nothing was observed. The follow-up lesson cost a day: the first id-validation regex rejected llama3.1:8b, and an over-strict guard fails exactly like a stale constant — silently.

Still markdown as the source of truth, local-first, no MCP, no build step, three harnesses.

https://github.com/suwonleee/llmwiki — if any of this is useful to you, a star genuinely helps others in this thread find it among the many llmwikis.

@antondzi-legacy

Copy link
Copy Markdown

One failure mode this pattern has that plain RAG doesn't — and a measurement of it.

A compiled wiki answers more confidently than raw retrieval. That's the point of it. But confidence gets decoupled from whether the answer is actually in there, and in an incrementally compiled wiki that compounds: a confident fabrication gets filed back as a page, and then it is a source.

I measured this on my own vault (~4 months of ingested sources, e5 embeddings + a reranker on top). 6 questions — 3 with answers in the wiki, 3 deliberately outside it — looking at the top rerank score of each result set:

question in the wiki? top rerank score
our rule on treating a cause as a claim yes +8.66
how we sync machines yes +5.87
our memory-layer decision yes +1.57
my pizza recipe no −1.03
bus fare in Kuala Lumpur no −3.82
max depth of the bathyscaphe Trieste no −4.53

Clean separation — worst "in" beats best "out" by 2.6, no overlap, natural cutoff at 0.

The part that actually mattered: all six queries returned exactly 12 hits. The bathyscaphe question got 12 confident notes out of a personal vault that has never heard of bathyscaphes. Nothing anywhere in the output said "I found nothing." There was no threshold in the code at all — the reranker computed the score and then it was thrown away.

Honest limits: n=6, I picked the questions, and the "out" ones are far from my domains. This shows the signal exists; it does not show where the threshold belongs. The dangerous case — a question from a domain adjacent to the wiki — is untested. Running it in shadow for a week, logging the top score of every real query without cutting anything, before wiring an actual cutoff.

Concrete suggestion for the schema layer (CLAUDE.md / AGENTS.md), since that's where this belongs rather than in code: a rule that the agent must say "the wiki has no confident answer on this" instead of synthesizing from low-relevance hits — and that such an answer is never filed back.

Retrieval layer this came out of, if useful: https://github.com/Palo-Alto-AI-Research-Lab/sqlite-graph-memory — Graph RAG on SQLite over an Obsidian vault, [[wikilinks]] as the graph. The citation-checking half is separate: https://github.com/Palo-Alto-AI-Research-Lab/verbatim-citation-gate

@Nikalo71

Copy link
Copy Markdown

Voici un Gist très très utile, merci beaucoup pour votre travail et votre partage.

@JanYork

JanYork commented Jul 31, 2026

Copy link
Copy Markdown

I've implemented a small version, and I think it's pretty good.

If you're interested, you can check it out at https://github.com/JanYork/llm-wiki-cli

@Nikalo71

Copy link
Copy Markdown

Thanks again for this work. It's perfect and I'm sure it will help many people. I created the Claude.MD file so it's in French and everything seems to be working very well.

One technical question, though: I'm using Claude in VS Code.
My question (being a complete beginner with this kind of tool) is whether it's necessary or optional to create a Wordspace for this project?

@Nikalo71

Copy link
Copy Markdown

I've implemented a small version, and I think it's pretty good.

If you're interested, you can check it out at https://github.com/JanYork/llm-wiki-cli

Thank you fore sharring !

@alexadamus77-ui

Copy link
Copy Markdown

Really clean approach to unified academic search and deduplication across sources! Managing source degradation and fallback queries across multiple endpoints takes a lot of effort.

If you're looking for a fast, reliable academic search backend to simplify paper lookup, citation graphs, and metadata retrieval, ScholarAPI is worth a look. It provides structured JSON responses directly, making paper search workflows much more deterministic.

@gowtham0992

Copy link
Copy Markdown

Link 2.1.0 is out. This one is about trust: memory that cannot repeat itself and knows when to re-ask.

Since 2.0 I dogfooded the automatic capture pipeline hard and my own review inbox grew to 20 pending captures, five of them the same conversation captured five times. 2.1 is everything that fixing that properly turned into.

What's new:

  • Inbox zero. Proposals are fingerprinted and deduped against everything pending, accepted, or dismissed. Deleting a capture records the dismissal, so the same proposal never comes back. One conversation = one capture, refreshed in place. "lnk dedup-captures" collapses an existing backlog (mine went 20 to 9 in one command).
  • Trust lifecycle. Every memory now gets a review window by type: project context 3 months, preferences 6, decisions 12. Reviewing re-arms it. Aged memories are never hidden, they get labeled "review due" everywhere agents read, including the session brief. As far as I know no other memory system re-asks whether what it knows is still true.
  • Contradiction detection got serious. Revisions like "we don't use X anymore" now supersede the old memory: exposure went from 0.583 to 0.167 on the hygiene benchmark, and with the local semantic tier on, even rephrasings with zero shared words get caught ("SQLite with FTS" revised as "DuckDB files").
  • Memory poisoning benchmark. A planted memory gets injected into every future session, which makes agent memory the biggest prompt injection target there is. 15 authored attacks now run through the real pipeline in CI: 0 reach the inbox unlabeled, 0 false positives on real preferences. Injection-shaped proposals get flagged in the inbox: "verify you actually said this before accepting". I believe this is the only published adversarial benchmark on an agent memory write path.
linkbar-11-inbox-injection
  • lnk setup. Install is now two commands total. "lnk setup" detects every agent on your machine (Claude Code, Codex, Cursor, Windsurf, Zed, Kiro, Gemini CLI) and wires them all: workspace, MCP, session hooks. It ran on my own machine during the release and wired 5 agents first try. Upgrades are the same command.
  • LinkBar 1.1. Tap any memory for its trust card (where it came from, when it was reviewed, whether recall will use it and why). Injection warnings show right on the capture row. Full backlog is reviewable with a cleanup button.
linkbar-11-explain-card
  • The homepage now embeds a real exported Link workspace you can click through, generated by "lnk snapshot".
# macOS, the full experience (CLI + menu bar app)
brew install --cask gowtham0992/link/linkbar
lnk setup

# CLI only (or Linux)
brew install gowtham0992/link/link
lnk setup

# already running Link
brew upgrade && lnk setup

Still: wiki as the storage layer, every memory a file you can open, nothing durable without review.

Release notes: https://github.com/gowtham0992/link/releases/tag/v2.1.0

Repo: https://github.com/gowtham0992/link
Site: https://gowtham0992.github.io/link/
PyPI: https://pypi.org/project/link-mcp/
MCP: https://registry.modelcontextprotocol.io/?q=io.github.gowtham0992%2Flink
Benchmarks with full configs and the experiments that lost: https://github.com/gowtham0992/link/blob/main/benchmarks/RESULTS.md

@mas213

mas213 commented Aug 3, 2026

Copy link
Copy Markdown

Update since my last comment. https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f?permalink_comment_id=6237886#gistcomment-6237886
Ran the behavioral graph against a frontier model (Claude Fable 5) on the same repo, same commit. Wanted to know: does a deterministic graph find the same things a reasoning model finds?
Overlap: near zero.
The model read ~75 files it picked itself and found defect mechanisms. Races, silent fallbacks, missing retries. The graph mapped all 4,849 behaviors exhaustively and ranked them by structural exposure. Completely different output lists. Each instrument's blind spot was the other's finding.
Two agreements mattered. Both flagged the same message-queue layer (184 importers, one spec file) as high-risk untested surface. Both deprioritized the same view/page-layout family. Convergent deprioritization from decorrelated instruments is harder to fake than convergent alarm.
One disagreement was productive. The model's top finding sat in the graph's data but outside its top 20. Tracing why isolated two scoring factors documented in the methodology but not yet weighted in the shipped formula. The disagreement functioned as instrument calibration. Fixed same day, in public.
Also closed the proof ladder end-to-end on a second repo (Go, ~8,700 behaviors). Three mutation proofs. One was self-incriminating: the graph's own test generator hallucinated an expected value. The execution layer caught it. Oracle corrected from source. Mutation proof then closed the method. A verification layer that catches its own generator is the strongest evidence for the decorrelation argument.
The Lint operation from the original gist now has four evidence tiers instead of binary tested/untested: dynamically proven (mutation killed), test signal (static link, no proof), candidate (name match only), no signal. The graph refuses to overstate. Nothing reaches "covered" without execution.

@jessicayoung12 , curious what domain you applied it to. The compounding effect you describe is exactly what we see. The graph after 50 PRs is a fundamentally different instrument than the graph after 5. Every incident filed teaches it a failure mode it didn't have before.

Full comparison write-up: https://orangepro.ai/blog/fable-vs-orangepro
Repo unchanged: https://github.com/OrangeproAI/orangepro-mcp

@BackendGameSetMatch

Copy link
Copy Markdown

@ZeroDot1

ZeroDot1 commented Aug 4, 2026

Copy link
Copy Markdown

LLMWikiNG – Your Private, AI-Powered Knowledge Base

LLMWikiNG is a complete, self-hosted knowledge management platform that transforms how you and your AI agents store, organize, and retrieve information—fully local, privacy-first, and built to scale.


🚀 What Makes LLMWikiNG Different?

Instead of relying on ad‑hoc RAG (Retrieval-Augmented Generation) that re‑reads and regenerates knowledge from scratch on every query, LLMWikiNG compiles your information once into a structured, cross‑linked Markdown wiki. When new sources arrive, the system updates existing pages, adds cross‑references, and documents contradictions—your knowledge grows and refines continuously.


✨ Core Features

🧠 The Karpathy LLM Wiki Pattern – Reimagined

Built on Andrej Karpathy's vision of a persistent, LLM‑maintained wiki, LLMWikiNG gives you a three‑layer architecture:

  • Raw sources (raw/) – Immutable originals (articles, PDFs, notes)
  • The Wiki (wiki/) – Interlinked Markdown files with a central index and activity log
  • CLI & configuration – Full control via wiki.sh and agent configs

⚡ Matrix Search – FTS5 at Scale

The Matrix project delivers a sharded FTS5 full‑text search engine that lives entirely on your NAS—surviving container rebuilds and scaling to billions of documents. Lightning‑fast, token‑saving, and JSON‑ready for your agents.

🌐 Full‑Featured Web Interface

A modern, performant FastAPI web UI with Tokyo‑Night/Newsroom design:

  • Universal Editor – WYSIWYG + Markdown with YAML frontmatter
  • Interactive Knowledge Graph – Custom Canvas engine with lazy loading, Barnes‑Hut physics, and viewport culling for 1,000+ pages
  • Tag Cloud & Wikipedia‑Style Tags – Clickable tags, tag: and # syntax with autocomplete
  • Weekly Reports & Email Briefings – Aggregate changes and send summaries via SMTP
  • Self‑Update – One‑click updates with automatic backup

🤖 MCP & Agent‑First Design

LLMWikiNG is built for the AI era. It exposes 47 MCP tools via SSE and Streamable HTTP, making it the perfect knowledge backend for Claude, Cursor, AGY, OpenCode, and any MCP‑compatible agent.

🔒 Security & Multi‑User

  • Argon2 password hashing and signed sessions
  • API keys with optional password‑protected requests
  • Per‑user MCP keys with granular tool permissions
  • Audit logging with JSON/CSV export

📦 Complete CLI Toolset

./wiki.sh init          # Initialize a new wiki with Matrix index
./wiki.sh ingest        # Add sources → AI extracts entities → creates/updates pages
./wiki.sh search        # Matrix FTS5 full‑text search
./wiki.sh lint          # Health check – orphaned pages, missing links
./wiki.sh export --pdf  # Export pages as PDF
./wiki.sh watcher       # Background auto‑sync on file changes

…and many more.

🐳 Docker‑Ready & NAS‑Persistent

Designed for containerized deployment with your data on a NAS—the Matrix sharded index survives container rebuilds, so your search index is never lost.


🎯 Who Is LLMWikiNG For?

  • Researchers & writers – Build a persistent, cross‑referenced knowledge base
  • Developers – Give your AI agents a shared, versioned memory
  • Teams – Multi‑user wikis with fine‑grained access control
  • Privacy advocates – 100% local, no cloud, no data leakage

🌟 Why LLMWikiNG?

Feature LLMWikiNG
Local & privacy‑first
Open Source (MIT)
No external dependencies
MCP‑native
Multi‑wiki support
NAS‑persistent search index
Interactive knowledge graph
WYSIWYG + Markdown editor
API‑first design
Docker‑ready

📦 Get Started

git clone https://github.com/ZeroDot1/LLMWikiNG
cd LLMWikiNG
./wiki.sh init
./start.sh

Then open http://localhost:8081 and start building your second brain.


"LLMWikiNG isn't just a wiki—it's the knowledge operating system for the AI age. Your data stays yours. Your agents stay informed. Your knowledge grows forever."


🔗 GitHub: ZeroDot1/LLMWikiNG
📖 Documentation: In‑repo README and inline help
💬 Support: Open an issue or reach out on GitHub


Built with time, and passion by @ZeroDot1.

@maiamethodai-glitch

maiamethodai-glitch commented Aug 4, 2026 via email

Copy link
Copy Markdown

@akash07k

akash07k commented Aug 4, 2026

Copy link
Copy Markdown

Wow! I checked it out.
Seriously awesome.
Will start using it from today itself.

My take on it: https://github.com/BackendGameSetMatch/sourcebook

@podviaznikov

Copy link
Copy Markdown

I've made native(macOS and iOS) WYSIWYG markdown(and more) editor with many ideas baked in.
And it can open Obsidian vaults.

It's called Wander and is available on the appstore.

Tons of people love it as per reddit post.

@bluntbrain

Copy link
Copy Markdown

I built this as a hosted MCP server, so ingest and query happen inside Claude or Cursor instead of in a separate app.

End of a chat: "save this to my wiki." It files what you worked out into linked pages about your people, projects and themes, each carrying a receipt back to the day you said it. Start of the next: "check my wiki about X" — so you are not explaining yourself from scratch every time.

It is at talkamore.com if it is useful.

@YokohamaAIart

Copy link
Copy Markdown

You are now my LLM Wiki agent. Implement this exact idea file as my complete second brain. Guide me step-by-step: create the CLAUDE.md schema file with full rules, set up index.md and log.md, define folder conventions, and show me the first ingest example.

From now on, every interaction follows the schema.

@menottim

menottim commented Aug 5, 2026

Copy link
Copy Markdown

Amazingly I had set up something like this around the same time you wrote this idea down. Guess it is super resonant with many folks! https://github.com/menottim/obsidian-worklog

@vijay-athithyaa-GV

Copy link
Copy Markdown

I built llm-wiki-init — a Claude Code plugin to scaffold this pattern

Packaged the raw/wiki/CLAUDE.md structure from this gist as an installable
Claude Code plugin. Fully generic — no assumptions about domain.

/plugin marketplace add vijay-athithyaa-GV/llm-wiki-init
/plugin install llm-wiki-init@llm-wiki-init
/wiki-init my-wiki "any topic"

Also ships /wiki-status — read-only health check (page counts, recent log
entries, orphan pages). Refuses to overwrite an existing wiki if you re-run
/wiki-init on the same folder.

https://github.com/vijay-athithyaa-GV/llm-wiki-init

@drjoeshepherd

Copy link
Copy Markdown

Take a look at SIGN (https://github.com/sign-protocol/sign-lang). I built and open sourced this spec to help agents reason over knowledge. I basically encode your wiki idea in SIGN to improve reasoning quality and token costs.

@TABARC-Code

TABARC-Code commented Aug 7, 2026

Copy link
Copy Markdown

I am finding adding smaller nuanced skills that adds llm context help. I've been using Dewey decimal code as a way to tag files and it tends to be a useful thing. [Dewey code skill] (https://github.com/TABARC-Code/Deweygraph-file-organizer) And in my repo somewhere the odf file structure skill

@gowtham0992

Copy link
Copy Markdown

Link 2.2 is out

Link is local memory for AI agents: plain Markdown files, review-gated writes, no LLM in the memory layer, one store shared by Claude Code, Codex, Cursor, Kiro, Windsurf, Zed, VS Code, Copilot, and Gemini.

What's new:

  • Sync, no server. "lnk sync" moves reviewed memory between machines through a git remote you control. Secrets are scanned before push, conflicts become review items instead of git conflict markers, private captures never leave the machine. "lnk team-sync" runs a shared team brain on the same rails.

  • Temporal recall. "where does local data live" returns today's answer. "where does local data live in March" returns what was true then, rebuilt from dated files and supersede lineage. No model in the path. 0.917 point-in-time accuracy from plain phrasing, same as an ISO date.

  • Retrieval observability. Link records locally when agents read memory back, and which memories. "lnk wins" reports counts, "lnk digest" names memories never retrieved once. Never your query, never synced, "LINK_USAGE=off" disables it.

linkbar-12-inbox
  • Memory reaches every agent. Only 3 of 9 supported agents have session hooks, so the first MCP tool response of a session now carries the memory brief for the rest.

  • lnk import. Bring existing memory home from CLAUDE.md, Claude Code auto-memory, Cursor rules, AGENTS.md, or a ChatGPT export. Everything lands as reviewable proposals. Nothing is auto-accepted.

linkbar-12-status
  • Two new CI-enforced benchmarks. Token economics: 1,951 to 4,835 tokens per recall by budget; a 64x larger store grows the packet 1.58x. The first MCP response of a session also carries the brief, which the benchmark now measures separately. Poisoning: 18 injection attacks including 3 MemGhost-class, 0 reach the inbox unlabeled, 0 false positives.

  • Also: "lnk digest" weekly reflection, merge suggestions for duplicate memories, "lnk setup" repairs stale agent instruction files, LinkBar 1.2 shows memory usage and sync state.

# macOS, CLI + menu bar app
brew install --cask gowtham0992/link/linkbar
lnk setup

# CLI only (or Linux)
brew install gowtham0992/link/link
lnk setup

# already running Link
brew upgrade && lnk setup

# bring your existing memory
lnk import claude-code    # or: cursor, codex, file --file chatgpt.txt

Still: every memory a plain file you can open, nothing durable without review, no LLM in the memory layer, CI blocks network code in the runtime.

Release notes: https://github.com/gowtham0992/link/releases/tag/v2.2.1

Repo: https://github.com/gowtham0992/link
Site: https://gowtham0992.github.io/link/
PyPI: https://pypi.org/project/link-mcp/
MCP: https://registry.modelcontextprotocol.io/?q=io.github.gowtham0992%2Flink
Benchmarks: https://github.com/gowtham0992/link/blob/main/benchmarks/RESULTS.md

@akash07k

akash07k commented Aug 7, 2026

Copy link
Copy Markdown

How is it compared to IWE?

Link 2.2 is out

Link is local memory for AI agents: plain Markdown files, review-gated writes, no LLM in the memory layer, one store shared by Claude Code, Codex, Cursor, Kiro, Windsurf, Zed, VS Code, Copilot, and Gemini.

What's new:

* Sync, no server. "lnk sync" moves reviewed memory between machines through a git remote you control. Secrets are scanned before push, conflicts become review items instead of git conflict markers, private captures never leave the machine. "lnk team-sync" runs a shared team brain on the same rails.

* Temporal recall. "where does local data live" returns today's answer. "where does local data live in March" returns what was true then, rebuilt from dated files and supersede lineage. No model in the path. 0.917 point-in-time accuracy from plain phrasing, same as an ISO date.

* Retrieval observability. Link records locally when agents read memory back, and which memories. "lnk wins" reports counts, "lnk digest" names memories never retrieved once. Never your query, never synced, "LINK_USAGE=off" disables it.
linkbar-12-inbox
* Memory reaches every agent. Only 3 of 9 supported agents have session hooks, so the first MCP tool response of a session now carries the memory brief for the rest.

* lnk import. Bring existing memory home from CLAUDE.md, Claude Code auto-memory, Cursor rules, AGENTS.md, or a ChatGPT export. Everything lands as reviewable proposals. Nothing is auto-accepted.
linkbar-12-status
* Two new CI-enforced benchmarks. Token economics: 1,951 to 4,835 tokens per recall by budget; a 64x larger store grows the packet 1.58x. The first MCP response of a session also carries the brief, which the benchmark now measures separately. Poisoning: 18 injection attacks including 3 MemGhost-class, 0 reach the inbox unlabeled, 0 false positives.

* Also: "lnk digest" weekly reflection, merge suggestions for duplicate memories, "lnk setup" repairs stale agent instruction files, LinkBar 1.2 shows memory usage and sync state.
# macOS, CLI + menu bar app
brew install --cask gowtham0992/link/linkbar
lnk setup

# CLI only (or Linux)
brew install gowtham0992/link/link
lnk setup

# already running Link
brew upgrade && lnk setup

# bring your existing memory
lnk import claude-code    # or: cursor, codex, file --file chatgpt.txt

Still: every memory a plain file you can open, nothing durable without review, no LLM in the memory layer, CI blocks network code in the runtime.

Release notes: https://github.com/gowtham0992/link/releases/tag/v2.2.1

Repo: https://github.com/gowtham0992/link Site: https://gowtham0992.github.io/link/ PyPI: https://pypi.org/project/link-mcp/ MCP: https://registry.modelcontextprotocol.io/?q=io.github.gowtham0992%2Flink Benchmarks: https://github.com/gowtham0992/link/blob/main/benchmarks/RESULTS.md

@AnthonyL502

Copy link
Copy Markdown

I’ve been thinking about this for a while. I’ve also created a small system to help me prepare for interviews, and so far, it’s been pretty effective at helping me draw on the knowledge from my past documents. I haven’t gotten to the retrieval system yet, but thank you for your ideas and the discussion in the comments section!

@sturlese

sturlese commented Aug 7, 2026

Copy link
Copy Markdown

I've tried to take this a step further and build it for a team. Once several people write into it, a bad page becomes what the company believes, so you need a human in the loop before certain things land, and some notion of who reads what.

Captures come in from Slack or a meeting transcript, an agent drafts the page, and plain code reviews the git diff before it commits: secrets, PII, whether the entity it claims to be about exists. If it can't place something it asks the submitter one question instead of guessing, and new entities need a steward's approval. Visibility is path rules stamping audience labels at write time, enforced in one place on read.

Entity search is where embeddings alone fell short. Every page declares which entities it is about, code stamps that field rather than the model, and a question resolves against a registry of names and aliases first.

Git is the store, Postgres + pgvector the index, lexical and vector fused with RRF, one MCP server that cites or refuses:
https://github.com/sturlese/stigmergy

Like any approach it has good and bad sides, and plenty of these choices could have gone the other way. Any feedback or discussion is very welcome.

@1wgrumph

1wgrumph commented Aug 7, 2026

Copy link
Copy Markdown

I built BRAN for the Schema layer of this, using OKF.

A bit of YAML frontmatter turns ordinary markdown into a queryable knowledge graph, so there's no RAG pipeline to build: no embeddings, no vector store, no index going stale on merge.

BRAN is a Rust CLI that keeps a repository's knowledge maintainable and queryable, then hands your model a small, bounded context packet. Same input, same ranking, every time. It runs standalone with no model and no account, or connected to one for answers with citations. I've also hooked my agent harnesses, so a model reaching for an unranked rg or grep gets pushed to BRAN and comes back with a ranked result instead.

A query against one of my repos, "where is risk sizing enforced", narrowed 45.9 MB of candidate source to 40 KB with the right file at rank 1.

The savings compound in long agentic loops, and agents map a codebase and find bugs faster with fewer hallucinations, because the context window goes to the right files instead of bloat. It works just as well on code you didn't write, which matters when you're porting something or learning how an unfamiliar repo fits together.

@frankchu91

Copy link
Copy Markdown

MindBase v2 — this pattern now runs as a full app, on a free local model

Follow-up to my July comment. Big increment since then: back then you
needed an AI editor and an API key to run the pattern. Now you need neither.

Write in a real editor, watch the wiki absorb it. Notes live in your
layer; each one carries a status chip — ✨ Add to wiki while it's newer
than the last build, ✓ In wiki · 2 pages once absorbed. Seeing the raw
layer get digested into the wiki layer is what makes the pattern click.

MindBase v2 — writing a note, wiki-status chip, qwen3:14b running locally

The "discuss takeaways" step is now a first-class surface. Every ingest
shows takeaways + a checkbox plan of wiki updates — only what you approve
gets written. My v1 skipped this step and it felt like the AI rewriting
your notes behind your back; this one change fixed the trust problem.
Build, lint (contradictions / orphans / gaps as cards), and research are
in the UI too.

The approval step — takeaways and a checkbox plan, generated by qwen3:14b locally

It runs on a free local model. Setup detects your hardware, picks an
Ollama model that fits your RAM (8GB → llama3.2:3b, 32GB+ → qwen3:14b),
installs and verifies it. The unlock: I dropped multi-step tool loops —
every wiki operation is one constrained JSON completion against a
strict schema. Small models are shaky chaining tool calls but very
reliable filling one schema. Zero subscriptions, nothing leaves your
machine.

Still all markdown on disk. Repo: https://github.com/frankchu91/mindbase

(@akash07k — answers your question too: v2 is the default layout now,
/mb:migrate converts old projects. Thanks for the nudge.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment