GPTree 团队推出了开源工具 Foremerge,用于检测多个并行编程代理在同一仓库中的意图冲突1。该工具要求代理在执行编辑前发布意图声明和作用域,通过 SQLite 存储共享状态,在第二个代理发布冲突意图时返回 HIGH 等级警告1。
在大规模测试中,Foremerge 支持 98 个并行代理在同一仓库中无冲突地工作1(原计划 100 个,2 个因资源限制失败)1。工具的意图检测机制典型场景为:当 Agent A 声明"将 PaymentService 替换为 StripePaymentService",而 Agent B 声明"为 PaymentService 添加 PayPal 支持"时,系统可以识别这种冲突1。在上周构建的 76 个意图回放测试中,工具检测出 1 个冲突,审查发现盲点为类名与内部方法作用域声明的差异1。
Foremerge 以 Rust 二进制形式分发,支持快速安装,用户可通过执行 curl -fsSL https://foremerge.com/install.sh | sh 或 cargo install --locked foremerge 完成 30 秒的部署1。该工具集成 Claude Code、Codex 和 Cursor,采用 Apache-2.0 许可证开源1。
The GPTree team has released Foremerge, an open source tool designed to identify intent conflicts when multiple coding agents work simultaneously on the same repository 1. The tool operates by requiring agents to declare their intended changes and scope before making edits, with a SQLite database managing shared state across parallel operations 1.
In testing, Foremerge successfully enabled 98 parallel agents to work on the same codebase without conflicts—the team had initially aimed for 100 agents, but two failed due to resource constraints 1. When a second agent publishes an intent that conflicts with an existing one, the system returns a HIGH-level warning 1. For example, if Agent A intends to "Replace PaymentService with StripePaymentService" while Agent B plans to "Add PayPal support to PaymentService," the conflict detection mechanism flags this incompatibility 1.
The tool is distributed as a Rust binary and integrates with Claude Code, Codex, and Cursor 1. Installation takes approximately 30 seconds via curl -fsSL https://foremerge.com/install.sh | sh or through cargo install --locked foremerge 1. Foremerge is released under the Apache-2.0 license 1.
In a recent replay test of 76 intents built the previous week, the system detected one conflict, though further review revealed a potential blind spot: scope declarations differed between class names and internal methods 1.
评论
还没有评论,欢迎留下第一条。