Parallel execution

From hashgraph-online/awesome-codex-plugins · View interactive version

Parallel execution is an AI agent skill from the GitHub repository hashgraph-online/awesome-codex-plugins. 并行执行框架:基于 Git worktree 的多实例并行、任务分发与动态扩展。 当任务可拆分、需要加速执行、或需要多分支并行开发时使用。

How to use this skill

Skill file

Parallel Execution Framework

用途

核心概念

1. 任务类型

| 类型 | 说明 | 并行策略 |

|------|------|---------|

| independent | 无依赖,可立即执行 | 并行 |

| sequential | 依赖前一任务输出 | 串行 |

| parallel | 多个独立任务 | 并行 |

| cascade | 主任务触发子任务 | 级联 |

2. Git Worktree 并行

worktree add <path> <branch>  # 创建新 worktree
worktree list                  # 列出所有 worktree
worktree prune                 # 清理无效 worktree

3. 扩展策略

触发信号

使用约束

  1. 任务拆分后,每个子任务必须有明确的输入输出
  2. 并行任务之间不能有写冲突
  3. 需要共享的状态通过文件或消息传递
  4. 主任务负责汇总子任务结果
  5. 失败处理:部分失败时,主任务决定是重试、跳过还是中止

配套工具

命令接入

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.