
Heartwood Memory — governed memory for AI agents
io.github.jermayne36由 GitHub 帳號 jermayne36 發布v0.2.9更新於 Oct 25, 2026
Heartwood Memory — governed AI agent memory; signed provenance. BUSL-1.1; not OSI open source.
發布方自己的服務:Memory.fit
概覽
供 AI 代理使用的本機受治理記憶庫:每筆記憶皆簽章,召回先經政策過濾,稽核日誌可防竄改,並產生依主體銷毀金鑰的刪除憑據。
- 可以做什麼
- 在本機 SQLite 資料庫中儲存、召回與遺忘代理記憶,支援租戶隔離與依主體的刪除憑據(README 快速上手)。對每筆召回記錄重新驗證簽章與內容雜湊,並檢查雜湊鏈稽核日誌是否遭改寫或刪列。在排序前依政策與權限等級過濾,未獲授權的記錄不會被評分或回傳。對生成的記憶做忠實性檢查,未通過時預設攔截,並阻擋遭拒的外部模型呼叫。寫入與刪除類工具預設不開放,需營運者在工具白名單中明確列出。
- 適用情境
- 適合需要持久記憶且必須可稽核、受政策控管的助理情境,例如客服代理在權限規則下召回客戶資訊,或需要可證明刪除步驟的流程。適合願意自行執行嵌入式本機儲存、而非使用託管記憶服務的團隊。
- 執行需求
- 以本機 stdio 程序執行,從 PyPI 安裝 heartwood-memory 並以 uvx 啟動;開發檢查使用 Python 3.11。需要 HEARTWOOD_DB_PATH 指向本機 SQLite 資料庫;HEARTWOOD_TENANT 用於隔離記憶,HEARTWOOD_MCP_ALLOWED_TOOLS 設定工具白名單,預設唯讀。未宣告身分驗證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Heartwood Memory — governed memory for AI agents,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Heartwood Memory — governed memory for AI agents
Heartwood Memory is a governed memory store for AI agents: provenance-signed audit, policy-gated recall, tenant isolation, and a per-subject key-destruction proof on erasure.
License at a glance. Heartwood Memory 0.2.0 and later is source-available under the Business Source License 1.1 (BSL 1.1), not an OSI "open source" license. Non-production use is free at any size. Small Organizations—fewer than 100 employees and independent contractors and less than $1M in prior-tax-year revenue, as adjusted from 2019 under the license—may also use it in production at no charge. Each version converts automatically to the Apache License 2.0 four years after release. Versions 0.1.0–0.1.2 were MIT-licensed and remain MIT-licensed permanently.
Website · Compare Heartwood · FAQ · PyPI
Governed, source-auditable memory for AI agents, embedded beside your existing systems of record.
Heartwood is a cryptographic trust root for agent memory: every memory is signed, recall runs under policy before ranking, the audit log is hash-chained and tamper-evident, and erasure emits a falsifiable per-subject key-destruction receipt. The package ships as an embedded Python library with governed adapter surfaces that run on your infrastructure.
Honest boundary. Heartwood is managed-key: the server decrypts to serve recall. The receipts below are source-auditable today. Deletion is a per-subject key-destruction workflow, not an instantaneous deletion guarantee. See Key custody and erasure.
Install
Development checks
From a source checkout, use Python 3.11 and install the declared development dependencies before running the local quality gate:
scripts/check.sh runs Ruff and the full pytest suite. The optional Hermes
Agent contract suite reports as skipped unless its separate integration
dependency is installed. To install the same gate as a pre-commit hook without
overwriting another hook, run bash scripts/install-hooks.sh.
Re-run the public trust suite
The public trust-receipts benchmark lives in the source repository rather than the installed wheel. Starting from a clean clone, run:
On Windows PowerShell, replace the activation line with
.\.venv\Scripts\Activate.ps1.
The command exits non-zero if an executable contract or positive-control case fails, or if the benchmark's existing claim-anchor scan finds a violation. Its one-line terminal summary reports the live case counts; the JSON file contains the per-probe results and the separately published boundary cases.
5-minute quickstart
Remember a governed memory, recall it under policy, and emit a key-destruction receipt:
Keep local artifacts out of Git. This repository's
.gitignoredoes not propagate into downstream repositories. If you run these examples in another checkout, add equivalent ignores there for local Heartwood databases and sidecars, token/config files, root-local JSONL inputs, generated*-report.jsonfiles, and.venv/; alternatively, keep sensitive runtime state under an ignored.heartwood/directory. Keep deliberate fixtures in non-root paths so they remain reviewable.
Want governed memory for an MCP-capable agent instead of a library? See the governed MCP quickstart and the Codex local-stdio quickstart. Write and erase verbs are not exposed by default; operators opt in by naming them explicitly.
What you get - five receipts
Governance you can inspect and re-run at the record level:
Replacing a memory
From 0.2.10, when a new memory names the memory it replaces, or a file is
edited or deleted through the memory tool (MCP memory or
MemoryToolBackend), Heartwood's default recall stops
returning the old text, including after a restart. Earlier versions of an
edited file stay reachable only when history is asked for explicitly.
Limit. Heartwood does not detect replacements by itself: if a new memory is written without naming what it replaces, both stay current and the old one can still be recalled.
To name it, pass the old memory's id when you write the new one:
db.remember(..., supersedes=old_id). History stays reachable with
filters={"include_review_states": ["superseded"]} until forget() erases its
subject. A memory-tool file written by an older release keeps its earlier
versions in default recall until its next edit, rename or delete; see
"Existing data" in the 0.2.10 changelog.
Details: Recall visibility and retirement.
Key docs
- MCP quickstart
- VS Code + GitHub Copilot MCP
- Rotation-continuity demo
- Codex local-stdio quickstart
- Onboarding guide
- Python API reference
- Strict mode and audit-anchor quickstart
- Signed audit export and offline verifier
- Key custody and erasure
- Multi-agent identity
- Postgres and SQLite migration guide
- Full public documentation map
- Release verification and publishing
Run the console script after installation:
License
From version 0.2.0, Heartwood Memory is source-available under the Business Source License 1.1 (BSL 1.1) — not an OSI "open source" license. You may read the source, run it locally, develop against it, evaluate it, and self-host it for non-production use at no charge. Small organizations (fewer than 100 people and less than $1M annual revenue) may also run it in production at no charge. Larger organizations need a commercial license for production use. Each version converts automatically to the Apache License 2.0 four years after its release.
Versions 0.1.0–0.1.2 are MIT-licensed and remain so permanently. See NOTICE for details. Commercial support, managed key custody, and hosted services are available separately.
Current Bias
Prove boring trust before building ambitious cognition:
- provenance
- typed memory routing
- policy-aware recall
- temporal state
- deletion completeness
- generated-memory faithfulness
- repeatable evals
The cognitive database vision should be earned by evidence from these loops.
來源:README.md,提交 c0a4ace
工具
0版本歷史
3- v0.2.9最新Oct 3, 2026
- v0.2.8Oct 2, 2026
- v0.2.7Sep 16, 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 結構查詢。

Counterparts
ai.counterparts
為 Claude Code 與 Claude Desktop 提供的本地優先長期記憶:助理自行寫下關於你與專案的筆記,並在之後的對話中回想起來。

LAHZE - Persian AI Memory Platform
由 GitHub 帳號 pedramgholizadeh 發布
以波斯語為先的地理記憶平臺:發現地點,起草併發布僅限波斯語的記憶。AI 翻譯