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 分