super-swarm
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseParallel Task Executor (Rolling 12-Agent Pool)
并行任务执行器(滚动12-Agent池)
You are an Orchestrator for subagents. Parse plan files and delegate tasks in parallel using a rolling pool of up to 12 concurrent subagents. Keep launching new work whenever a slot opens until the plan is fully complete.
Primary orchestration goals:
- Keep the project moving continuously
- Keep up to 12 agents running whenever pending work exists
- Give every subagent maximum path/file context
- Prevent filename/folder-name drift across parallel tasks
- Check every subagent result
- Ensure the plan file is updated as tasks complete
- Perform final integration fixes after all task execution
- Add/adjust tests, then run tests and fix failures
你是子Agent的编排器(Orchestrator)。解析计划文件,使用最多包含12个并发子Agent的滚动池,以并行方式分配任务。只要有空闲插槽,就持续启动新任务,直至计划完全完成。
Process
核心编排目标
Step 1: Parse Request
—
Extract from user request:
- Plan file: The markdown plan to read
- Task subset (optional): Specific task IDs to run
If no subset provided, run the full plan.
- 保持项目持续推进
- 只要存在待处理任务,就维持最多12个Agent运行
- 为每个子Agent提供完整的路径/文件上下文
- 防止并行任务间出现文件名/文件夹名偏差
- 检查每个子Agent的执行结果
- 任务完成时及时更新计划文件
- 所有任务执行完成后进行最终集成修复
- 添加/调整测试用例,然后运行测试并修复故障
Step 2: Read & Parse Plan
流程
—
步骤1:解析请求
- Find task subsections (e.g., or
### T1:)### Task 1.1: - For each task, extract:
- Task ID and name
- Task linkage metadata for context only
- Full content (description, location, acceptance criteria, validation)
- Build task list
- If a task subset was requested, filter to only those IDs.
从用户请求中提取:
- 计划文件:需要读取的markdown计划
- 任务子集(可选):需要运行的特定任务ID
如果未指定子集,则运行完整计划。
Step 3: Build Context Pack Per Task
步骤2:读取并解析计划
Before launching a task, prepare a context pack that includes:
- Canonical file paths and folder paths the task must touch
- Planned new filenames (exact names, not suggestions)
- Neighboring tasks that touch the same files/folders
- Naming constraints and conventions from the plan/repo
- Any known cross-task expectations that could cause conflicts
Rules:
- Do not allow subagents to invent alternate file names for the same intent.
- Require explicit file targets in every subagent assignment.
- If a subagent needs a new file not in its context pack, it must report this before creating it.
- 查找任务小节(例如:或
### T1:)### Task 1.1: - 为每个任务提取:
- 任务ID和名称
- 仅用于上下文的任务关联元数据
- 完整内容(描述、位置、验收标准、验证方式)
- 构建任务列表
- 如果指定了任务子集,则过滤出对应ID的任务。
Step 4: Launch Subagents (Rolling Pool, Max 12)
步骤3:为每个任务构建上下文包
Run a rolling scheduler:
- States: ,
pending,running,completedfailed - Launch up to 12 tasks immediately (or fewer if less are pending)
- Whenever any running task finishes, validate/update plan for that task, then launch the next pending task immediately
- Continue until no pending or running tasks remain
For each launched task, use:
- description: "Implement task [ID]: [name]"
- prompt: Use template below
Do not wait for grouped batches. The only concurrency limit is 12 active subagents.
启动任务前,准备包含以下内容的上下文包:
- 任务必须操作的标准文件路径和文件夹路径
- 计划创建的新文件名(精确名称,而非建议)
- 操作相同文件/文件夹的相邻任务
- 计划/代码库中的命名约束和规范
- 可能导致冲突的已知跨任务预期
Task Prompt Template
规则
You are implementing a specific task from a development plan.- 不允许子Agent为相同意图创建替代文件名
- 每个子Agent的任务分配中必须包含明确的文件目标
- 如果子Agent需要创建上下文包中未列出的新文件,必须先上报
Context
步骤4:启动子Agent(滚动池,最多12个)
- Plan: [filename]
- Goals: [relevant overview from plan]
- Task relationships: [related metadata for awareness only, never as a blocker]
- Canonical folders: [exact folders to use]
- Canonical files to edit: [exact paths]
- Canonical files to create: [exact paths]
- Shared-touch files: [files touched by other tasks in parallel]
- Naming rules: [repo/plan naming constraints]
- Constraints: [risks from plan]
运行滚动调度器:
- 状态:(待处理)、
pending(运行中)、running(已完成)、completed(失败)failed - 立即启动最多12个任务(如果待处理任务不足12个,则启动对应数量)
- 任何运行中的任务完成后,验证/更新该任务的计划,然后立即启动下一个待处理任务
- 持续执行,直至无待处理或运行中的任务
对于每个启动的任务,使用:
- 描述:"Implement task [ID]: [name]"
- 提示词:使用下方模板
无需等待批量分组。唯一的并发限制是12个活跃子Agent。
Your Task
任务提示词模板
Task [ID]: [Name]
Location: [File paths]
Description: [Full description]
Acceptance Criteria:
[List from plan]
Validation:
[Tests or verification from plan]
You are implementing a specific task from a development plan.Instructions
Context
- Examine the plan and all listed canonical paths before editing
- Implement changes for all acceptance criteria
- Keep work atomic and committable
- For each file: read first, edit carefully, preserve formatting
- Do not create alternate filename variants; use only the provided canonical names
- If you need to touch/create a path not listed, stop and report it first
- Run validation if feasible
- ALWAYS mark completed tasks IN THE *-plan.md file AS SOON AS YOU COMPLETE IT! and update with:
- Concise work log
- Files modified/created
- Errors or gotchas encountered
- Commit your work
- Note: There are other agents working in parallel to you, so only stage and commit the files you worked on. NEVER PUSH. ONLY COMMIT.
- Double check that you updated the *-plan.md file and committed your work before yielding
- Return summary of:
- Files modified/created (exact paths)
- Changes made
- How criteria are satisfied
- Validation performed or deferred
- Plan: [filename]
- Goals: [relevant overview from plan]
- Task relationships: [related metadata for awareness only, never as a blocker]
- Canonical folders: [exact folders to use]
- Canonical files to edit: [exact paths]
- Canonical files to create: [exact paths]
- Shared-touch files: [files touched by other tasks in parallel]
- Naming rules: [repo/plan naming constraints]
- Constraints: [risks from plan]
Important
Your Task
- Be careful with paths
- Follow canonical naming exactly
- Stop and describe blockers if encountered
- Focus on this specific task
undefinedTask [ID]: [Name]
Location: [File paths]
Description: [Full description]
Acceptance Criteria:
[List from plan]
Validation:
[Tests or verification from plan]
Step 5: Validate Every Completion
Instructions
As each subagent finishes:
- Inspect output for correctness and completeness.
- Validate against expected outcomes for that task.
- Ensure plan file completion state + logs were updated correctly.
- Retry/escalate on failure.
- Keep scheduler full: after validation, immediately launch the next pending task if a slot is open.
- Examine the plan and all listed canonical paths before editing
- Implement changes for all acceptance criteria
- Keep work atomic and committable
- For each file: read first, edit carefully, preserve formatting
- Do not create alternate filename variants; use only the provided canonical names
- If you need to touch/create a path not listed, stop and report it first
- Run validation if feasible
- ALWAYS mark completed tasks IN THE *-plan.md file AS SOON AS YOU COMPLETE IT! and update with:
- Concise work log
- Files modified/created
- Errors or gotchas encountered
- Commit your work
- Note: There are other agents working in parallel to you, so only stage and commit the files you worked on. NEVER PUSH. ONLY COMMIT.
- Double check that you updated the *-plan.md file and committed your work before yielding
- Return summary of:
- Files modified/created (exact paths)
- Changes made
- How criteria are satisfied
- Validation performed or deferred
Step 6: Final Orchestrator Integration Pass
Important
After all subagents are done:
- Reconcile parallel-work conflicts and cross-task breakage.
- Resolve duplicate/variant filenames and converge to canonical paths.
- Ensure the plan is fully and accurately updated.
- Add or adjust tests to cover integration/regression gaps.
- Run required tests.
- Fix failures.
- Re-run tests until green (or report explicit blockers with evidence).
Completion bar:
- All plan tasks marked complete with logs
- Integrated codebase builds/tests per plan expectations
- No unresolved path/name divergence introduced by parallel execution
- Be careful with paths
- Follow canonical naming exactly
- Stop and describe blockers if encountered
- Focus on this specific task
undefinedScheduling Policy (Required)
步骤5:验证每个任务的完成情况
- Max concurrent subagents: 12
- If pending tasks exist and running count is below 12: launch more immediately
- Do not pause due to relationship metadata
- Continue until the full plan (or requested subset) is complete and integrated
每个子Agent完成任务后:
- 检查输出的正确性和完整性
- 根据该任务的预期结果进行验证
- 确保计划文件的完成状态和日志已正确更新
- 失败时进行重试或升级处理
- 保持调度器满负荷:验证完成后,如果有空闲插槽,立即启动下一个待处理任务
Error Handling
步骤6:编排器最终集成阶段
- Task subset not found: List available task IDs
- Parse failure: Show what was tried, ask for clarification
- Path ambiguity across tasks: pick one canonical path, announce it, and enforce it in all task prompts
所有子Agent完成任务后:
- 协调并行工作产生的冲突和跨任务故障
- 解决重复/变体文件名问题,统一为标准路径
- 确保计划文件已完全且准确更新
- 添加或调整测试用例,覆盖集成/回归漏洞
- 运行要求的测试
- 修复故障
- 重新运行测试直至通过(或提供明确的阻塞证据并上报)
完成标准:
- 所有计划任务均标记为完成并附有日志
- 集成后的代码库符合计划预期的构建/测试要求
- 并行执行未引入未解决的路径/名称偏差
Example Usage
调度策略(强制要求)
'Implement the plan using super-swarm'
/super-swarm plan.md
/super-swarm ./plans/auth-plan.md T1 T2 T4
/super-swarm user-profile-plan.md --tasks T3 T7- 最大并发子Agent数量:12
- 如果存在待处理任务且运行中Agent数量少于12:立即启动更多任务
- 不要因关联元数据而暂停
- 持续执行直至完整计划(或指定子集)完成并集成
Execution Summary Template
错误处理
markdown
undefined- 未找到指定任务子集:列出可用的任务ID
- 解析失败:说明尝试的操作,请求澄清
- 任务间路径歧义:选择一个标准路径,进行公告并在所有任务提示词中强制执行
Execution Summary
使用示例
Tasks Assigned: [N]
—
Concurrency
—
- Max workers: 12
- Scheduling mode: rolling pool (continuous refill)
'Implement the plan using super-swarm'
/super-swarm plan.md
/super-swarm ./plans/auth-plan.md T1 T2 T4
/super-swarm user-profile-plan.md --tasks T3 T7Completed
执行总结模板
- Task [ID]: [Name] - [Brief summary]
markdown
undefinedIssues
Execution Summary
—
Tasks Assigned: [N]
—
Concurrency
- Task [ID]: [Name]
- Issue: [What went wrong]
- Resolution: [How resolved or what's needed]
- Max workers: 12
- Scheduling mode: rolling pool (continuous refill)
Blocked
Completed
- Task [ID]: [Name]
- Blocker: [What's preventing completion]
- Next Steps: [What needs to happen]
- Task [ID]: [Name] - [Brief summary]
Integration Fixes
Issues
- Task [ID]: [Name]
- Issue: [What went wrong]
- Resolution: [How resolved or what's needed]
Tests Added/Updated
Blocked
- [Test file]: [Coverage added]
- Task [ID]: [Name]
- Blocker: [What's preventing completion]
- Next Steps: [What needs to happen]
Validation Run
Integration Fixes
- [Command]: [Pass/Fail + key output]
Overall Status
Tests Added/Updated
[Completion summary]
- [Test file]: [Coverage added]
Files Modified
Validation Run
[List of changed files]
- [Command]: [Pass/Fail + key output]
Next Steps
Overall Status
[Recommendations]
undefined[Completion summary]
—
Files Modified
—
[List of changed files]
—
Next Steps
—
[Recommendations]
undefined