Skip to content
Projects

About

The living library your AI tools work from. Docs, wiki, skills and rules, kept current and in sync. Open source.

Developer Tools

How these counts are measured

What you can do

  • Files and folders: Markdown, text, text-based PDFs, and DOCX. Import once, or keep in sync.
  • Obsidian and Logseq: keep in sync or import once. Notes you wrote start on Ask me first.
  • Web links: paste a link into a page and it becomes a source.
  • Gmail, Notion, Google Drive, Slack, GitHub: your AI tool reads them and saves what matters, with a link.

Measured star growth

in 24h
0
in 7 days
+1
in 15 days
+4
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Wenlan: the living library your AI tools work from.

Docs, skills and rules for you, your team and your agents, kept current and in sync.
Turn notes and memories into source-backed pages and reuse your artifacts across sessions.

English | 简体中文 | 繁體中文 | Español

Download · Get started · Sources · Docs · Discord

CI Latest release License: Apache-2.0 and AGPL-3.0

https://github.com/user-attachments/assets/05a32c9d-de71-415d-8474-8354e4a73e81


Why Wenlan

Each AI tool keeps its own memory and rules. Wenlan gives your tools, agents and team what you settled.

Free and open source, for people who use several AI tools daily, and small teams, all engineers or mixed.

  • Pages with sources. Wenlan checks that each cited source supports its sentence before saving.
  • One copy of skills and rules. Claude Code, Codex, Copilot and more read it from their own files.
  • Organized memory. What you settle is sorted into your docs, skills and rules, so they stay current.
  • You stay in charge. See every change, undo it, and lock a page so AI asks you first.
  • Files first, self-hosted, portable. Plain Markdown files; the database is only an index.
  • Easy for people to read too. A page can be text, or a web page you ask your AI to draw.

Wenlan or a rules file per tool?

A rules file (AGENTS.md, CLAUDE.md, .cursor/rules) is enough for one tool in one repository. Beyond that:

  • One copy for all your tools. No more copying a file per tool and keeping them in step by hand.
  • Old rules don't linger. Your AI tools update a page when its source changes.
  • More than rules. Docs, skills and memory sit next to them.

More comparisons, with Obsidian, Notion AI, and memory tools: wenlan.app/learn.


Get started

On your own. Start from your AI tool. No app needed.

  1. Run one command (needs Node.js). It installs and starts Wenlan, connects the AI tools it finds, and brings in their rules and skills.

    npx -y wenlan setup
    

    It asks once whether to bring in a folder of notes or docs, and once whether to share your rules and skills across those tools. Enter skips. Other ways to install.

    Later: wenlan connect cursor adds another tool, wenlan sources add ~/notes another folder. More.

  2. Tell one AI tool what you settled. Then ask in another; it is there right away.

    Save to Wenlan: we release on Tuesdays, after the tests pass.

    Ask Wenlan: when do we release?

    With the plugin these are /capture and /recall. All commands.

  3. Your AI tool sorts what you settled into docs and rules, each with its source. With the plugin, Claude Code starts on it the next time you open it; otherwise, ask your AI tool to write your pages. With a local model or an API key, Wenlan can do it in the background.

    A rule you ask your AI tool to save counts at once. A rule it suggests waits for your OK on the app's Rules page or in wenlan rules review. Then Claude Code, Codex and the other tools Wenlan manages get it in their own rules files.

  4. Read and edit your pages in your browser: wenlan open.

Optional: the desktop app for macOS, Windows and Linux adds imports and one-press connections.

With a team. Run one Wenlan server. Team server guide.

  • Each person connects with their own key, with view-only or edit access to each Space.
  • Members join from an invite link with their own AI tool.
  • Share a page or Space from the app; members see it in their own app.

https://github.com/user-attachments/assets/730f2395-0540-4d9c-9be1-563d94bf18fe

Works with Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and other MCP tools: setup guide.


What you can bring in

  • Files and folders: Markdown, text, text-based PDFs, and DOCX. Import once, or keep in sync.
  • Obsidian and Logseq: keep in sync or import once. Notes you wrote start on Ask me first.
  • Web links: paste a link into a page and it becomes a source.
  • Gmail, Notion, Google Drive, Slack, GitHub: your AI tool reads them and saves what matters, with a link.
  • AI chats: decisions and findings are saved as memories. ChatGPT and Claude export ZIPs work too.
  • A code repository: your AI tool reads the code and writes docs tied to it. Docs for code.

OKF folders work too. Scanned PDFs need text extraction first. Import guide.


How it stays organized

Your AI tool turns what you bring in into linked, cited Markdown pages and keeps them current.

Illustrative flow: AI chats, documents and folders (including Obsidian), code, and web content go into Steep. It writes a new page from several memories, merges duplicate pages, and updates a page with a citation it checks against the source; a page set to Ask me first waits for approval. It also finds a new link and resolves a contradiction by keeping the newer statement, with the older one restorable from history. Next time you ask, your AI tool cites the updated page.

Illustration based on current update behavior; not an App screenshot.

  • Pages with sources: Wenlan refuses a page when most citations don't match. A pass is not proof.
  • Kept current: When a source, memory, or cited code changes, pages relying on it are flagged.
  • You decide what AI may change: Set a page to Allowed or Ask me first, and restore any earlier version.
  • Two ways to run it: your AI tool as it works (default), or a background model you pick. Steep guide.
  • Skills: Take in the skills you already have, or find new ones. Wenlan suggests edits; you decide.
  • In your AI tool: name Wenlan and ask in plain words. The plugin adds /wenlan. Commands.
  • In the app: add material, edit pages, see your rules, and review changes without connecting an AI.

https://github.com/user-attachments/assets/908fb7ef-49ac-46a7-8c95-0ecae4138c38

https://github.com/user-attachments/assets/5de34d88-bc24-4718-8ee7-a78f2e65038f

Already run Claude Code on a notes folder? Keep it. Wenlan adds citation checks and per-page control.


Docs for your code repository

In a repository, your AI tool reads the code and writes an overview and a page for each part.

cd your-repo
wenlan init

It connects your AI tools and asks once about a daily pull request. With the plugin, /wenlan docs writes them now.

  • Tied to the code: Each key sentence points to the code lines behind it. You see when they change.
  • As a pull request: Pages go into the repository as a pull request, when you press the button or daily.
  • Existing docs too: The same pull request fixes doc sentences the code no longer matches.
  • Project rules too: It also puts the project's rules into AGENTS.md, where teammates' AI tools read them.
  • Your edits stay: Edits made in the repository are kept. Pages that cite your memories or chats stay out.


For technical readers

One local knowledge base. The app, CLI, and connected AI tools read and write through Wenlan’s local service. Pages are Markdown files; memories, relationships, and search indexes live in local libSQL. The service, CLI, and MCP server are written in Rust; the desktop app uses Tauri with React and TypeScript. A team server runs the same service on a shared machine, and each member's Wenlan syncs the shared pages with it.

Architecture overview: App and AI tools share a local knowledge base, with optional background enrichment models.

  • Retrieval: SQLite FTS5 finds exact terms and BGE embeddings in a libSQL DiskANN index find similar meaning, fused by weighted Reciprocal Rank Fusion (RRF). Base search needs no API key. Shared-entity links boost related memories, and optional cross-encoder reranking refines the order. Choosing a Space limits results to that project.
  • Graph: With an enrichment model, entity extraction and resolution link mentions of the same person, project, or concept across sources. Label Propagation (default) or Leiden groups related topics.
  • Memories: Findings are saved as small, separate memories, so one can be found without loading a whole conversation or page.

Retrieval, evidence, and models.

Evaluation

These LongMemEval (LME) snapshots measure retrieval of saved knowledge, not AI answer quality. Recall@5 measures how much relevant material appears in the top five results.

Benchmark Recall@5 MRR NDCG@10
LME_Oracle (500 Q) 93.6% 0.857 0.883
LME_S (deep, 90 Q) 87.7% 0.815 0.822

On a 10,000-page test (generated pages, M2 Pro with 16 GB, v0.20.0), App search answered in 11 to 50 ms, restart took under 0.3 s, and memory peaked at about 1.2 GB. With the search fix in 0.20.1, AI-tool search found all 30 rare test words in that library.

Importing a 10,000-note Obsidian vault in 0.20.2 (invented notes, M2 Pro Mac with 16 GB, debug build, Claude Code writing the pages): searchable in 15 s, the first page in about 2 minutes, and 8 cited pages in about 4 minutes.

Evaluation method and benchmark details.


Data and privacy

  • Pages are Markdown files on your computer, and they go only where you send them.
  • With a team server, only pages in shared Spaces go to it. Memories, sources and other Spaces stay with you.
  • Export eligible pages as an Open Knowledge Format (OKF) folder.
  • A cloud AI tool may send what it retrieves to its provider, and a cloud model receives the material it processes, so local storage does not keep those interactions local.
  • Usage statistics are off by default.

Web access (experimental): Turn on Web access in Settings to let web AI clients such as Claude, ChatGPT, or Muse search your library or a chosen Space while your computer is online. When you allow an app, choose search only or search and write; a write app can also add, edit and delete, and AI apps can ask you before each change. Queries and results pass through a relay. See the privacy limits.

File locations, backup, and removal · Network and privacy details.


Learn more


Contributing

Join the Discord community. Report bugs or request features in GitHub issues; issues are public, so redact secrets and personal information.

For code and docs, see Contributing, Security, and the Code of Conduct.


Code signing policy

See the platform signing and notarization details.


License

The local runtime, CLI, MCP server, shared types, and plugins use Apache-2.0. The desktop app and its frontend use AGPL-3.0-only; modified versions run as a network service must offer their source to users.


Lineage and peers

Wenlan takes its name from Wenlan Pavilion. Its direction builds on the LLM-wiki and agent-memory lineages: Karpathy’s LLM-wiki note, Rohitg00’s proposal, and nashsu/llm_wiki. For code docs, the closest peer is OpenWiki; Wenlan’s daily pull request follows its pattern.

Explore related projects

Loading…