| name | openmax |
| description | When a task can be parallelized (bulk code review, multi-module refactor, batch analysis) → split into subtasks running in isolated git worktrees via multiple workers. |
| triggers | {"intent_patterns":["openmax|parallel review|并行|多worker|多任务|code review|批量","同时.*处理|handle.*simultaneously|一起.*跑|run.*parallel","批量.*审查|bulk.*review|全部.*模块|all.*modules","拆分.*任务|split.*task|分.*子任务|break.*subtasks","多个.*文件.*同时|multiple.*files.*parallel|加速.*review","worktree|隔离.*执行|isolated.*execution"],"context_signals":{"keywords":["openmax","parallel","review","并行","worktree","批量","同时","拆分","隔离","bulk","concurrent"]},"confidence_threshold":0.7} |
| priority | 9 |
| requires_tools | ["bash"] |
| max_tokens | 300 |
| cooldown | 30 |
| capabilities | ["code_edit","code_review","research","analysis","parallel"] |
| activation_mode | explicit |
| output | {"format":"markdown","artifacts":true,"artifact_type":"document"} |
openMax — 多 Worker 并行编排
在隔离 git worktree 中启动 N 个 CC worker,并行执行任务,汇总 .openmax/reports/ 下的产出。
快速前置
- 需要
claude CLI 在 PATH 中
- 工作目录必须是 git 仓库根目录
- briefs 存放于
.openmax/briefs/<task>.md
命令
python3 skills/openmax/run.py dispatch --tasks "research-codebase,review-perf,review-arch"
python3 skills/openmax/run.py dispatch --tasks "review-lark,review-eval" --goal "Review the elephant.ai codebase"
python3 skills/openmax/run.py status
python3 skills/openmax/run.py collect
参数说明
| 参数 | 说明 |
|---|
--tasks | 逗号分隔的任务名列表(对应 .openmax/briefs/<name>.md) |
--goal | 可选:补充到每个 brief 的总目标说明 |
--brief-dir | brief 所在目录,默认 .openmax/briefs |
--report-dir | 报告输出目录,默认 .openmax/reports |
--worktree-base | worktree 根目录,默认 .openmax-worktrees |
--dry-run | 只输出计划,不执行 |
工作流
- 读取
.openmax/briefs/<task>.md
- 创建 worktree:
git worktree add -b openmax/<task> .openmax-worktrees/openmax_<task> main
- 注入任务上下文到 CLAUDE.md
- 后台启动:
claude --dangerously-skip-permissions --print <brief>
- 所有 worker 完成后,
collect 汇总 .openmax/reports/*.md