Borrowing it
Nothing to install: this file belongs to Kewton/CommandMate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Kewton/CommandMate/main/.claude/commands/orchestrate.mdgit clone --depth 1 https://github.com/Kewton/CommandMateWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/kewton/commandmate/orchestrate)<a href="https://agentmods.dev/commands/kewton/commandmate/orchestrate"><img src="https://agentmods.dev/badge/commands/kewton/commandmate/orchestrate/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/kewton/commandmate/orchestrate"><img src="https://agentmods.dev/badge/commands/kewton/commandmate/orchestrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00036 | $0.34291 |
| Opus 5.5 | $0.00014 | $0.13716 |
| Sonnet 5.5 | $0.00007 | $0.06858 |
| Haiku 4.5 | $0.00004 | $0.03429 |
Grade B, and why
orchestrate scanned grade B with 2 findings 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- **ワーカーに `/model` を送らない。** Enter が `~/.claude/settings.json` のグローバル既定を書き換える(#1495 / #2297) 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 How it starts
The opening of the file, as written. The whole thing — 1,431 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で制御します。
原則: オーケストレーターはコードに触れない。制御と判断のみ。
必ず守ること
実測・根拠は docs/orchestrate/ へ。本体には規則を 1 行だけ書く。 根拠は「根拠: docs/orchestrate/.md#<見出し>」の行で指し、
run のたびには読まない手順(exit code ごとの対処・担当の切り替え・monitor)は、本体に「いつ・どの文書を読むか」を書いて docs/orchestrate/ に置く。
本体のバイト数の上限は scripts/check-orchestrate-size.mjs が持つ(CI の orchestrate-size)。超えたら、実測・根拠を docs/orchestrate/ へ移す。
下は、本文に散らばった必須・禁止の規則を 1 行ずつ集めたもの。括弧は元の見出しで、規則は元の場所にも残っている。
- オーケストレーターはコードに触れない。制御と判断のみ(概要)
- develop ブランチ上で実行する。契約系フラグ(
--contract/--verify)が使えることを最初に確かめる(前提条件) - 送り先は
--instanceで指定し、send / wait / capture / respond で同じ値を渡す(Phase 0) - ワーカーに
/modelを送らない。Claude のモデルは起動時に.claude/settings.local.jsonで決める(Phase 0) - 迷ったら難(opus)にする。迷ったら Claude に回す(1-2b)
- worktree の
npm installでは--include=devを省かない(2-2) requireCommit: trueを外さない(2-4)- 同じブランチに契約を積むときは、
scope.allowを前の契約の allow との和集合にする(2-4) .shを触る Issue ではgatesにlint-shを足す(2-4)CHANGELOG.mdとdocs/module-reference.mdをscope.allowに入れない。ワーカーには断片を書かせる(2-4-1)- 整理と、振る舞いの変更を同じ PR に入れない。整理の契約の
scope.allowにtests/**を入れない(2-4-3) - tmux・セッションに触れる Issue は、2-5 の 4 項目を契約に転記する(2-5)
- 実機でエージェント CLI・サーバーを動かす Issue は、隔離の項目を契約に転記する(2-6)
- 2.5 の分析の依頼は契約を使わない(素の send)(2.5-1)
- assign.tsv / tasks.tsv を stdin で読まない(fd 3 から読む)(3-1)
- send が exit 99 なら、待つ前に画面を見る(3-1)
- send の stdout はパイプで切らずファイルに落とし、送信後に
started=1を確かめる(3-1) - monitor の COMPLETE 判定をマージ可否の裁定に使わない。裁定は
wait --verifyの exit code(3-2) waitには--instance "$AGENT"と--on-prompt humanを付ける(3-3)- 裁定が作業の終わりのものだと確かめてから Auto-Yes を切る。合格の記録は再利用しない(3-3)
- Antigravity 担当は、完了の合図(
IMPL_COMPLETED)を確かめてから裁定する(3-3) - 不合格は先にワーカー起因かを判定する。再指示は同一 worktree につき最大 2 回(3-4)
- 再指示の後の裁定は
wait→verify --taskの 2 段で行う(3-4) - ワーカーに「lint/tsc/test を実行して結果を報告して」と送らない(5-1)
- 未処置の指摘(5-3)が残っている PR はマージしない(5-3)
- 検証の順番待ちの間に、オーケストレーターが worktree にコミットしない(5-3)
- 同時 CI は 3〜4 本。1 本に落とすのも失敗である(6-1)
MERGEABLEを組み合わせがコンパイルできる証拠にしない。refresh → tsc + 影響テストを通してからマージする(6-2)- PR の
pull_requestrun を手でキャンセルしない(6-2) bucketにfail/cancelが 1 つでもあればマージしない。判定はスクリプトで行う(6-3)- 断片が無い PR・
checkが exit 0 にならない PR はマージしない(6-4) - 起票の前に同じ不具合の開いている Issue を探す。起票はユーザーの了承を得てから行う(8-3)
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.
- yesterday Changed · +3 lines 816f5523a319
- 2d ago Changed · +2 lines 037e3b4acd76
- 14d ago Changed · +3 lines a6dd6cb34973
- 17d ago Changed · +1 lines 6372375a9735
- 18d ago Changed · -275 lines scan D → B ae51e99c78e6
- 21d ago Changed · +228 lines 1503ac22f877
- 23d ago Changed · +18 lines 6bf1437256c4
- 24d ago Changed · +22 lines 18288d119acc
- 27d ago Changed · +88 lines b99706e4b769
- 1mo ago First seen · 1,341 lines · 36 tokens per session scan D 69a32cd7a228
orchestrate is a command published in the GitHub repository Kewton/CommandMate (44 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 34,291 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
project
Manage projects: register repos, inspect, configure per-project settings, and remove.
afcl
Close feature [agent] [--adopt] - merges branch, cleans up, optionally adopts from losers (shortcut for feature-close).
next
Suggest the most likely next workflow action based on current context.
mach12:issue-implement
Implement a specific stage of an issue's implementation plan.
aft
Transfer feature from its current agent to a different agent — preserves commits and in-flight work (shortcut for feature-transfer).
afs
Start feature [agents...] - create workspace and begin implementation (shortcut for feature-start).