resolve_parallel
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseResolve all TODO comments using parallel processing.
使用并行处理解决所有TODO注释。
Workflow
工作流
1. Analyze
1. 分析
Gather the things todo from above.
收集上述所有待办事项。
2. Plan
2. 规划
Create a TodoWrite list of all unresolved items grouped by type.Make sure to look at dependencies that might occur and prioritize the ones needed by others. For example, if you need to change a name, you must wait to do the others. Output a mermaid flow diagram showing how we can do this. Can we do everything in parallel? Do we need to do one first that leads to others in parallel? I'll put the to-dos in the mermaid diagram flow‑wise so the agent knows how to proceed in order.
创建一个按类型分组的所有未解决事项的TodoWrite列表。请务必留意可能存在的依赖关系,并优先处理其他事项所需的任务。例如,如果您需要修改一个名称,必须先完成这个任务才能进行其他操作。输出一个mermaid流程图,展示我们如何执行此操作。我们可以并行完成所有任务吗?是否需要先完成某一个任务,再并行处理其他任务?我会将待办事项按流程顺序放入mermaid图中,以便Agent知晓执行顺序。
3. Implement (PARALLEL)
3. 实现(并行)
Spawn a pr-comment-resolver agent for each unresolved item in parallel.
So if there are 3 comments, it will spawn 3 pr-comment-resolver agents in parallel. liek this
- Task pr-comment-resolver(comment1)
- Task pr-comment-resolver(comment2)
- Task pr-comment-resolver(comment3)
Always run all in parallel subagents/Tasks for each Todo item.
为每个未解决的事项并行启动一个pr-comment-resolver Agent。
因此,如果有3条注释,它将并行启动3个pr-comment-resolver Agent,如下所示:
- 任务 pr-comment-resolver(comment1)
- 任务 pr-comment-resolver(comment2)
- 任务 pr-comment-resolver(comment3)
始终为每个待办事项并行运行所有子Agent/任务。
4. Commit & Resolve
4. 提交与解决
- Commit changes
- Push to remote
- 提交更改
- 推送到远程仓库