2026-11-26 15:50 UTC

Wenlan packages local agent memory and a reviewable, source-cited wiki

state: seedheat: lowuncertainty: highrelevance: mediumagent-memory rag-knowledge-systems knowledge-management7xuanlu

What is this?

Wenlan is a released, local-first knowledge-base project by maintainer 7xuanlu, with a desktop app and headless daemon that connect to AI clients through integrations including MCP. Its GitHub README describes a workflow that combines traceable documents and conversations (“Sources”) with agent-captured notes (“Memories”), then distills them into cited Markdown pages (“Pages”). It claims pages can be refreshed from current supporting material, with citation checks, while changes to human-edited pages are proposed for review rather than silently applied. Retrieval is described as local hybrid search, with optional model-backed enrichment and synthesis; users can also configure a remote model. These are maintainer-documented capabilities, not independently demonstrated performance or evidence of broad adoption. The supplied retrieval benchmark is explicitly retrieval-only, not a measure of end-to-end answer quality.

Why it matters

Wenlan is a useful example of the emerging local-first AI knowledge-base pattern: instead of relying on chat history or a pile of disconnected memories, it combines traceable sources and agent-captured notes into refreshable, cited Markdown pages. Its review path for changes to human-edited pages and its local storage may appeal to people who want persistent context without handing ownership entirely to a hosted service. The README describes substantial functionality, but the supplied evidence does not independently establish reliability, answer quality, adoption, or an advantage over similar tools.

Current assessment

Wenlan’s maintainer describes a released local desktop and headless daemon that connects to AI clients and turns traceable Sources and agent-captured Memories into cited Markdown Pages. The README says machine-maintained Pages can be rebuilt from current support and edits to human writing are held for review; these are project claims, not independently verified reliability results. A second Show HN post from the same author highlights flagging claims it cannot support but supplies no details or external validation. The available evidence does not establish answer quality, broad adoption, or superiority to adjacent tools. The workflow may interest users seeking persistent, inspectable agent knowledge, but its practical value and maintenance burden remain uncertain.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 1704h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

09-16 15:32 (minted)⭐ origin echo-reconstructedWenlan offers desktop and headless local runtimes with AI-client integrations, traceable sources, atomic memories, and maintained pages; mac
7xuanlu on github (echo) · attributed from hn.story.49728059 · published time unknown
—
09-16 14:58first on hacker news · published · lag ?Show HN: Wenlan – a living wiki AI keeps current without overwriting your edits
h164654156465
—
09-16 14:58amplified on hacker newshn.story.49728059
h164654156465
peak 1 · 0 comments · 21% of case engagement
10-27 17:50amplified on hacker news 👑hn.story.50263033
h164654156465
peak 2 · 2 comments · 79% of case engagement
09-16 15:20our radar first saw it · lag ?discovery anchor: hn.story.49728059—

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Wenlan – a living wiki AI keeps current without overwriting your edits
Retrieved article excerpt

Open article · Retrieved 2026-09-16T15:22:43.675037+00:00

Wenlan: your source-backed knowledge base, built to compound.

Useful work with AI shouldn't disappear when a conversation ends. Wenlan builds the right pages and keeps them current as sources change, asking only when judgment is needed.

English | [简体中文](https://github.com/7xuanlu/wenlan/blob/main/README.zh-Hans.md) | [繁體中文](https://github.com/7xuanlu/wenlan/blob/main/README.zh-Hant.md) | [Español](https://github.com/7xuanlu/wenlan/blob/main/README.es-ES.md)

[CI](https://github.com/7xuanlu/wenlan/actions/workflows/ci.yml?query=branch%3Amain)
[Latest release](https://github.com/7xuanlu/wenlan/releases/latest)
[License: Apache-2.0 and AGPL-3.0](https://github.com/7xuanlu/wenlan#license)

[Get started](https://github.com/7xuanlu/wenlan#start-in-30-seconds) ·
[What is this?](https://github.com/7xuanlu/wenlan#what-does-wenlan-build) ·
[Capabilities](https://github.com/7xuanlu/wenlan#what-can-it-do) ·
[Daily workflow](https://github.com/7xuanlu/wenlan#how-does-it-work) ·
[Evaluation](https://github.com/7xuanlu/wenlan#evaluation) ·
[Learn more](https://github.com/7xuanlu/wenlan#learn-more)

wenlan-launch-v18-readme.mp4

[
](https://private-user-images.githubusercontent.com/23661875/646704032-d8b2ad4a-f97a-4a15-97a8-9105478de18a.mp4?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODk1NzI0NjIsIm5iZiI6MTc4OTU3MjE2MiwicGF0aCI6Ii8yMzY2MTg3NS82NDY3MDQwMzItZDhiMmFkNGEtZjk3YS00YTE1LTk3YTgtOTEwNTQ3OGRlMThhLm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA5MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwOTE2VDE1MjI0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJhMWRhYjZlZjc5MmQ0OTY4MmEwMDFlNzcwYTM3ODZkYjhmNzI4MDBlZWQxY2E5Y2VjMDA3MTljM2U4YmI4MGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT12aWRlbyUyRm1wNCJ9.Vb80RIfZamuObI1drZg4PRzwbv2KyXWjaZS83MnlEBc)

A maintained Page in the desktop app: open any citation to inspect the Source or Memory behind the claim.

---

## Get started

Wenlan runs as one local daemon. The desktop app carries that daemon inside it; the headless install gives you the same daemon without a window. Your AI clients reach the same knowledge base either way.

### Desktop app

Download from the [Releases page](https://github.com/7xuanlu/wenlan/releases/latest):

- **macOS (Apple Silicon):** open the `.dmg` and drag Wenlan to Applications. The app is signed and notarized, so there is no warning on first launch. From the terminal instead: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/7xuanlu/wenlan/main/scripts/install-macos-app.sh)"` (downloads, checks the SHA-256, moves it to Applications).
- **Windows x64:** run the `-setup.exe`. It is not signed yet, so when SmartScreen says "Windows protected your PC", choose "More info", then "Run anyway".
- **Linux:** no desktop build yet; use the headless runtime below.

The app bundles the daemon, CLI, and MCP connector, starts the daemon on launch, and offers to connect the AI clients it detects: the plugin for Claude Code and Codex, an MCP entry for the rest. To upgrade, drag the new app over the old one and open it (Wenlan 0.17.0 and older must be quit by hand first).

### Set up with your AI

Paste this into Claude Code, Codex, or another tool that can follow a setup guide:

```
Set up Wenlan for this AI client by following:
https://raw.githubusercontent.com/7xuanlu/wenlan/main/docs/setup-with-ai.md

Install only what this client needs. Then verify the local runtime,
its Wenlan connection, and a capture/recall round trip.
```

The guide detects which client you are using and keeps client-specific commands out of this README. It does not configure every AI tool unless you ask it to.

Need only the headless runtime on macOS Apple Silicon?

```
npx -y wenlan setup
```

`npx` requires Node.js; without it, run `curl -fsSL https://raw.githubusercontent.com/7xuanlu/wenlan/main/install.sh | bash` then `wenlan setup --basic`.

This downloads the prebuilt CLI, daemon, and MCP connector, starts the local runtime, and verifies it. No Rust toolchain or Cargo is required. Linux x64/ARM64 with glibc has an automated [shell setup path](https://github.com/7xuanlu/wenlan/blob/main/docs/setup-with-ai.md#install-the-runtime); Windows x64 uses the matching archive from [Releases](https://github.com/7xuanlu/wenlan/releases/latest). macOS Intel currently has [no supported complete-runtime install](https://github.com/7xuanlu/wenlan/blob/main/crates/wenlan-cli/README.md#macos-intel).

Manual and client-specific instructions: [AI-assisted setup](https://github.com/7xuanlu/wenlan/blob/main/docs/setup-with-ai.md) · [Claude Code plugin](https://github.com/7xuanlu/wenlan/blob/main/plugin/.claude-plugin/README.md) · [Codex plugin](https://github.com/7xuanlu/wenlan/blob/main/plugin-codex/README.md) · [CLI and MCP](https://github.com/7xuanlu/wenlan/blob/main/crates/wenlan-cli/README.md).

---

## What is this?

Wenlan turns documents, notes, and past AI conversations into a source-backed knowledge base that stays current as your work evolves. Sources remain traceable; decisions, lessons, and corrections become durable memories; both can support the same maintained Pages.

Sources and memories independently support a maintained Page. Wenlan can rebuild a stale Page from its current support; optional conflict review can surface protected conflicts, and changes to human writing wait for the user.

**Built for work that continues.** Wenlan is for researchers, writers, consultants, product teams, and software teams whose knowledge is scattered across documents, notes, and AI conversations. It turns that material into inspectable Pages that can improve across projects and weeks, not another chat history or isolated memory store. It is not a life-management system or a memory SDK embedded inside another product.

**One knowledge system, three roles:**

- **Sources keep the material Wenlan reads traceable.** Imported conversations remain as captured records; registered files sync their current contents as they change.
- **Memories preserve what work teaches you.** Agents capture atomic decisions, lessons, corrections, and supersession with provenance.
- **Pages compile current knowledge.** Wenlan turns relevant Sources and Memories into source-cited Markdown you can reuse, refresh, and review.

**The LLM-wiki foundation, extended:**

- **[LLM-wiki v1](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f):** Karpathy defined immutable Sources, an AI-maintained Markdown Wiki, and a co-evolving Schema of rules for structuring and maintaining it. Wenlan implements that foundation with [typed Memory fields](https://github.com/7xuanlu/wenlan/blob/main/docs/technical-foundations.md#typed-memory-schema) and built-in rules for Page structure, provenance, citations, refresh, ownership, and review.
- **[LLM-wiki v2](https://gist.github.com/rohitg00/2067ab416f7bbe447c1977edaaa681e2):** Rohitg00 added a memory lifecycle. Wenlan makes that direction concrete with traceable Sources, agent-captured Zettelkasten-style atomic Memories (one complete idea each), and maintained Pages built from both.

For the complete workflow, see the [LLM-wiki implementation guide](https://wenlan.app/learn/distilled-wiki-pages-ai-memory).

**Wenlan's distinctive move:** Sources and atomic Memories independently support maintained Pages. Memory history preserves how knowledge changed; Page history shows which current evidence supports the synthesis. Machine-maintained Pages can rebuild from current support, while changes to human writing wait as reviewable revisions.

### A knowledge graph that gets more useful over time

The entity-relation graph is one part of Wenlan's wider connected wiki. **Knowledge Pages** hold maintained synthesis, **Entities** anchor reusable people, projects, and concepts, **Source Pages** make imported or synchronized material inspectable, and atomic **Memories** preserve decisions and changes. They work through separate, explicit links: Page-to-Page wikilinks, Page evidence, Memory-to-Entity links, and directed Entity relations.

Conceptual model of Wenlan's connected knowledge system, with Knowledge Pages, Source Pages, atomic Memories, and Entities connected through Page links, evidence, Memory-to-Entity links, and Entity relations.

Within the entity graph, a configured enrichment model extracts typed Entities, observations, and directed relations from Memories. Entity linking and resolution reuse existing nodes instead of treating every mention as new; each Memory keeps its Source and can link to multiple Entities. [How the connected model is stored ->](https://github.com/7xuanlu/wenlan/blob/main/docs/technical-foundations.md#connected-knowledge-model)

- **Meaning and direction:** Relations use a seeded vocabulary such as `uses`, `part_of`, `contradicts`, and `replaced_by`; unknown types fall back to `related_to` and become reviewable vocabulary proposals.
- **Strength and provenance:** A relation can store confidence, an explanation, and its source Memory, so stronger and weaker claims remain distinguishable and inspectable.
- **Communities that compound:** Label propagation groups Entities by relation density, weighted by the relation count between each pair. These groups can organize optional corpus summaries while Entity links add retrieval context.
- **Correction without erasure:** Related claims, corrections, and explicit supersession stay inspectable together while original Sources and Memory history remain.

During retrieval, dense entity matching finds query-relevant entities. When eligible graph links exist, the default graph-memory stream boosts linked Memories as a third [RRF](https://cormack.uwaterloo.ca/cormacksigir09-rrf.pdf) signal. The path is data- and scope-dependent, and Space boundaries (Spaces are defined under Capabilities) still apply. [How the graph path works ->](https://github.com/7xuanlu/wenlan/blob/main/docs/technical-foundations.md#graph-assisted-retrieval)

### Retrieval across words, meaning, and connections

Wenlan's core search is a local hybrid pipeline, not a single vector lookup. Each stage has a different job:

- **Exact wording, [SQLite FTS5](https://www.sqlite.org/fts5.html):** a full-text index finds literal terms, identifiers, and phrases.
- **Similar meaning, FastEmbed + [`Qdrant/bge-base-en-v1.5-onnx-Q`](https://huggingface.co/Qdrant/bge-base-en-v1.5-onnx-Q):** a quantized English model creates 768-dimensional embeddings; [libSQL cosine DiskANN](https://turso.tech/blog/approximate-nearest-neighbor-search-with-diskann-in-libsql) indexes them for approximate nearest-neighbor retrieval.
- **Combined ranking, weighted [RRF](https://cormack.uwaterloo.ca/cormacksigir09-rrf.pdf) (`k = 60`):** lexical and semantic rank lists are fused without pretending their raw scores share a scale; cosine similarity also weights the vector contribution.
- **Connected context, graph-memory stream:** eligible entity links add a third RRF signal while the active read scope still filters returned Memories.
- **Optional precision, cross-encoder reranking:** unlike embeddings, [`jinaai/jina-reranker-v1-turbo-en`](https://huggingface.co/jinaai/jina-reranker-v1-turbo-en) or [`BAAI/bge-reranker-base`](https://huggingface.co/BAAI/bge-reranker-base) reads each query-candidate pair and reorders the smaller pool; reranking is off by default.

Page, episodic, and fact channels are opt-in and degrade to the remaining search signals if unavailable. Space still limits the read scope. [Methods, defaults, and limitations ->](https://github.com/7xuanlu/wenlan/blob/main/docs/technical-foundations.md)

### Two lifecycles, one maintained knowledge system

A generated wiki can go stale; a memory store can fragment into disconnected facts. Wenlan links two lifecycles without collapsing them into one layer.

An earlier memory remains linked after an e
h16465415646510
🟧 echo.github ⭐Wenlan offers desktop and headless local runtimes with AI-client integrations, traceable sources, atomic memories, and maintained pages; mac7xuanlu——
🟧 hnShow HN: Wenlan – your LLM wiki that flags what it can't back uph16465415646522

Interpretation history

Decision trace