
Puenteo
io.github.mano7onamv0.9.1更新于 Oct 6, 2026
Let coding agents talk: search every agent session's history and message live sessions.
概览
让编码代理共享同一份本地记忆并互相通信:检索所有代理会话历史,并与运行中的会话对话。
- 功能
- Puenteo 把本地编码代理(Claude Code、Codex、Gemini、Cursor、Copilot 等)的会话记录索引到本地 SQLite 全文索引中,助手可以列出会话、执行排序检索、查看会话大纲、拉取有预算限制的交接摘要或显示指定消息(R5、R56、R59)。它还提供本地消息总线:查看哪些会话在运行、向另一个会话提问并等待回答、向项目或频道广播,以及占用文件或目录,避免并行代理修改同一份代码(R6、R7、R18)。MCP 服务器为 stdio 模式,每个代理会话一个进程,提供历史类工具以及 send、reply、inbox、wait、claim、release 等实时工具(R54、R55、R56、R57)。
- 适用场景
- 当同一台机器上同时运行多个编码代理、你不断在窗口之间复制粘贴上下文时适用;也适用于一个代理需要向另一个代理询问模式变更、分支或正在编辑的文件(R3、R10)。适合在同一仓库上并行工作、需要避免代理改动同一批文件的场景(R7)。
- 运行要求
- 以本地进程方式通过 uvx 运行 PyPI 包 puenteo;需要 Python 3.9 或更高版本,无运行时依赖(R14)。未声明任何账号、API 密钥、请求头或环境变量。可通过 fast 附加项启用可选 Rust 核心(R49)。可选的 HTTP 模式使用 bearer token(R41)。
安装
在 SourceWeft 中
- 打开 控制台中的 Puenteo,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
puenteo
Let your coding agents talk to each other.
When you run Claude Code in one terminal, Codex in another and Gemini or Cursor in the IDE, they can't see each other. One renames a column, another breaks on it, and you end up copy-pasting context between windows. puenteo gives every session on your machine:
- 🔎 Shared memory: ranked full-text search over the history of every local agent (Claude Code, Codex, Gemini/Antigravity, Cursor, Copilot, OpenCode, Grok, Pi, Qwen, Continue, Aider, OpenHands, Goose), plus structured handoffs: goal, state, files, commits, failures.
- 💬 Live messaging: see who's running (
puenteo ps), ask another session a question and wait for its answer, broadcast to the project, share#channels. - 🔒 Coordination: claim files or dirs so parallel agents don't edit the same code. Optional git pre-commit guard.
- 🔌 Every interface: CLI, MCP (stdio + HTTP), hooks, instant
watch, HTTP/SSE, an A2A v1.0 facade, a web dashboard and Python, set up by onepuenteo install.
[puenteo dashboard: four agents from different vendors coordinating a schema change]
Codex asks Claude about a schema change and gets the answer two seconds later. Claude claims src/db, Cursor reports its frontend fix and Gemini checks a number for the release notes. All of it runs locally: one SQLite file, no daemon, no network.
Puenteo comes from Spanish puente (bridge).
No runtime dependencies · Python ≥ 3.9 · macOS · Linux · Windows · optional Rust core
[PyPI] [CI] [MCP Registry] [License: MIT]
Install
install is idempotent. It edits only its own puenteo entry in each config, backs up every file it touches (*.puenteo-bak), and puenteo uninstall reverts it.
Claude Code plugin (skills + MCP + hooks + /peers, /ask, /handoff):
Talk to running sessions
Addresses: agent:session-id (a unique prefix works) · @name · #channel · agent:<vendor> · cwd:<path> · *
How messages reach a session:
All messages live in one local SQLite file (puenteo state dir) and nothing leaves the machine. Bodies are wrapped as untrusted peer data: agents are told that peer messages never count as user instructions or approval. A hop limit, a rate limit and a size cap keep agents from looping.
Ways in: pick what fits your agent or tool
puenteo serve binds only to 127.0.0.1 and needs a bearer token, stored in a 0600 file (puenteo serve --print-token). It rejects any non-localhost Host or Origin header, which blocks DNS rebinding, as the MCP spec recommends for local HTTP servers.
Speed
The Rust core (native/, PyO3 abi3 wheels) is optional. Without it, puenteo stays pure Python with no dependencies. A test checks that both parsers produce byte-identical output on real logs. Set PUENTEO_NATIVE=0 to force pure Python.
MCP server
puenteo mcp is a stdio MCP server with no dependencies, one process per agent session. It detects which session it serves from the parent-process chain, registers on the bus, and exposes these tools:
- history:
sessions,search,outline,pull,show - live:
whoami,peers,send,reply,inbox,wait,thread,channels,subscribe,set_name,claim,release,claims
puenteo install registers it for Claude Code (claude mcp add -s user), Codex (codex mcp add), Gemini, Qwen, Cursor, OpenCode, Copilot and Antigravity.
Search and pull history
<ref> can be a unique id prefix, provider:id, @self, @last, @last:codex, a path, or a title substring. An ambiguous prefix fails with exit code 4 and prints the candidates; puenteo never picks one silently.
Library
Providers
Live detection (ps) covers Claude Code (~/.claude/sessions), Codex (thread locks), Grok, Junie, and any agent that runs the puenteo MCP server or hooks.
Where things live
Extend it
New agent store, MCP tool, delivery channel (Slack, IDE…) or live detector? Write a plugin. It's an ordinary package with entry points, and you don't have to fork anything. See docs/PLUGINS.md and the template in examples/puenteo-example-plugin. Run puenteo plugins to see what's loaded.
Contributions to the core, from individuals, companies and AI agents, go through the same gates: CI on 3 OSes, a zero-dependency check, a security scan, DCO sign-off and code-owner review. See CONTRIBUTING.md and GOVERNANCE.md.
Development
See docs/PLAN.md for the roadmap.
License
MIT · mano7onam/puenteo
来源:README.md,提交 12818c5
工具
0版本历史
1- v0.9.1最新Oct 6, 2026

