orchestrate

A coordinator for developing several GitHub Issues at the same time, from preparation and design through implementation, pull-request merging, user acceptance testing, and fixes. A worktree is a separate working folder for a Git branch, and UAT means checking that the finished change works for its users.

In plain words
What is it for?
Use it to run selected phases or the full workflow for two or more issues, with each issue developed in its own feature branch and worktree.
Why use it?
It organizes the handoffs and completion checks across parallel changes so each issue follows a defined development process.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/kewton/commandmate/orchestrate
Clone the repo
git clone --depth 1 https://github.com/Kewton/CommandMate

Made for: Claude Code.

Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 12,156 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00036 $0.12156
Opus 5 $0.00018 $0.06078
Sonnet 5 $0.00007 $0.02431
Haiku 4.5 $0.00004 $0.01216

Measured yesterday against content hash 39598fa259d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

orchestrate scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST http://localhost:3000/api/repositories/sync
.claude/commands/orchestrate.md · 763 lines

How it starts

The opening of the file, as written. The whole thing — 763 lines — stays where its author put it; the contents beside it link to each section on GitHub.

並列Issueオーケストレーション

概要

developブランチをオーケストレーターとして、複数Issueの並列開発からUAT合格までの全ライフサイクルを統括します。各Issueはfeatureブランチのworktreeで並列に開発され、commandmatedev CLIで制御します。

原則: オーケストレーターはコードに触れない。制御と判断のみ。

使用方法

  • /orchestrate [Issue番号1] [Issue番号2] ...
  • /orchestrate [Issue番号1] [Issue番号2] --phase design (設計フェーズまで)
  • /orchestrate [Issue番号1] [Issue番号2] --phase impl (実装まで)
  • /orchestrate [Issue番号1] [Issue番号2] --full (UAT合格まで全自動)

前提条件

  • developブランチ上で実行すること
  • CommandMateサーバーが稼働していること(commandmatedev ls で確認)
  • GitHubリポジトリ(https://github.com/Kewton/CommandMate)にアクセス可能
  • 契約系フラグが使えることを最初に確認する。--contract / --verify は develop 系にのみ存在し、 v0.16.0 リリースには含まれない。無ければ委任は素の send にフォールバックする(完了判定は目視に戻る):
    commandmatedev send --help | grep -q -- --contract && commandmatedev wait --help | grep -q -- --verify \
      && echo "contract delegation: available" || echo "contract delegation: UNAVAILABLE (fallback to plain send)"
    
  • 委任先リポジトリに .commandmate/verify.yaml があること(無ければ /cmate-verify で起案する)

実行内容

あなたはプロジェクトマネージャーとして、複数Issueの並列開発を統括します。

パラメータ

  • issue_numbers: 開発対象のIssue番号(スペース区切り、2つ以上)
  • --phase: 実行範囲の制限(design, impl, pr, uat)。省略時はPRマージまで
  • --full: UAT合格まで全自動で実行

Phase 0: 初期設定

TodoWriteツールで作業計画を作成:

- [ ] Phase 1: 依存関係分析・実行計画(ラベル分類含む)
- [ ] Phase 2: Worktree準備・実行契約の起案
- [ ] Phase 2.5: 根本原因分析(バグIssueのみ、他エージェント経由)
- [ ] Phase 3: 並列開発(契約付き send → wait --verify)
- [ ] Phase 4: 設計突合(バリア)
- [ ] Phase 5: 品質確認
- [ ] Phase 6: PR作成・マージ(同時CIは2〜3本 / refresh→tsc→影響テスト→マージ / 断片の一本化)
- [ ] Phase 7: UAT(--full時のみ)
- [ ] Phase 8: 完了報告

重要(エージェント指定ルール): commandmatedev send でワーカーにタスクを送信する際のエージェント指定は以下に従うこと:

  • 開発タスク/pm-auto-issue2dev, /bug-fix 等): --agent claude を指定
  • レビュー系(仕様レビュー、設計レビュー等): 一部 --agent codex に依頼可
  • バグ根本原因分析(Phase 2.5): --agent copilot --model claude-opus-4.6 を指定

Phase 1: 依存関係分析・実行計画

1-1. Issue情報の取得

各Issueの詳細を取得:

for issue_num in {issue_numbers}; do
  gh issue view "$issue_num" --repo Kewton/CommandMate --json number,title,body,labels
done

Read the full file on GitHub · 763 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 763 lines · 36 tokens per session scan A 39598fa259d8

Subscribe to this mod's changes

orchestrate is a command published in the GitHub repository Kewton/CommandMate (39 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 12,156 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.