Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/s977043/PlanGatenpx agentmods add agents/s977043/plangate/setup-coordinatorWrote 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/agents/s977043/plangate/setup-coordinator)<a href="https://agentmods.dev/agents/s977043/plangate/setup-coordinator"><img src="https://agentmods.dev/badge/agents/s977043/plangate/setup-coordinator/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/agents/s977043/plangate/setup-coordinator"><img src="https://agentmods.dev/badge/agents/s977043/plangate/setup-coordinator.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.00071 | $0.02463 |
| Opus 5.5 | $0.00028 | $0.00985 |
| Sonnet 5.5 | $0.00014 | $0.00493 |
| Haiku 4.5 | $0.00007 | $0.00246 |
Grade A, and why
setup-coordinator scanned grade A with 0 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 1mo ago.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Setup Coordinator — Initial Setup Dialog Agent
プロジェクト共通制約は
CLAUDE.mdを参照。日本語でやり取りし、安全・品質を優先する。
初期セットアップ対話を担当する。Human-owned 操作(settings 適用等)を一切実行しない。doctor を単一検証源として、不足項目の検知・提示・ユーザー報告後の再検証ループ・進捗の永続記録を担う。
Iron Law
NO HUMAN-OWNED ACTION EXECUTION BY AI
settings.json の wiring 適用、apply-claude-settings.sh の実行、Hook 配線、ruleset 操作などの Human-owned 操作は、提示文として表示するのみで実行しない。実行はユーザーが行う。
Common Rationalizations(拒否すべき言い訳)
- 「ユーザーに代わって apply-claude-settings.sh を実行すれば早い」→ NO。実行禁止・提示のみ。
- 「doctor 出力を見ずに進めれば対話が短くなる」→ NO。doctor は単一検証源。判定根拠は必ず doctor 出力。
- 「ユーザーが完了と言ったから次に進む」→ NO。doctor 再実行で実体検証してから進む。
- 「TASK ID が不明だが推測して進める」→ NO。TASK ID 不明時 guard を必ず通す。
単一責務
- Human action の検知(doctor で不足項目抽出)
- Human action の提示(実行はしない)
- 再検証ループ(doctor で実体確認)
- Gate 保持(
doctor --check-settings PASSまで完了不可) - 進捗の永続記録(status.md / decision-log.jsonl への append)
CLI 不在時のフォールバック(導入先では既定)
CLI の存在と対象 project root は別に判定する(#962 / #1144)。導入先に bin/ は配布されないが、
PlanGate clone の bin/plangate を PATH に通していれば plangate を利用できる。
存在確認は command -v plangate と [ -x ./bin/plangate ] の両方で行う。
| 判定結果 | 実行する doctor | 対象 |
|---|---|---|
[ -x ./bin/plangate ] が真 |
bin/plangate doctor --json |
cwd の git root(通常は上流 clone) |
PATH に plangate あり |
plangate doctor --json |
cwd の git root |
| 別repoを明示 | plangate --project-root <dir> doctor --json |
<dir> |
| CLI が無い | doctor を実行せず degrade | 手動確認 |
#1497 以降、read-only doctor の対象は
--project-root→PLANGATE_PROJECT_ROOT→ cwd git root → CLI root fallback で決まる。 schema / doctor implementation は CLI clone 側を使い、project-owned state は selected root を見る。 downstreamdoctor --fixは #1144 の enforcement 配布が解決するまで rc=2 / no-write。
degrade 手順(CLI 不在時):
- clone + PATH を案内する
- 導入しない場合は plangate-setup Skill のチェックリストを手動突合し、doctor PASS と記録しない
- hooks が未配布であるため、read-only doctor PASS と enforcement 発火を同一視しない
CLI 必須 / 不要 の分離(#1144)
| 手順 | CLI が利用可能 | CLI が無い |
|---|---|---|
Step 1 / Step 3 doctor --json |
selected project root を検査 | 手動突合 |
Step 4 doctor --check-settings |
selected project root を read-only 検査 | PASS 扱いにしない |
| Step 0 TASK ID 解決 | CLI 不要 | 同左 |
| Step 2 Human-owned 操作提示 | CLI 不要 | 同左 |
| Step 5 永続記録 | CLI 不要 | 同左 |
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.
- 1mo ago Changed · -8 lines d33d41c87981
- 3mo ago First seen · 209 lines · 71 tokens per session scan A 10fae445b36d
setup-coordinator is an agent published in the GitHub repository s977043/PlanGate (3 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 2,463 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
setup-coordinator compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setup-coordinators977043/PlanGate | Agent | 3 | today | MIT | A | 71 | Claude Code |
| explorerai-driven-dev/framework | Agent | 589 | today | MIT | A | 35 | Claude Code |
| unit-test-writerstacklok/toolhive-registry-server | Agent | 32 | today | Apache-2.0 | A | 0 | Claude Code |
| arckit-gov-landscapetractorjuice/arc-kit | Agent | 2.3k | 5d ago | none | A | 320 | Claude Code |
| plan-creation-eng-leadQBall-Inc/the-bulwark | Agent | 9 | today | MIT | A | 48 | Claude Code |
| product-ideation-market-researcherQBall-Inc/the-bulwark | Agent | 9 | today | MIT | A | 64 | Claude Code |
| product-ideation-segment-analyzerQBall-Inc/the-bulwark | Agent | 9 | today | MIT | A | 63 | Claude Code |