Provena Agent Memory

io.github.admiralpunk由 GitHub 账号 admiralpunk 发布v0.1.15更新于 Oct 24, 2026

Self-hosted MCP memory for AI agents: persistent context with evidence-backed claims.

发布方自己的服务:Memory.fit

已验证STDIO仅桌面知识与记忆AI 与机器学习

概览

AI 生成的概览

为 AI 编程代理提供跨会话的持久记忆,每条结论都可追溯到来源事件与作用域。

可以做什么
Provena 是自托管的记忆服务,其 MCP 连接器为 Codex、Claude Code、Gemini CLI 等客户端提供跨会话上下文。它把对话轮次记录为仅追加的事件,并将派生结论单独保存,每条结论关联来源证据、审核状态、有效期以及项目或分支作用域。memory_explain 工具可把结论追溯到来源、审核历史、冲突和已记录的检索。Next.js 控制台供人工检查与审核候选事实。
适用场景
当代理需要跨会话记住事实,并且你希望审计它为何相信这些事实(例如识别过时或不可信的上下文)时,适合使用。它适合能够自行运行服务、并希望获得来源可追溯性而非不透明记忆库的团队。
运行要求
需要 Python 3.11+、pipx、Docker Compose 以及受支持的代理宿主。quickstart 会启动本地服务、PostgreSQL、Ollama 和控制台,并下载约 1.26 GB 的默认模型。连接已有服务时需设置 PROVENA_API_URL、PROVENA_API_KEY 和 PROVENA_SCOPE_ID。
安装前请注意
连接器需要 PROVENA_API_KEY 中的代理凭据,以及 PROVENA_SCOPE_ID 中精确的项目或分支作用域。运行 quickstart 会安装自动捕获与检索钩子,因此在该选择加入步骤之后对话会被记录。模型提取的结论仍属候选,来源权威性不代表允许执行操作。检索使用精确作用域,尚未实现分支继承。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Provena Agent Memory,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Provena logo]

Provena

Evidence-backed memory for AI agents.
Know what an agent remembers—and why.

[CI] [PyPI] [M8ven Score]

Provena is an open-source, self-hosted memory service for AI agents. Its MCP connector gives Codex, Claude Code, Gemini CLI, and other clients context across sessions. Each claim stays linked to its source event, review status, and scope, so you can inspect what an agent remembers and why.

Product demo

Watch a walkthrough of setup, cross-session recall, and the operator console:

https://github.com/user-attachments/assets/37fe219c-b678-4c6d-811d-bfdd37552628

Why provenance matters

An agent can retrieve a relevant fact that is wrong, stale, or taken from an untrusted source. Provena keeps the original evidence and the derived memory separate:

text
Event:         Alex says, "Pineapple on pizza is a crime."Claim:         Alex dislikes pineapple on pizza.Evidence:      The claim links to Alex's original words.
Later event:   Alex says, "I tried it. I owe pineapple an apology."Updated claim: Alex likes pineapple on pizza.

Provena keeps both statements, so it can explain why Alex's preference changed. Events and evidence are append-only. Claims have review status, optional validity time, and exact tenant and project or branch scope. Model-extracted claims remain candidates; source authority is separate from search relevance and never grants permission to act. memory_explain traces a claim back to its source, review history, conflicts, and recorded retrievals.

Provena is one FastAPI service backed by PostgreSQL and pgvector. MCP and host hooks capture turns and retrieve attributed context; Ollama or an optional hosted model extracts candidate facts and embeddings. The Next.js console lets a human inspect and review them. Architecture details · Decisions

Get started

You need Python 3.11+, pipx, Docker Compose, and one supported agent host. Install the connector and choose your host:

bash
pipx install provena-agent-memoryprovena quickstart codex

Use provena quickstart claude or provena quickstart gemini for those hosts. Quickstart starts the local service, PostgreSQL, Ollama, and the console; creates agent and reviewer credentials; and installs MCP plus automatic capture and retrieval hooks. It prints the console URL. Restart your agent host and review Provena under /hooks and /mcp.

The first run downloads the default models (about 1.26 GB). The local Ollama image is a digest-pinned CPU build. Installing the package alone does not record conversations; running quickstart is the opt-in step.

To check that the API and database are running:

bash
provena status

Connect to an existing service

Ask its operator for an API URL, agent API key, and project or branch scope ID. With the connector installed, run:

bash
export PROVENA_API_URL=https://memory.example.comexport PROVENA_API_KEY=paste-agent-keyexport PROVENA_SCOPE_ID=paste-scope-idprovena connect codex --install

Replace codex with claude or gemini as needed. For another MCP client, use provena connect generic to print its configuration. See the connector guide for manual MCP setup and console access.

Other setup paths

Current limits

Retrieval uses an exact scope; branch inheritance is not implemented. Provena records which claims were delivered to an agent, but cannot prove that a later action was caused by them. More on current guarantees and limits.

Contributing

Start with a good first issue or read CONTRIBUTING.md. See SECURITY.md for private vulnerability reporting and CHANGELOG.md for release history.

来源:README.md,提交 7e7eadb

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

8
  1. v0.1.15最新Sep 29, 2026
  2. v0.1.13Sep 27, 2026
  3. v0.1.12Sep 27, 2026
  4. v0.1.11Sep 25, 2026
  5. v0.1.10Sep 25, 2026
  6. v0.1.8Sep 23, 2026
  7. v0.1.7Sep 23, 2026
  8. v0.1.4Sep 22, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Memory 集成