Memnest

io.github.Blue-B由 GitHub 帳號 Blue-B 發布v0.4.3更新於 Oct 31, 2026

Local memory for coding AIs: search past conversations and decisions from the original text.

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

本機記憶伺服器,讓程式設計助理儲存、搜尋並讀取過往對話與決策的原文。

可以做什麼
  • 儲存、搜尋、讀取、更正與刪除記憶記錄,並可用舊記錄 ID 標記被取代的項目
  • 在目前工作區與共用 playbook 中搜尋,或刻意跨所有專案搜尋
  • 依 ID 讀取結果背後的原始來源,並可比對附帶的本機程式碼檔案
  • 啟用保險庫工具時,將憑證存入並取出獨立的加密保險庫
  • 匯入選定的早期對話檔案,並讓多個程式設計用戶端共用同一份儲存
適用情境
適合需要助理回想某個決策的原因、上次定案的部署方式,或上次遇到該錯誤時試過什麼。它面向逐步累積、需要時再查的對話歷史;少數每次都適用的規則更適合寫在 AGENTS.md 或 CLAUDE.md 中。
執行需求
以本機程序執行,需 Apple Silicon 的 macOS,或帶 systemd 的 Linux(x86_64 或 Arm64,並符合所述 glibc 版本);Intel Mac 需從原始碼建置。安裝需要 Python 3。首次寫入或搜尋會下載約 1.1 GB 的嵌入模型,嵌入過程可能佔用約 1.9 GB 記憶體。其他 MCP 用戶端透過本機 3111 埠的 HTTP 端點連線。
安裝前請注意
一般記憶未加密,去識別化只涵蓋已知的憑證樣式;該埠不應直接暴露到網際網路。刪除並非立即抹除,記錄預設在資源回收筒保留 30 天,備份或外部對話紀錄可能仍留有副本。雲端 AI 供應商會收到你送給其模型的檢索文字,網頁連接器需要公開 URL,而該 URL 本身即等同憑證。安裝腳本會修改現有用戶端設定,升級前請備份 memory.db 與 master.key。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Memnest,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

memnest

[memnest logo]

한국어 | Install | Use it | Operations

Your coding AI forgets everything when the session ends. Memnest lets it look up what you decided before, and why, from the original conversation instead of an AI-written summary.

  • Original text, not summaries. No LLM rewrites your history. Saving and searching call no model API, so there is no API key and no extra token bill. Every result carries a source ID you can open.
  • One memory for every coding AI. Claude Code, Codex, Cursor, and pi connect to the same local service. Decide something in Claude Code, look it up from Codex.
  • Stays on your machine. One Rust binary with SQLite and a local multilingual embedding model. Credentials go to a separate encrypted vault.

[Latest release] [npm: pi-memnest] [License: MIT]

Install

bash
curl -fsSL https://raw.githubusercontent.com/Blue-B/memnest/main/core/scripts/install.sh | bash

This installs the latest release for your user, starts the server and conversation watcher, and adds Memnest to the Claude Code, Codex, and Cursor configurations it finds. Existing configuration is backed up first, and the restore command is printed.

Requirements: macOS on Apple Silicon, or Linux with systemd on x86_64 (glibc 2.35+, e.g. Ubuntu 22.04, Debian 12) or Arm64 (glibc 2.39+, e.g. Ubuntu 24.04). Python 3 is needed for setup. The first write or search downloads an embedding model of about 1.1 GB, and embedding can use about 1.9 GB of RAM.

Read the script first, pin a version, or upgrade
bash
curl -fsSL https://raw.githubusercontent.com/Blue-B/memnest/main/core/scripts/install.sh \  -o /tmp/memnest-install.shless /tmp/memnest-install.shVERSION=v0.4.3 bash /tmp/memnest-install.sh --user

Before upgrading an existing installation, back up memory.db together with master.key.

See it work

[One client saves a decision, a separate client retrieves the same record]

Two separate clients, one local store: the record saved through MCP comes back with the same ID from an independent search. Reproduce it on your own machine.

When to use it

Use the accumulated record for questions such as:

Why did we switch task managers? Find the discussion behind that decision.

What deployment approach did we last settle on for this project, and why?

What did we try the last time this error happened?

The AI searches memory, reads the relevant source, and uses it to answer. Results include source IDs so you can check the evidence. These are example requests, not an autonomous demo or a guarantee that an answer will be found.

For a few rules that should apply every time, AGENTS.md or CLAUDE.md is simpler. Memnest is for a growing history of conversations and decisions that you want to look up when needed.

Connect pi

With the core running, install the matching extension:

bash
# Published extension for core 0.4.xpi install npm:[email protected]
# Or connect a reviewed source checkoutpi install ./pi-extension

If Memnest is already registered from another source, remove that registration first to avoid loading it twice. Use /memnest in pi to check the connection. See extension settings.

Local development: vault tool settings

The extension exposes only the five memory tools by default. To let pi store and retrieve credentials with secret_set, secret_get, secret_list, and secret_delete, enable the vault tools before starting pi:

bash
export MEMNEST_EXPOSE_SECRET_TOOLS=1pi

Restart pi after changing the variable; /reload alone cannot change the running process environment. /memnest reports whether the vault tools are available and shows this activation hint when they are hidden.

Other MCP clients connect to http://127.0.0.1:3111/mcp. See connection examples, other environments and source installation, and upgrade and recovery. Intel Macs need a source build.

Use it

Ask your connected AI to look up a previous conversation or decision. Automatic recall is off by default; you can start by requesting a search when you need one. See extension settings to enable automatic recall.

Clients that call tools directly use this flow:

text
memory_search(query="reason for switching task managers")memory_get(id="<ID returned by search>")

Five tools cover saving, searching, reading, correcting, and deleting. Use memory_remember to explicitly save an important decision. When a fact changes, save its replacement with supersedes=<old ID> to link it to the earlier record.

When the host provides the current directory, searches include that workspace and the shared playbook. Specify project=all for a deliberate cross-project search. See source reading for long records and nearby conversation entries.

Conversations from before installation are not all imported automatically. Select the original files you need with history import.

Source-backed coding records (0.4.0)

Save an approach as proposed, failed, or reported success without treating that report as verification. Optionally attach selected local files with memory_remember(code_files=["relative/file"]), then request memory_get(check_code=true) when you want to compare their bytes. Unrelated edits do not trigger warnings. See code evidence.

Optional team access adds named project grants, audit and retention. A free local comparison records where Memnest did and did not perform well; it does not claim universal accuracy superiority.

Important limits

  • Retrieval is not truth checking. Search can miss a relevant record. Memnest cannot determine whether an old decision still holds. A following-source hint is not a verified reply relationship.
  • Capture is selective. It stores visible conversation text, not reasoning, tool traffic, images, or subagent conversations. It does not import ChatGPT's or Claude's built-in memory.
  • Storage is local; your connected AI answers. Default storage/search makes no generative LLM calls. Explicit evidence_only=true opts in to a configured local source-selector model, whose judgment remains unverified. A cloud AI provider receives retrieved text that you send to its model.
  • Regular memories are not encrypted. Redaction handles known credential patterns, not every possible secret. Do not expose port 3111 directly to the internet.
  • A web connector is a network path into your memories. ChatGPT and Grok connectors need a public URL, retrieved text reaches the provider's servers, and that URL acts as a credential. See web connectors.
  • Deletion is not immediate erasure. Records default to 30 days in trash. New plaintext archives are off by default; old archives, backups and external transcripts may still retain copies. See security and deletion limits.

Documentation and checks

One Rust service stores source records in SQLite and searches with BM25 plus local multilingual embeddings. Search indexes can be rebuilt from the source records.

License

MIT © Blue-B

來源:README.md,提交 33ac55f

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:該軟體包類型無法在沙箱中執行。

版本歷史

1
  1. v0.4.3最新Oct 31, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分