80 个 AI 智能体仍可能整晚都在互相覆盖对方的修复 智能体 A 修复了一个函数。智能体 B 从旧版本开始工作,把它覆盖了。智能体 C 测试的东西,等结果返回时已经不存在了 三者都可以报告成功。但最终分支仍然必须能正常运行 终端会分别统计提交的工作和保留的工作。每一项被丢弃或覆盖的改动都应该附上原因 在增加下一个工作智能体之前,我会跟踪五件事: → 每个可写区域归哪个任务负责 → 每个补丁基于哪个版本开始修改 → 哪些地方的编辑发生重叠,或替换了先前的修复 → 集成后哪些检查仍然通过 → 每个经过验证的结果花了多少钱 并行运行 Claude Code 会话时,使用独立的工作树,避免工作智能体编辑同一批工作文件。给每个智能体划定明确的任务范围,并明确共享接口的改动。各分支仍然需要集成到一起进行测试 当两个补丁存在分歧时,把冲突交回给明确指定的负责人。不要让最后写入的那个智能体悄无声息地决定最终行为 我会使用这样的指令: “将这个功能拆分成各自有独立负责人的编辑任务。记录每个工作智能体的基础版本。返回差异和验证凭据。标记重叠的改动和过时的结果。合并前测试集成后的候选版本。报告提交了什么、保留了什么、拒绝了什么,以及原因。” 在扩大智能体集群规模之前,回放一个已完成的任务。检查通过测试的那项修复是否仍然存在于最终分支中。
看原文
80 AI AGENTS CAN STILL SPEND THE NIGHT OVERWRITING EACH OTHER’S FIXES Agent A fixes a function. Agent B started from the old version and writes over it. Agent C tests something that no longer exists by the time its result comes back All three can report success. The final branch still has to work The terminal counts submitted work and kept work separately. Every discarded or overwritten change should have a reason attached I’d track five things before adding another worker: → which job owns each writable area → which revision every patch started from → where edits overlap or replace earlier fixes → which checks still pass after integration → how much was spent per verified result For parallel Claude Code sessions, use separate worktrees so workers aren’t editing the same working files. Give each one a bounded assignment and make shared interface changes explicit. The branches still need to be integrated and tested together When two patches disagree, route the conflict back to a named owner. Don’t let whichever agent writes last silently decide the behavior The instruction I’d use: “Split this feature into independently owned edits. Record the base revision for each worker. Return a diff and verification receipts. Flag overlapping changes and stale results. Test the integrated candidate before merging. Report what was submitted, what was retained, what was rejected and why.” Before scaling the swarm, replay one completed job. Check whether the fix that passed its test is still present in the final branch.