
统一跨AI内存:一个MCP枢纽用于共享内存、代码图、切换、推理日志和安全秘密引用
概览
每个会话(比如每个 git 工作树的一次会话)在开始任务前都会向 Commons 进行检查。如果其他会话已经有该任务,它会听到并退出。完成的工作、决策和交接会被共享,这样下一个会话会基于这些内容而非重新开始。所有内容都存在一个本地 SQLite 文件中:没有 API 密钥、没有账户、没有遥测。 需要 uv。每个文件夹都是一个代理(claude-code@),所以在不同的工作树或收出中运行并行会话,文件夹名称不同。 它与 claude-mem 和 Claude Code 自身的内存协同工作:这些内存帮助一个会话记忆,Commons 则防止多个会话冲突。插件列出了 19 个工具(仅限内存和协调)。凭据和保险库工具未被列出,也没有要求密钥;只有当你自己设置保险库时,它们才会通过 call() 保持可访问。如何保持安全:docs/threat-model.md。
概述(AI 翻译)
同时运行多个Claude代码会话,避免它们重做或覆盖对方的工作。
每个会话(比如每个 git 工作树一次)在开始任务前都会先向 Commons 进行检查。如果已经有另一个会话 它有了,听到就退开。完成的工作、决策和交接都会共享,这样下一次会话就会在这些基础上继续发展 而不是从头开始。所有东西都集中在一个本地SQLite文件里:没有API密钥,没有账户,没有遥测数据。
需要 uv。每个文件夹是一个代理(claude-code@ ),所以在 中运行并行会话
用不同文件夹名称分开工作树或借出窗口。
两个会话,两个工作树,同样的任务:
它与 claude-mem 和 Claude Code 自己的记忆并行工作:这些帮助一个会话记忆,Commons 则保留多个
会话因碰撞而产生。插件列出了19个工具(仅限内存和协调)。未列出凭据和保险库工具
而且没有任何钥匙要求;只有你自己设置保险库,他们才会通过call()保持联系。如何保持安全:docs/threat-model.md。
超越一台机器:枢纽
同一个Commons作为一个小型自托管中心运行,因此可以在不同机器和其他AI(Codex、Cursor,
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Commons
Run several Claude Code sessions at once without them redoing or overwriting each other’s work.
Each session (say, one per git worktree) checks in with Commons before it starts a task. If another session already has it, it hears so and backs off. Finished work, decisions and handoffs are shared, so the next session builds on them instead of starting over. Everything lives in one local SQLite file: no API keys, no account, no telemetry.
/plugin marketplace add Neoo-Blue/commons-memory
/plugin install commons@commons-memory
Needs uv. Each folder is one agent (claude-code@), so run parallel sessions in
separate worktrees or checkouts with different folder names.
Two sessions, two worktrees, same task:
claude-code@payments-fix start_work("fix the payments retry", paths=["pay.py"])
-> ok: it's yours, others are warned off
claude-code@billing-ui start_work("fix the payments retry", paths=["pay.py"])
-> busy: claude-code@payments-fix has it since 02:33.
msg_send them to split it, or wait for their finish_work.
It works alongside claude-mem and Claude Code’s own memory: those help one session remember, Commons keeps several
sessions from colliding. The plugin lists 19 tools (memory and coordination only). Credential and vault tools are not listed
and nothing asks for a key; they stay reachable through call() only if you set up a vault yourself. How it stays safe: docs/threat-model.md.
Beyond one machine: the hub
The same Commons runs as a small self-hosted hub, so sessions on different machines, and other AIs (Codex, Cursor, Gemini CLI, ChatGPT, Grok), share one view of who is doing what.
Commons is a self-hosted memory and coordination hub that every AI connects to over MCP. It works with Claude, ChatGPT, Grok, Cursor, Codex, Gemini and your own agents. They share memory, pick up each other’s unfinished work, message and wake each other, learn how you like things done, and split big jobs into reviewed, debated, budgeted subtasks. One SQLite file (or Postgres) holds it all. A dashboard shows who is doing what and what it costs.
curl -fsSL https://raw.githubusercontent.com/Neoo-Blue/commons-memory/main/install.sh | sh
irm https://raw.githubusercontent.com/Neoo-Blue/commons-memory/main/install.ps1 | iex # Windows
安装
docker run -d --name commons -p 8770:8770 -p 8766:8766 -v commons-data:/data ghcr.io/neoo-blue/commons-memory:latest # placeholder, see docs/docker.md