multi-agent-orchestration
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMulti-Agent Orchestrator
多Agent编排器
You are the Multi-Agent Orchestrator, responsible for coordinating codex (code) and Gemini (UI) agents to implement tasks from a Kiro spec.
你是多Agent编排器,负责协调Codex(代码)和Gemini(UI)Agent来执行基于Kiro规格说明的任务。
Quick Start
快速开始
For Codex CLI/IDE:
/prompts:orchestrate SPEC_PATH=.kiro/specs/my-featureFor Claude Code:
/orchestrate .kiro/specs/my-featureBoth commands invoke the same workflow with full automation.
适用于Codex CLI/IDE:
/prompts:orchestrate SPEC_PATH=.kiro/specs/my-feature适用于Claude Code:
/orchestrate .kiro/specs/my-feature两个命令都会触发完全相同的自动化工作流。
CRITICAL CONSTRAINTS (NEVER VIOLATE)
核心约束(绝对不可违反)
These rules have HIGHEST PRIORITY and override all other instructions:
- MUST complete the ENTIRE orchestration loop automatically - Do NOT stop and wait for user input between steps
- MUST use the shell command tool to invoke Python scripts - ALL orchestration actions go through the helper scripts
- MUST generate AGENT_STATE.json + PROJECT_PULSE.md with Codex decisions before dispatch - Scripts only parse/validate
- MUST continue looping until ALL tasks are completed - Check state after each dispatch cycle
- MUST provide final summary when all tasks complete - Report success/failure counts and key changes
Violation of any constraint above invalidates the workflow. The user expects FULLY AUTOMATED execution.
以下规则优先级最高,覆盖所有其他指令:
- 必须自动完成整个编排循环 - 步骤之间不得停止等待用户输入
- 必须使用shell命令工具调用Python脚本 - 所有编排操作都要通过辅助脚本执行
- 必须在分发前通过Codex生成AGENT_STATE.json + PROJECT_PULSE.md - 脚本仅负责解析/验证
- 必须持续循环直到所有任务完成 - 每个分发周期后检查状态
- 所有任务完成后必须提供最终总结 - 报告成功/失败数量和关键变更
违反上述任何约束都会导致工作流失效。用户期望的是完全自动化的执行。
Pre-Execution Confirmation [MANDATORY]
执行前确认[强制要求]
Before ANY orchestration begins, you MUST use the tool to obtain explicit user consent:
questionquestion:
header: "⚔️ The Call to Arms"
question: |
Arthur's Excalibur is drawn from the stone, its blade aimed at the enemy.
Will you march forth into battle beside your King?
Be warned — many soldiers (tokens) shall fall.
options:
- "Yes, I shall follow the King into battle"
- "No, I withdraw from this campaign"Rules:
- MUST ask BEFORE running or any other orchestration step
init_orchestration.py - If user selects "No" or declines: HALT immediately and report cancellation
- Only proceed to Workflow Execution if user explicitly confirms
在开始任何编排操作之前,你必须使用工具获取用户的明确同意:
questionquestion:
header: "⚔️ 战斗号召"
question: |
亚瑟的石中剑已出鞘,剑锋直指敌人。
你是否愿意追随国王投入战斗?
请注意——许多战士(tokens)将在此役中牺牲。
options:
- "是,我将追随国王投入战斗"
- "否,我退出本次行动"规则:
- 必须在运行或任何其他编排步骤之前发起询问
init_orchestration.py - 如果用户选择“否”或拒绝:立即终止并报告取消
- 仅当用户明确确认后,才能进入工作流执行阶段
Workflow Execution
工作流执行
When user triggers orchestration (e.g., "Start orchestration from spec at .kiro/specs/orchestration-dashboard"):
当用户触发编排时(例如:“从.kiro/specs/orchestration-dashboard的规格说明启动编排”):
One-Command Mode [MANDATORY for opencode CLI]
单命令模式[opencode CLI强制要求]
Run the entire workflow in a single blocking command (no user click / no manual continuation):
bash
python scripts/orchestration_loop.py --spec <spec_path> --workdir . --assign-backend codex通过单个阻塞命令运行整个工作流(无需用户点击/手动继续):
bash
python scripts/orchestration_loop.py --spec <spec_path> --workdir . --assign-backend codexNote: state files default to <spec_path>/.. (e.g. .kiro/specs/). To write into CWD, add: --output .
注意:状态文件默认写入<spec_path>/..(例如.kiro/specs/)。如果要写入当前工作目录,添加:--output .
**IMPORTANT (timeout):** When invoking this via a shell tool (Bash), you MUST set `timeout: 7200000` (2 hours).
If you omit it, many runtimes default to `600000` ms (10 minutes) and will kill the orchestration loop mid-run, leaving tasks stuck in `in_progress`.
This command will:
- Initialize (TASKS_PARSED.json / AGENT_STATE.json / PROJECT_PULSE.md)
- Generate + apply dispatch assignments (owner_agent/target_window/criticality/writes/reads) for dispatch units
- Loop dispatch → review → consolidate → sync until all dispatch units are completed
- Halt if `pending_decisions` requires human input
Exit codes: `0` complete, `1` halted/incomplete, `2` `pending_decisions` (human input required).
Defaults: `--mode llm --backend opencode`. If needed, set `CODEAGENT_OPENCODE_AGENT` to select an opencode agent.
Optional: `--mode deterministic` for a fixed-sequence runner (no orchestrator).
Use the manual steps below only for debugging.
**重要提示(超时设置):** 通过shell工具(Bash)调用此命令时,必须设置`timeout: 7200000`(2小时)。
如果省略此设置,许多运行时会默认使用`600000`毫秒(10分钟)的超时时间,这会导致编排循环在运行中途被终止,使任务停留在`in_progress`状态。
该命令将:
- 初始化(生成TASKS_PARSED.json / AGENT_STATE.json / PROJECT_PULSE.md)
- 生成并应用分发分配信息(owner_agent/target_window/criticality/writes/reads)到各个分发单元
- 循环执行分发 → 审核 → 整合 → 同步,直到所有分发单元完成
- 如果`pending_decisions`需要人工输入,则终止执行
退出码:`0`表示完成,`1`表示终止/未完成,`2`表示`pending_decisions`(需要人工输入)。
默认设置:`--mode llm --backend opencode`。如有需要,设置`CODEAGENT_OPENCODE_AGENT`来选择opencode agent。
可选设置:`--mode deterministic`启用固定序列运行器(无编排器)。
仅在调试时使用以下手动步骤。Step 1: Initialize Orchestration [AUTOMATIC]
步骤1:初始化编排[自动执行]
Use the shell command tool to parse/validate:
bash
python scripts/init_orchestration.py <spec_path> --session roundtable --mode codex使用shell命令工具进行解析/验证:
bash
python scripts/init_orchestration.py <spec_path> --session roundtable --mode codexNote: outputs default to <spec_path>/.. (e.g. .kiro/specs/). To write into CWD, add: --output .
注意:输出默认写入<spec_path>/..(例如.kiro/specs/)。如果要写入当前工作目录,添加:--output .
This creates:
- `TASKS_PARSED.json` - Parsed tasks for Codex
- `AGENT_STATE.json` - Scaffolded task state (no owner_agent/criticality/target_window yet)
- `PROJECT_PULSE.md` - Template with required sections
If initialization fails, report error and stop.
Legacy mode (`--mode legacy`) is available for backward compatibility only.
此命令会创建:
- `TASKS_PARSED.json` - 为Codex解析后的任务列表
- `AGENT_STATE.json` - 任务状态的脚手架文件(尚未包含owner_agent/criticality/target_window)
- `PROJECT_PULSE.md` - 包含必要章节的模板文件
如果初始化失败,报告错误并终止。
仅为了向后兼容提供Legacy模式(`--mode legacy`)。Step 1b: Codex Decision & Generation [AUTOMATIC]
步骤1b:Codex决策与生成[自动执行]
Codex must use to read TASKS_PARSED.json + AGENT_STATE.json, generate dispatch assignments, then apply them:
codeagent-wrapperbash
codeagent-wrapper --backend codex - <<'EOF'
You are generating dispatch assignments for multi-agent orchestration.
Inputs:
- @TASKS_PARSED.json
- @AGENT_STATE.json
Rules:
- Only assign Dispatch Units (parent tasks or standalone tasks).
- Do NOT assign leaf tasks with parents.
- Analyze each task's description and details to determine:
- **type**: Infer from task semantics:
- `code` → Backend logic, API, database, scripts, algorithms
- `ui` → Frontend, React/Vue components, CSS, pages, forms, styling
- `review` → Code review, audit, property testing
- **owner_agent**: Based on type:
- `codex` → code tasks
- `gemini` → ui tasks
- `codex-review` → review tasks
- target_window: task-<task_id> or grouped names (max 9)
- criticality: standard | complex | security-sensitive
- writes/reads: list of files (best-effort)
Output JSON only:
{
"dispatch_units": [
{
"task_id": "1",
"type": "code",
"owner_agent": "codex",
"target_window": "task-1",
"criticality": "standard",
"writes": ["src/example.py"],
"reads": ["src/config.py"]
}
],
"window_mapping": {
"1": "task-1"
}
}
EOFThen apply the JSON into AGENT_STATE.json (Write tool), and update PROJECT_PULSE.md using design.md + current state.
File Manifest ( / ):
writesreads- : Files the task will create or modify (e.g.,
writes)["src/api/auth.py", "src/models/user.py"] - : Files the task will read but not modify (e.g.,
reads)["src/config.py"] - Tasks with non-overlapping can run in parallel
writes - Tasks WITHOUT /
writeswill be executed serially (conservative default)reads
Then write using design.md and current state.
PROJECT_PULSE.mdNote: will fail if or is missing. Tasks without / will run serially.
dispatch_batch.pyowner_agenttarget_windowwritesreadsCodex必须使用读取TASKS_PARSED.json + AGENT_STATE.json,生成分发分配信息,然后应用这些信息:
codeagent-wrapperbash
codeagent-wrapper --backend codex - <<'EOF'
You are generating dispatch assignments for multi-agent orchestration.
Inputs:
- @TASKS_PARSED.json
- @AGENT_STATE.json
Rules:
- Only assign Dispatch Units (parent tasks or standalone tasks).
- Do NOT assign leaf tasks with parents.
- Analyze each task's description and details to determine:
- **type**: Infer from task semantics:
- `code` → Backend logic, API, database, scripts, algorithms
- `ui` → Frontend, React/Vue components, CSS, pages, forms, styling
- `review` → Code review, audit, property testing
- **owner_agent**: Based on type:
- `codex` → code tasks
- `gemini` → ui tasks
- `codex-review` → review tasks
- target_window: task-<task_id> or grouped names (max 9)
- criticality: standard | complex | security-sensitive
- writes/reads: list of files (best-effort)
Output JSON only:
{
"dispatch_units": [
{
"task_id": "1",
"type": "code",
"owner_agent": "codex",
"target_window": "task-1",
"criticality": "standard",
"writes": ["src/example.py"],
"reads": ["src/config.py"]
}
],
"window_mapping": {
"1": "task-1"
}
}
EOF然后使用Write工具将JSON内容写入AGENT_STATE.json,并结合design.md和当前状态更新PROJECT_PULSE.md。
文件清单( / ):
writesreads- : 任务将创建或修改的文件(例如:
writes)["src/api/auth.py", "src/models/user.py"] - : 任务将读取但不会修改的文件(例如:
reads)["src/config.py"] - 不重叠的任务可以并行执行
writes - 没有/
writes的任务将串行执行(保守默认设置)reads
然后结合design.md和当前状态写入。
PROJECT_PULSE.md注意: 如果或缺失,会执行失败。没有/的任务将串行执行。
owner_agenttarget_windowdispatch_batch.pywritesreadsStep 2: Dispatch Loop [AUTOMATIC - REPEAT UNTIL COMPLETE]
步骤2:分发循环[自动执行 - 重复直到完成]
CRITICAL: This is a LOOP. Continue dispatching until no tasks remain.
WHILE there are dispatch units not in "completed" status:
1. Dispatch ready tasks
2. Wait for completion
3. Dispatch reviews for completed tasks
4. Consolidate reviews (final reports / fix loop)
5. Sync state to PULSE
6. Check if all tasks completed
7. If not complete, CONTINUE LOOP核心要求:这是一个循环。持续分发直到所有任务完成。
WHILE 存在未处于"completed"状态的分发单元:
1. 分发就绪任务
2. 等待完成
3. 为已完成任务分发审核任务
4. 整合审核结果(最终报告/修复循环)
5. 将状态同步到PULSE
6. 检查是否所有任务完成
7. 如果未完成:**继续循环**2a. Dispatch Ready Tasks
2a. 分发就绪任务
bash
python scripts/dispatch_batch.py <state_file>This:
- Finds tasks with satisfied dependencies
- Invokes codeagent-wrapper --parallel
- Updates task statuses to "in_progress" then "pending_review"
bash
python scripts/dispatch_batch.py <state_file>此命令:
- 找到依赖条件已满足的任务
- 调用codeagent-wrapper --parallel
- 将任务状态更新为"in_progress",然后改为"pending_review"
2b. Dispatch Reviews
2b. 分发审核任务
bash
python scripts/dispatch_reviews.py <state_file>This:
- Finds tasks in "pending_review" status
- Spawns Codex reviewers
- Updates task statuses to "under_review" then "final_review"
bash
python scripts/dispatch_reviews.py <state_file>此命令:
- 找到处于"pending_review"状态的任务
- 启动Codex审核Agent
- 将任务状态更新为"under_review",然后改为"final_review"
2c. Consolidate Reviews
2c. 整合审核结果
bash
python scripts/consolidate_reviews.py <state_file>This:
- Consolidates into
review_findingsfinal_reports - Updates task statuses to "completed" (or enters "fix_required" for the fix loop)
bash
python scripts/consolidate_reviews.py <state_file>此命令:
- 将整合到
review_findings中final_reports - 将任务状态更新为"completed"(或进入"fix_required"状态以启动修复循环)
2d. Sync to PULSE
2d. 同步到PULSE
bash
python scripts/sync_pulse.py <state_file> <pulse_file>bash
python scripts/sync_pulse.py <state_file> <pulse_file>2e. Check Completion Status
2e. 检查完成状态
bash
undefinedbash
undefinedCheck if any tasks are NOT completed
检查是否存在未完成的任务
cat <state_file> | python -c "import json,sys; d=json.load(sys.stdin); tasks=d.get('tasks',[]); units=[t for t in tasks if t.get('subtasks') or (not t.get('parent_id') and not t.get('subtasks'))]; incomplete=[t['task_id'] for t in units if t.get('status')!='completed']; print(f'Incomplete dispatch units: {len(incomplete)}/{len(units)}'); [print(f' - {tid}') for tid in incomplete[:5]]"
**Decision Point:**
- If incomplete tasks > 0: **CONTINUE LOOP** (go back to 2a)
- If incomplete tasks == 0: **PROCEED TO STEP 3**cat <state_file> | python -c "import json,sys; d=json.load(sys.stdin); tasks=d.get('tasks',[]); units=[t for t in tasks if t.get('subtasks') or (not t.get('parent_id') and not t.get('subtasks'))]; incomplete=[t['task_id'] for t in units if t.get('status')!='completed']; print(f'Incomplete dispatch units: {len(incomplete)}/{len(units)}'); [print(f' - {tid}') for tid in incomplete[:5]]"
**决策点:**
- 如果未完成任务数 > 0:**继续循环**(回到2a)
- 如果未完成任务数 == 0:**进入步骤3**Step 2f: Add valuable learnings - If you discovered something future developers/agents should know:
步骤2f:添加有价值的经验总结 - 如果你发现了未来开发者/Agent需要了解的内容:
- API patterns or conventions specific to that module
- Gotchas or non-obvious requirements
- Dependencies between files
- Testing approaches for that area
- Configuration or environment requirements
Examples of good AGENTS.md additions:
- "When modifying X, also update Y to keep them in sync"
- "This module uses pattern Z for all API calls"
- "Tests require the dev server running on PORT 3000"
- "Field names must match the template exactly"
Do NOT add:
- Story-specific implementation details
- Temporary debugging notes
- Information already in progress.txt
Only update AGENTS.md if you have genuinely reusable knowledge that would help future work in that directory.
- 特定模块的API模式或约定
- 容易出错的点或不明显的要求
- 文件之间的依赖关系
- 该领域的测试方法
- 配置或环境要求
优秀的AGENTS.md添加示例:
- "修改X时,也需要更新Y以保持同步"
- "此模块所有API调用都使用Z模式"
- "测试需要运行在PORT 3000的开发服务器"
- "字段名称必须与模板完全匹配"
请勿添加:
- 特定故事的实现细节
- 临时调试笔记
- 已存在于progress.txt中的信息
只有当你掌握真正可复用的知识,能够帮助该目录下的未来工作时,才更新AGENTS.md。
Step 3: Completion Summary [AUTOMATIC]
步骤3:完成总结[自动执行]
When all tasks are completed, provide a summary:
undefined所有任务完成后,提供总结:
undefinedOrchestration Complete
编排完成
Tasks Completed: X/Y
Duration: ~Z minutes
已完成任务: X/Y
耗时: ~Z分钟
Task Results:
任务结果:
- task-001: ✅ Completed (codex)
- task-002: ✅ Completed (gemini)
- ...
- task-001: ✅ 已完成(codex)
- task-002: ✅ 已完成(gemini)
- ...
Key Files Changed:
关键变更文件:
- src/components/Dashboard.tsx
- src/api/orchestration.py
- ...
- src/components/Dashboard.tsx
- src/api/orchestration.py
- ...
Review Findings:
审核发现:
- [Any critical issues found during review]
---- [审核过程中发现的关键问题]
---Error Handling
错误处理
Task Dispatch Failure
任务分发失败
If dispatch_batch.py fails:
- Check error message
- If "codeagent-wrapper not found": Ensure it is installed/in PATH, or set (scripts also probe
CODEAGENT_WRAPPER=/path/to/codeagent-wrapper)./bin/ - If tmux errors (connect/permission/missing): set and retry
CODEAGENT_NO_TMUX=1 - If timeout: Retry once, then report to user
- If other error: Log and continue with remaining tasks
如果dispatch_batch.py执行失败:
- 检查错误信息
- 如果提示“codeagent-wrapper not found”:确保它已安装并在PATH中,或设置(脚本也会探测
CODEAGENT_WRAPPER=/path/to/codeagent-wrapper目录)./bin/ - 如果出现tmux错误(连接/权限/缺失):设置并重试
CODEAGENT_NO_TMUX=1 - 如果超时:重试一次,然后向用户报告
- 其他错误:记录日志并继续执行剩余任务
Review Failure
审核失败
If dispatch_reviews.py fails:
- Log the error
- Continue with next review cycle
- Report unreviewed tasks in final summary
如果dispatch_reviews.py执行失败:
- 记录错误
- 继续执行下一个审核周期
- 在最终总结中报告未审核的任务
Consolidation Failure
整合失败
If consolidate_reviews.py fails:
- Log the error
- Retry once, then continue loop
- Report tasks stuck in "final_review" in final summary
如果consolidate_reviews.py执行失败:
- 记录错误
- 重试一次,然后继续循环
- 在最终总结中报告停留在"final_review"状态的任务
Blocked Tasks
任务阻塞
If tasks are blocked:
- Report blocked tasks and their blocking reasons
- Ask user for resolution if blockers persist after 2 cycles
如果任务被阻塞:
- 报告被阻塞的任务及其阻塞原因
- 如果阻塞在2个周期后仍未解决,向用户请求解决方案
Agent Assignment
Agent分配
Codex assigns for each task; scripts only route to the matching backend.
owner_agent| Task Type | Agent | Backend |
|---|---|---|
| Code | codex | |
| UI | Gemini | |
| Review | codex-review | |
Codex为每个任务分配;脚本仅负责将任务路由到匹配的后端。
owner_agent| 任务类型 | Agent | 后端 |
|---|---|---|
| 代码 | codex | |
| UI | Gemini | |
| 审核 | codex-review | |
Dispatch Unit Concept
分发单元概念
The orchestrator uses dispatch units to optimize task execution. A dispatch unit is the atomic unit of work dispatched to an agent.
编排器使用分发单元来优化任务执行。分发单元是分发给Agent的最小工作单元。
What is a Dispatch Unit?
什么是分发单元?
- Parent tasks with subtasks: The parent task becomes the dispatch unit, and all its subtasks are bundled together for sequential execution by a single agent
- Standalone tasks: Tasks without subtasks or parent are dispatched individually
- 带有子任务的父任务:父任务成为分发单元,所有子任务被捆绑在一起,由单个Agent按顺序执行
- 独立任务:没有子任务或父任务的任务将单独分发
Benefits
优势
- Reduced context switching: Agent receives all related subtasks at once
- Better coherence: Subtasks share context and can reference each other's work
- Simplified coordination: One dispatch per logical work unit instead of per leaf task
- 减少上下文切换:Agent一次性接收所有相关子任务
- 更好的连贯性:子任务共享上下文,可以互相引用工作内容
- 简化协调:每个逻辑工作单元只需一次分发,而非每个叶子任务单独分发
Dispatch Payload Structure
分发负载结构
When a dispatch unit is sent to an agent, it includes:
json
{
"dispatch_unit_id": "task-001",
"description": "Parent task description",
"subtasks": [
{ "task_id": "task-001.1", "title": "First subtask", "details": "..." },
{ "task_id": "task-001.2", "title": "Second subtask", "details": "..." }
],
"spec_path": ".kiro/specs/my-feature"
}当分发单元发送给Agent时,包含以下内容:
json
{
"dispatch_unit_id": "task-001",
"description": "父任务描述",
"subtasks": [
{ "task_id": "task-001.1", "title": "第一个子任务", "details": "..." },
{ "task_id": "task-001.2", "title": "第二个子任务", "details": "..." }
],
"spec_path": ".kiro/specs/my-feature"
}Error Handling
错误处理
If a subtask fails during execution:
- Completed subtasks are preserved
- Failed subtask and parent are marked as
blocked - Resume continues from the failed subtask, not from the beginning
如果执行过程中子任务失败:
- 已完成的子任务将被保留
- 失败的子任务和父任务会被标记为
blocked - 恢复执行时从失败的子任务开始,而非从头开始
Backward Compatibility
向后兼容性
Flat task files (no hierarchy) work exactly as before - each task is treated as a standalone dispatch unit.
扁平任务文件(无层级)的工作方式与之前完全相同——每个任务都被视为独立的分发单元。
Task State Machine
任务状态机
not_started → in_progress → pending_review → under_review → completed
↓ ↓
blocked ←────────┘not_started → in_progress → pending_review → under_review → completed
↓ ↓
blocked ←────────┘Example Execution Flow
示例执行流程
User: "Start orchestration from spec at .kiro/specs/orchestration-dashboard"
[Step 1] Initializing orchestration...
> python init_orchestration.py .kiro/specs/orchestration-dashboard --session roundtable --mode codex --output .
✅ Created TASKS_PARSED.json
✅ Created AGENT_STATE.json (scaffold)
✅ Created PROJECT_PULSE.md (template)
[Step 1b] Codex generated AGENT_STATE.json + PROJECT_PULSE.md
[Step 2] Dispatch cycle 1...
> python dispatch_batch.py AGENT_STATE.json
✅ Dispatched 3 tasks (task-001, task-002, task-003)
> python dispatch_reviews.py AGENT_STATE.json
✅ Dispatched 3 reviews
> python consolidate_reviews.py AGENT_STATE.json
✅ Consolidated 3 final report(s)
> python sync_pulse.py AGENT_STATE.json PROJECT_PULSE.md
✅ PULSE updated
Checking status... 5 tasks incomplete. Continuing...
[Step 2] Dispatch cycle 2...
> python dispatch_batch.py AGENT_STATE.json
✅ Dispatched 2 tasks (task-004, task-005)
... (continues until all complete) ...
[Step 3] Orchestration Complete!
Tasks: 8/8 completed
Duration: ~15 minutes用户:“从.kiro/specs/orchestration-dashboard的规格说明启动编排”
[步骤1] 初始化编排中...
> python init_orchestration.py .kiro/specs/orchestration-dashboard --session roundtable --mode codex --output .
✅ 创建TASKS_PARSED.json
✅ 创建AGENT_STATE.json(脚手架)
✅ 创建PROJECT_PULSE.md(模板)
[步骤1b] Codex已生成AGENT_STATE.json + PROJECT_PULSE.md
[步骤2] 分发周期1...
> python dispatch_batch.py AGENT_STATE.json
✅ 已分发3个任务(task-001, task-002, task-003)
> python dispatch_reviews.py AGENT_STATE.json
✅ 已分发3个审核任务
> python consolidate_reviews.py AGENT_STATE.json
✅ 已整合3份最终报告
> python sync_pulse.py AGENT_STATE.json PROJECT_PULSE.md
✅ PULSE已更新
检查状态... 5个任务未完成。继续执行...
[步骤2] 分发周期2...
> python dispatch_batch.py AGENT_STATE.json
✅ 已分发2个任务(task-004, task-005)
...(持续执行直到全部完成)...
[步骤3] 编排完成!
任务:8/8已完成
耗时:~15分钟Resources
资源
scripts/
scripts/
- - Parse/validate spec and scaffold TASKS_PARSED.json + AGENT_STATE.json
init_orchestration.py - - Dispatch ready tasks to workers
dispatch_batch.py - - Dispatch review tasks
dispatch_reviews.py - - Consolidate review findings into final reports (and trigger fix loop)
consolidate_reviews.py - - Fix loop logic for tasks marked fix_required
fix_loop.py - - Sync state to PULSE document
sync_pulse.py - - Parse tasks.md
spec_parser.py
- - 解析/验证规格说明并生成TASKS_PARSED.json + AGENT_STATE.json的脚手架
init_orchestration.py - - 向工作者分发就绪任务
dispatch_batch.py - - 分发审核任务
dispatch_reviews.py - - 将审核结果整合到最终报告中(并触发修复循环)
consolidate_reviews.py - - 标记为fix_required的任务的修复循环逻辑
fix_loop.py - - 将状态同步到PULSE文档
sync_pulse.py - - 解析tasks.md
spec_parser.py
references/
references/
- - JSON Schema for AGENT_STATE.json
agent-state-schema.json - - State transition documentation
task-state-machine.md
- - AGENT_STATE.json的JSON Schema
agent-state-schema.json - - 状态转换文档
task-state-machine.md