
Open Zk Kb
io.github.mrosnerr由 GitHub 帳號 mrosnerr 發布v1.4.4更新於 Oct 24, 2026
Shared, persistent memory for AI assistants, built on the Zettelkasten method.
概覽
一套供 AI 程式助理使用的本機持久記憶伺服器,以 Zettelkasten 方式把偏好、修正與決策存成互相連結的 Markdown 筆記,並以 SQLite 索引檢索。
- 可以做什麼
- 把修正、偏好與決策以原子化、互相連結的筆記存入本機知識庫,並在 Claude Code、Cursor、Windsurf、OpenCode、Zed、Pi、OMP 等支援的用戶端之間共用。以全文檢索加上本機語意比對的混合搜尋,只呈現相關脈絡。在工作階段開始時讀取脈絡、檢查知識庫健康狀態,並移除不再有用的筆記。筆記是純 Markdown 檔案,背後是可重建的 SQLite 索引。
- 適用情境
- 當你反覆向程式助理說明技術堆疊、慣例或已修正過的問題,或希望多個 AI 工具共用同一份記憶而非各自獨立的脈絡時適用。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行;即使透過 Pi 套件使用也需要 Bun 1.0 以上版本。不需 API 金鑰或雲端服務,本機嵌入開箱即用。安裝程式會設定支援的用戶端並建立本機知識庫。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Open Zk Kb,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
open-zk-kb
[CI] [npm version] [npm downloads] [License: MIT]
You open a new session and your agent has no idea who you are. Again. You re-explain your stack, your conventions, that one edge case you've corrected five times.
open-zk-kb gives your agent a memory — so corrections stick, context compounds, and every session starts smarter than the last.
[Store, apply, inspect, and remove an automatic preference in Pi]
The full loop in Pi: store a preference, carry it into a fresh session, inspect the vault, and remove it when it stops being useful.
Quick start
Requires Bun — install with
curl -fsSL https://bun.sh/install | bash
The installer configures your selected clients, installs agent instructions, and creates a local vault. Supported clients: OpenCode, Claude Code, Cursor, Windsurf, Zed, Pi, and OMP.
See the Setup Guide for manual installation and troubleshooting.
Why open-zk-kb?
Your agent starts from zero every session. No memory, no learning curve. You correct the same mistakes, re-explain the same conventions, re-teach the same context. Switch tools and it's even worse — your Cursor agent doesn't know what your Claude agent learned.
open-zk-kb fixes that.
- Correct it once, it sticks — your agent stores corrections, preferences, and decisions. Next session, it already knows.
- Works across every tool — one knowledge base shared by Claude Code, Cursor, Windsurf, OpenCode, Zed, Pi, and OMP
- Finds what's relevant — hybrid search matches meaning, not just keywords, so only useful context surfaces
- Runs locally — no API keys, no cloud, works offline. Your data stays on your machine.
- Human-readable — plain Markdown files you can browse, edit, and version control
- Open source — MIT licensed
Pi: native knowledge tools
Install the Pi package, then restart Pi:
The extension exposes all ten knowledge-* tools directly in Pi. Results use Pi-native compact rendering: search, store, context, and health have focused summaries and expandable detail, while the other tools show concise status output. The MCP server and local SQLite/embedding work still run with Bun >= 1.0; Pi itself runs under its supported Node.js runtime. Installing Bun is therefore required even when using the Pi package.
Pi also loads active project preferences automatically when a session starts and injects them into model context without requiring a model-initiated search. The visible knowledge-context entry reports what happened without fabricating a tool call.
See the Pi experience guide for the complete preference workflow and renderer examples. For installer-managed instructions, verification, and troubleshooting, see Pi installation.
Configuration
Zero configuration required. Local embeddings work out of the box with no API key.
See the Configuration Guide for embeddings, vault path, lifecycle tuning, and server settings.
Under the hood
Built on the Zettelkasten method — atomic, linked notes with structured kinds. Each note captures one concept (a decision, a preference, a gotcha) and links to related notes, building an interconnected knowledge graph.
Search combines SQLite FTS5 full-text indexing with local vector embeddings (MiniLM-L6-v2) for semantic matching. Markdown files are the source of truth; the database is a rebuildable index.
Telemetry
When enabled (telemetry.enabled: true and telemetry.share: true), open-zk-kb sends one anonymous event for each completed session to PostHog (EU Cloud) on a later startup. It includes a canonical client, bounded model IDs, vault size, and counts for all ten tools—not note content, queries, paths, names, or email addresses. Runtime defaults are disabled; the interactive installer enables sharing only after affirmative consent, while unattended and direct package installs remain disabled unless configured separately. Set DO_NOT_TRACK=1 to unconditionally block sharing (local SQLite counters are unaffected), or keep both flags false. See Telemetry for the full event schema and details.
Documentation
- Setup Guide — installation, client-specific setup, troubleshooting
- Pi Experience — native tools, automatic preferences, and renderer gallery
- Tools Reference — all 10 MCP tools with parameters and examples
- Note Lifecycle — note kinds, statuses, review system
- Configuration — embeddings, vault, lifecycle, and server settings
- Architecture — dual storage, ownership model, design decisions
- Development — local dev, testing, debugging
- Contributing — guidelines for contributors
License
來源:README.md,提交 a4b0b41
工具
0版本歷史
1- v1.4.4最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分