
Builderforce Memory
io.github.SeanHogg由 GitHub 帳號 SeanHogg 發布v2026.10.80更新於 Nov 11, 2026
Token-saving persistent memory for AI agents: recall durable facts instead of re-reading files.
發布方自己的服務:Memory.fit
概覽
為 AI 代理提供持久記憶:儲存長期事實並依需求召回少量排序結果,讓助理不必反覆讀取檔案來記住資訊。
- 可以做什麼
- 召回、以精確鍵取得並依標籤檢索已存事實,結果會排序並截斷以控制上下文用量
- 寫入新記憶與遺忘既有記憶,也可用唯讀模式只開放召回
- 把已被吸收的事實壓縮成一行指標存根,並保留封存與原文還原途徑
- 可選用經驗功能:儲存與列出示範、編譯與排程技能、記錄執行及其稽核軌跡
- 將伺服器安裝到 Claude Code、Claude Desktop、Cursor、Windsurf、VS Code、Cline、Gemini CLI 或 Codex CLI,共用同一份儲存
- 適用情境
- 當助理反覆讀取檔案或重複推導相同事實,而你希望偏好、修正與專案知識在決策當下被召回時使用。適合編碼代理,以及多個工具需要共用同一記憶儲存的多主機環境。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node.js。選用的 BUILDERFORCE_API_KEY 可啟用成本工具;BUILDERFORCE_MEMORY_FILE 指定 JSON 快照路徑(預設為使用者家目錄下的共用檔案);BUILDERFORCE_MEMORY_READONLY=1 只開放召回。語意排序需設定 Evermind 模型與分詞器,否則採詞彙排序。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Builderforce Memory,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@seanhogg/builderforce-memory-mcp
Expose @seanhogg/builderforce-memory to any MCP client. One token-saving
tool core over a pluggable MemoryBackend, three transports:
Technical report & peer review. This transport is reviewed in the Evermind technical report's adversarial
PEER-REVIEW.md. Note before exposing the HTTP handler publicly: theauthTokencheck is a non-constant-time string compare (timing channel) and the handler shares onebackendwith no per-tenant isolation — a single token reads every tenant's facts. Despite the "multi-tenant" note above, real isolation (token→namespace mapping, constant-time compare, rate limiting) is not yet implemented. Tracked asEVM-3in the Builderforce.ai Consolidated Gap Register. Resolved in v2026.6.34: the HTTP handler now uses a constant-time token compare and per-tenant namespace isolation (see the resolution addendum inPEER-REVIEW.md).
Why this saves tokens
The point of an external memory store is fetch-on-demand instead of pinning
your whole memory file into every prompt. That only pays off if recall is
selective, so the caps are enforced server-side in tools.ts:
memory_recallreturns a ranked top-K (default 5, hard-capped), never the store.- Each entry's content is truncated (default 500 chars) before it hits context.
- There is no "return everything" tool — a dump-all is more expensive than inlining.
memory_compactshrinks a fact the local Evermind has already ABSORBED down to a one-line pointer stub, so it stops filling context. It is lossless: a recall probe must pass first, and the original is archived (recall still returns it) — see below. It writes through the live store, which keeps memory and the on-disk snapshot in agreement.- Recall ranks by hybrid fusion (BM25 ⊕ optional CPU SSM embedding, RRF, MMR) and then
weights by importance (×(0.5+importance)) and a 90-day half-life recency decay —
createLocalMemoryStoreBackend({ ranking: false })turns the signals off.
Tool descriptions are prescriptive ("call this before answering when…") because recent Claude models reach for tools more conservatively; the trigger condition in the description is what drives should-call rate. Pair this with prompt caching (keep the tool set identical across tenants so the cached prefix survives) and context editing (prune stale recalled facts) for the full win.
The seam
Everything is written against MemoryBackend:
Ship the local MemoryStoreBackend (IndexedDB via @seanhogg/builderforce-memory) today;
drop in a networked builderforce.ai adapter later with zero changes to tools
or transports.
Quick start — in-process with the Claude Agent SDK
The snapshot is shared — the server watches it
With persistFile set, the store lives in memory and the JSON snapshot is the source of
truth across process lifetimes. Other processes edit that file too (the BuilderForce VS
Code extension rewrites absorbed entries to stubs in place), so before every operation the
backend stats the file and re-hydrates from disk when it changed underneath — otherwise
this server, still holding the pre-edit bodies, would re-snapshot over that work on its next
write. Its own writes are stamped (mtime + size + content hash) the moment they land, so the
steady-state cost is one stat and there is no write-loop.
SSM-embedding recall — including on a headless host (no GPU)
With no model configured the local backend ranks recall lexically (BM25). Point it
at an Evermind checkpoint and the ordering becomes the SSM embedding's cosine ranking
fused with the lexical one (Reciprocal Rank Fusion — dense ⊕ sparse, so exact
tokens like identifiers and error codes are still caught). Every memory_recall
result names the ranker it used, so a degrade to lexical is never silent:
The stdio/HTTP servers do not need a GPU for this. EvermindLM is a pure-CPU
model and EvermindLM.embed() mean-pools + L2-normalises the same hidden state the
GPU HybridMambaModel.embed() does, to the same contract. Configure it with:
Vectors are cached across process lifetimes (stamped with the model's fingerprint, so an adapted checkpoint invalidates them), because a per-session subprocess that re-embedded the whole store on its first recall would cost more than the lexical ranking it replaces.
In-process hosts pass an embedder directly — reuse an already-loaded GPU Evermind runtime rather than standing up a second model:
Either way, recall quality improves automatically as that model is adapted/distilled.
Experience — what Evermind has done (opt-in)
Facts are one kind of learned item; experience is another. An episode is a
recorded demonstration (a program and the UI steps a person took in it), a skill is
what Train Once compiles from one (typed values become parameters, secrets never stored,
irreversible clicks gated for approval), and a run is one execution with its audit
trail. The domain lives in @seanhogg/builderforce-memory-engine; this server keeps it
durable and exposes it.
Set BUILDERFORCE_MEMORY_EXPERIENCE=1 to register the tools (Synapse does). Off by
default, so ordinary coding-agent installs never carry them in their tool list.
Stored beside the memory snapshot as experience.json (shared across processes exactly
like memory.json) plus episodes/. Never served to a token-selected tenant of the
HTTP handler.
One-shot install into any MCP host (not just Claude)
Writes the stdio server entry into each host's own config, idempotently and with
.bak backups. Supported hosts: Claude Code, Claude Desktop, Cursor, Windsurf,
VS Code, Cline, Gemini CLI, Codex CLI. Every agent points at one shared store
(resolveMemoryFile(): ~/.builderforce-memory/memory.json, or the legacy
~/.claude/builderforce-memory/memory.json when that is where the live store is; override
with --memory-file / BUILDERFORCE_MEMORY_FILE; the hook script resolves the same way),
so a fact remembered in one agent is recalled in another. --readonly drops the
write tools; --local=<dist/bin/stdio.js> runs a checkout for development.
The same launch spec is exported for programmatic use:
buildServerSpec() / installMemoryServer() (see src/install/).
Claude Code: the self-driving "memory combo"
Registering the server gives Claude Code the memory tools. For Claude Code the
installer ALSO wires hooks so memory is self-driving instead of advisory (skip
with --no-hooks):
All four point at one generated, dependency-free hook script
(~/.claude/builderforce-memory/bfmem-hook.mjs, four modes) plus a companion
skill. Idempotent + .bak-safe. Source of truth: src/install/claude-hooks.ts
(installClaudeCombo / bfmemHookSource).
Quick start — stdio (any process / language)
Env: BUILDERFORCE_MEMORY_DB (db name), BUILDERFORCE_MEMORY_READONLY=1 (drop write tools).
Quick start — HTTP (multi-tenant)
Or mount createMemoryHttpHandler(backend, { authToken }) on your own Node/Express
server against any backend (including a future remote one).
Custom / remote backend
Implement MemoryBackend and hand it to any transport:
Compaction rules (@seanhogg/builderforce-memory-mcp/compaction)
The stub format that memory_compact writes ([absorbed→Evermind vN] <first line>) is published as a dependency-free subpath. An external compactor imports its rules from it, so its stubs are byte-identical to the server's and neither re-stubs the other.
Lossless contract (what every compactor must do, in order):
planLosslessCompaction(candidates, { probe, version })— the structural rules (planCompaction: skip stubs, never grow an entry) plus a recall probe:probeQuestionFor(key, content)blanks the fact's most identifying token and the local Evermind must supply it (probePasses). No probe, or a wrong answer, leaves the fact uncompacted (no_probe/probe_failed).- Archive every write's
archiverow (mergeArchiveintodefaultArchiveFile(memoryFile)→memory.archive.json) — durably, before any stub is written. The archive sits outside the snapshot, is only merged into and never pruned, so it survives snapshot rewrites,forget, and the 10,000-entry cap. - Write the stubs.
Reads resolve a stub to its archived original (RecallHit.content = full text, RecallHit.stub = the stored stub). A stub with no archive is contentLost: tools and the Claude Code hooks label it CONTENT_LOST_LABEL — "(content lost — re-verify before relying on it)" — and the hooks importance-demote it. memory_restore (file on the stdio bin, inline json everywhere) brings the text back from [{key, content}] or the Evermind coordinator's [{id, text}] mem: dump: matched by key (an id loses its mem: prefix), else uniquely by first line against the stub's pointer; the text is archived beside the stub, so the token saving stays.
Every overwrite of a shared store file (SharedJsonFile: the snapshot, the archive, experience.json) first rotates the previous version into <file>.bak.1 … .bak.3.
Dependencies
@modelcontextprotocol/sdk + zod are hard deps. @anthropic-ai/claude-agent-sdk
(SDK transport), @seanhogg/builderforce-memory + fake-indexeddb (local backend) are
optional peers, imported indirectly — install only what your transport/backend
needs.
來源:packages/memory-mcp/README.md,提交 bec4fb1
工具
0版本歷史
22- v2026.10.80最新Nov 11, 2026
- v2026.10.60Nov 8, 2026
- v2026.10.56Nov 8, 2026
- v2026.10.55Nov 8, 2026
- v2026.10.48Nov 7, 2026
- v2026.10.45Nov 7, 2026
- v2026.10.40Nov 5, 2026
- v2026.10.39Nov 4, 2026
- v2026.10.38Nov 3, 2026
- v2026.10.37Nov 1, 2026
- v2026.10.36Oct 31, 2026
- v2026.10.35Oct 29, 2026
- v2026.10.26Oct 25, 2026
- v2026.10.24Oct 25, 2026
- v2026.10.23Oct 23, 2026
- v2026.10.3Oct 21, 2026
- v2026.9.34Oct 17, 2026
- v2026.9.33Sep 30, 2026
- v2026.9.32Sep 29, 2026
- v2026.9.31Sep 29, 2026
- v2026.9.30Sep 28, 2026
- v2026.9.29Sep 27, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。
其他 Memory 整合

Memory.fit
fit.memory官方發布者
託管式 Memory.fit 伺服器,讓 AI 讀取你的訓練、睡眠、恢復與飲食資料,並寫回每週計畫、每日目標和飲食計畫。
pg.ddx.io: the PostgreSQL community's memory
io.ddx.pg官方發布者
pg.ddx.io: the PostgreSQL community's memory 的託管 MCP 服務,由 pg.ddx.io 發布;無需登入;Streamable HTTP;29 個工具。
var.gg Naming Memory
gg.var官方發布者
遠端 MCP 伺服器,可依領域概念推薦並檢索韓、日、中、越、英多語言的程式識別字名稱,並提供 ERD 結構查詢。

Memoria — Deterministic AI Memory & Code Intelligence MCP
由 GitHub 帳號 kolivritech 發布
遠端 MCP 伺服器,為 AI 程式開發助理提供確定性的長期記憶與程式碼智慧工具,召回過程不消耗 LLM token。

thron-memory
由 GitHub 帳號 jacobbarglof 發布
為所有支援 MCP 的 AI 應用提供一份共用的私有記憶,以純文字筆記頁形式供助理搜尋、讀取和更新。