
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 翻译