MM
API Documentation
Loading...
Searching...
No Matches
UE MM 开发流水线

最后更新:2026-05-02

仓库

Agent 分工

Agent Profile 模型 职责
大总管 default glm-5.1 需求讨论、设计文档、中央调度
game-main game-main deepseek-v4-flash 任务拆解、生成 codex exec prompt
operator operator deepseek-v4-flash codex 执行、git 操作
techlead techlead deepseek-v4-pro 代码审核
xie xie glm-5.1 剧情文案(独立,不走流水线)

流水线

你 ←聊天→ 【大总管】
├ 1. 讨论需求,确认方向
├ 2. 输出设计文档
↓ terminal("game-main chat -q '...'")
【game-main】
├ 3. 拆解为子任务
├ 4. 为每个子任务生成 codex exec prompt
├ 5. 排列依赖关系
↓ terminal("operator chat -q '...'")
【operator】
├ 6. codex exec --full-auto(worktree 隔离)
├ 7. 收集输出 / diff
↓ terminal("techlead chat -q '...'")
【techlead】
├ 8. 审核代码质量、架构、安全性
├ ✅ 通过 → operator 执行 git commit / merge
└ ❌ 打回 → game-main 重写 prompt → 重来(最多3次)
大总管汇报结果

调度方式

**中央调度**:大总管通过 terminal("<profile> chat -q '...'") 依次调用各 profile。

用户全程只跟大总管对话。

Codex 执行策略

  • 使用 codex exec --full-auto one-shot 模式
  • 每个子任务一个 git worktree 隔离(/tmp/mm-task-N/
  • operator 用 process(action="wait") 阻塞等待 codex 完成
  • terminal timeout 上限 600 秒,任务粒度需控制在 10 分钟内
  • 可并行执行无依赖的子任务

审核打回机制

  • techlead 打回时必须附带具体修改意见
  • game-main 拿到意见后调整 prompt 重新生成
  • 单个子任务最大重试 3 次
  • 超过 3 次报给用户决策

Git 策略

  • 主分支:main
  • 功能分支:feature/<任务名>
  • operator 负责:创建分支 → 提交代码 → 合并到 main → 推送远程
  • 每个 codex 任务对应一次 commit,commit message 格式:feat: <简述>

xie(独立)

剧情文案工作直接与 xie 对话,不经过上述流水线。产出物通过大总管整合到项目中。