shogun-model-switch
Skill1.4k starsChanged 6 months agoMITView on GitHub
エージェントのCLI/モデルをライブ切替するスキル。settings.yaml更新→/exit→新CLI起動→ pane metadata更新を一発で実行。Thinking有無も制御。 「モデル切替」「Sonnetにして」「Opusに変えて」「足軽全員切替」「Thinking切って」で起動。
Trending
Less talk lately.about the whole repository
Who's talking about yohey-w/multi-agent-shogun
- A Hacker News story“Show HN: Multi-agent-shogun – tmux and YAML mailbox for parallel AI agents”Hacker News · Feb 10, 2026 · 3 points
- @yukotan.bsky.social“これのコミット履歴みてるだけでご飯三杯いける。 GitHub - yohey-w/multi-agent-shogun: Samurai-inspired multi-agent system for Claude …”Bluesky · Feb 13, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.yohey-w.multi-agent-shogun: init at 5.2.0”GitHub · Oct 3, 2026
- dashi296/shogun“Stop/SessionStart フックによるエージェント自発停止の防止(自律実行の構造的担保)”GitHub · Jun 12, 2026
- dashi296/shogun“[Epic] multi-agent-shogun からの機能取り込み(cmd_004 調査)”GitHub · Jun 11, 2026
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub, Bluesky and Hacker News (16 times).
On GitHub · 13
- Oct 3, 2026agent-skills.github.yohey-w.multi-agent-shogun: init at 5.2.0 — sudosubin/agents.nix0 reactions
- Jun 12, 2026Stop/SessionStart フックによるエージェント自発停止の防止(自律実行の構造的担保) — dashi296/shogun0 reactions
- Jun 11, 2026[Epic] multi-agent-shogun からの機能取り込み(cmd_004 調査) — dashi296/shogun0 reactions · 1 comment
- Jun 11, 2026プロジェクト管理(projects.yaml)によるコンテキスト分離 — dashi296/shogun0 reactions
- Jun 11, 2026スキルシステム(Bottom-Up Skill Discovery) — dashi296/shogun0 reactions
8 more on GitHub
- Jun 11, 2026Agent Self-Watch(3 段階エスカレーション自動復旧) — dashi296/shogun0 reactions
- Jun 11, 2026Memory MCP 統合(クロスセッション永続記憶) — dashi296/shogun0 reactions
- Jun 11, 2026Bloom's Taxonomy によるタスクルーティング — dashi296/shogun0 reactions
- Jun 11, 2026tmux ペインボーダーへの現在タスク表示 — dashi296/shogun0 reactions
- Jun 11, 2026dashboard.md(リアルタイム進捗ボード)の標準化 — dashi296/shogun0 reactions
- May 23, 2026Add zsh support to setup instructions and shell rc updates — hidetomasuoka/multi-agent-shogun0 reactions
- Apr 28, 2026docs(adr): ADR-0008 通知レイヤを能動 fetch 方式へピボット(ADR-0003 部分 Superseded) — diesel141/multi-agent-team0 reactions
- Feb 11, 2026Agent Teams運用改善:multi-agent-shogunのアーキテクチャを参考にした設計検討 — becky3/ai-assistant0 reactions · 3 comments
On Bluesky · 2
- Feb 13, 2026これのコミット履歴みてるだけでご飯三杯いける。 GitHub - yohey-w/multi-agent-shogun: Samurai-inspired multi-agent system for Claude Code. Orchestrate parallel AI… — @yukotan.bsky.social1 likes and repost · 1 reply
- Feb 5, 2026https://github.com/yohey-w/multi-agent-shogun 雖然我是覺得不太值得再花時間調整... 但反正快要週末了(?),就給大家參考看看。 — @gugod.g0v.social.ap.brid.gy0 likes and reposts · 1 reply
On Hacker News · 1
- Feb 10, 2026Show HN: Multi-agent-shogun – tmux and YAML mailbox for parallel AI agents3 points · 1 comment
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- inbox-writeSkill
- shogun-agent-statusSkill
- shogun-bloom-configSkill
- shogun-model-listSkill
- shogun-readme-syncSkill
- shogun-screenshotSkill
- skill-creatorSkill
The file
Files
/model-switch - Agent CLI Live Switcher
Overview
稼働中のエージェントのCLI種別・モデル・Thinking設定をライブで切り替える。
settings.yaml → build_cli_command() → /exit → 新CLI起動 → pane metadata更新 を一貫実行。
When to Use
- 「ashigaru3をOpusにして」「足軽全員Sonnetに切替」
- 「モデル切替」「モデル変えて」「CLI変えて」
- 「Thinking切って」「Thinking有効にして」
- 「CodexからClaudeに戻して」「Sparkにして」
- タスクの性質に応じてモデルを切り替えたいとき
Architecture
settings.yaml (source of truth)
│
├─ cli.agents.{id}.type → claude | codex | copilot | kimi
├─ cli.agents.{id}.model → claude-sonnet-4-6 | claude-opus-4-6 | ...
└─ cli.agents.{id}.thinking → true | false
│
├── build_cli_command()
│ └─ thinking: false → "MAX_THINKING_TOKENS=0 claude --model ..."
│ └─ thinking: true → "claude --model ..."
│
└── get_model_display_name()
└─ thinking: true → "Sonnet+T" / "Opus+T"
└─ thinking: false → "Sonnet" / "Opus"Display Name Mapping
| model (settings.yaml) | 表示名 | +Thinking |
| claude-sonnet-4-6 | Sonnet | Sonnet+T |
| claude-opus-4-6 | Opus | Opus+T |
| claude-haiku-4-5-20251001 | Haiku | Haiku+T |
| gpt-5.3-codex | Codex | — |
| gpt-5.3-codex-spark | Spark | — |
Instructions
単体切替
# settings.yaml の現在値で再起動(CLIリセットしたいだけのとき)
bash scripts/switch_cli.sh ashigaru3
# モデル変更(settings.yaml も自動更新)
bash scripts/switch_cli.sh ashigaru3 --model claude-opus-4-6
# CLI種別ごと変更(Codex → Claude)
bash scripts/switch_cli.sh ashigaru3 --type claude --model claude-sonnet-4-6
# Claude → Codex Spark
bash scripts/switch_cli.sh ashigaru5 --type codex --model gpt-5.3-codex-spark一括切替
# 全足軽をSonnetに
for i in $(seq 1 7); do
bash scripts/switch_cli.sh ashigaru$i --type claude --model claude-sonnet-4-6
done
# 全足軽をSparkに
for i in $(seq 1 7); do
bash scripts/switch_cli.sh ashigaru$i --type codex --model gpt-5.3-codex-spark
done
# 全エージェント(家老・軍師含む)を再起動
for agent in karo ashigaru1 ashigaru2 ashigaru3 ashigaru4 ashigaru5 ashigaru6 ashigaru7 gunshi; do
bash scripts/switch_cli.sh "$agent"
doneThinking 制御
settings.yaml の thinking フィールドを編集してから switch_cli.sh を実行:
# config/settings.yaml
cli:
agents:
ashigaru3:
type: claude
model: claude-opus-4-6
thinking: false # ← MAX_THINKING_TOKENS=0 で起動# settings.yaml 編集後に再起動
bash scripts/switch_cli.sh ashigaru3Thinking ON/OFF の切替手順:
config/settings.yamlの対象エージェントのthinking:をtrue/falseに変更bash scripts/switch_cli.sh <agent_id>で再起動- pane border に
+Tの有無が反映される
inbox 経由(家老からの切替)
# 家老が足軽のCLIを切り替える場合
bash scripts/inbox_write.sh ashigaru3 "--type claude --model claude-opus-4-6" cli_restart karoinbox_watcher が cli_restart type を検知し、switch_cli.sh を自動実行する。
What switch_cli.sh Does (internal)
- settings.yaml 更新(
--type/--model指定時のみ) - 現在のCLI種別を検出(tmux pane metadata
@agent_cli) - CLI別の exit コマンドを送信
- Claude:
/exit+ Enter - Codex: Escape → Ctrl-C →
/exit+ Enter - Copilot/Kimi: Ctrl-C →
/exit+ Enter
- Claude:
- シェルプロンプト復帰を待機(最大15秒、1秒ごとにキャプチャ)
build_cli_command()で新コマンド構築- thinking: false →
MAX_THINKING_TOKENS=0prefix 付与
- thinking: false →
- tmux send-keys で新CLI起動(テキストとEnterを分離送信)
- pane metadata 更新:
@agent_cli,@model_name
Files
| ファイル | 役割 |
scripts/switch_cli.sh | メインスクリプト |
lib/cli_adapter.sh | build_cli_command(), get_model_display_name() |
config/settings.yaml | エージェント設定(type, model, thinking) |
scripts/inbox_watcher.sh | cli_restart type ハンドリング |
logs/switch_cli.log | 実行ログ |
Constraints
- 将軍(shogun)ペインには送信しない: switch_cli.sh は multiagent セッションのペインのみ対象
- 実行中のエージェントに注意: タスク実行中に切り替えるとデータ消失の可能性あり。idle確認してから実行
- Codex → Claude 切替時: Codex の /exit が不安定な場合がある。Escape + Ctrl-C で確実に終了させる
- inbox_watcher との連携: cli_restart 後、inbox_watcher の CLI_TYPE 変数も自動更新される
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

