{
  "id": 17794862,
  "title": "在多台远程服务器上并行跑 Codex：worktree 应该怎么分",
  "url": "https://urgent.news/2026/11/02/codex-worktree",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-02T12:37:21.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/edgestorage/zai-duo-tai-yuan-cheng-fu-wu-qi-shang-bing-xing-pao-codexworktree-ying-gai-zen-yao-fen-74g"
  },
  "original_language": "zh",
  "account": null,
  "summary": "并行跑 AI 任务，常见的阻碍往往不是模型能力，而是目录。 两个会话在同一个工作目录里改代码，A 刚写完的文件可能被 B 覆盖；你打开文件准备保存，界面提示版本已经过期；测试失败时，也很难判断是哪一个任务改坏的。机器一多，问题还会多一层：任务到底跑在哪台服务器、哪个目录、哪个分支？ Git worktree 能解决其中一部分问题，但它不是「把同一个目录挂到多台机器」的魔法。这篇讲清楚 TaskHandoff 里的分工方式：一台节点、一份仓库 clone、一个任务、一个 worktree，以及多节点时哪些事情不能做。 先说结论：多节点并行不是共享一个 worktree Git worktree 是 同一个仓库的独立工作目录和分支 。它让多个会话各自拥有一个目录，减少并行编辑冲突；但 worktree 仍然属于某一台机器上的某一个仓库 clone。…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}