Agent skill · Audited from source
Shogun Model Switch
skill · yohey-w/multi-agent-shogunMIT licenceAudited 8 Oct 2026 · source cf15f16c9e1c
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit cf15f16c9e1c and found no filesystem, network or shell access and no hard-coded secrets. What it does: エージェントのCLI/モデルをライブ切替するスキル。settings.yaml更新→/exit→新CLI起動→ pane metadata更新を一発で実行。Thinking有無も制御。 「モデル切替」「Sonnetにして」「Opusに変えて」「足軽全員切替」「Thinking切って」で起動。
Cite
Cite this page
ModelsAtlas. “Shogun Model Switch (yohey-w/multi-agent-shogun)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/yohey-w/shogun-model-switch
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha cf15f16c9e1c · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisheryohey-w GitHub userOwner of the repository this skill is read from
- Source folderyohey-w/multi-agent-shogun/skills/shogun-model-switchThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdictcf15f16c9e1cA new audit runs when the source changes
- Repository statusNot archivedLast push 63 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: エージェントのCLI/モデルをライブ切替するスキル。settings.yaml更新→/exit→新CLI起動→ pane metadata更新を一発で実行。Thinking有無も制御。 「モデル切替」「Sonnetにして」「Opusに変えて」「足軽全員切替」「Thinking切って」で起動。
---
name: shogun-model-switch
description: |
エージェントのCLI/モデルをライブ切替するスキル。settings.yaml更新→/exit→新CLI起動→
pane metadata更新を一発で実行。Thinking有無も制御。
「モデル切替」「Sonnetにして」「Opusに変えて」「足軽全員切替」「Thinking切って」で起動。
argument-hint: "[agent-name target-model e.g. ashigaru1 sonnet]"
allowed-tools: Bash(bash scripts/switch_cli.sh *), Read, Edit
---
# /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
### 単体切替
```bash
# 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
```
### 一括切替
```bash
# 全足軽を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"
done
```
### Thinking 制御
settings.yaml の `thinking` フィールドを編集してから switch_cli.sh を実行:
```yaml
# config/settings.yaml
cli:
agents:
ashigaru3:
type: claude
model: claude-opus-4-6
thinking: false # ← MAX_THINKING_TOKENS=0 で起動
```
```bash
# settings.yaml 編集後に再起動
bash scripts/switch_cli.sh ashigaru3
```
Thinking ON/OFF の切替手順:
1. `config/settings.yaml` の対象エージェントの `thinking:` を `true` / `false` に変更
2. `bash scripts/switch_cli.sh <agent_id>` で再起動
3. pane border に `+T` の有無が反映される
### inbox 経由(家老からの切替)
```bash
# 家老が足軽のCLIを切り替える場合
bash scripts/inbox_write.sh ashigaru3 "--type claude --model claude-opus-4-6" cli_restart karo
```
inbox_watcher が `cli_restart` type を検知し、switch_cli.sh を自動実行する。
## What switch_cli.sh Does (internal)
1. **settings.yaml 更新**(`--type`/`--model` 指定時のみ)
2. **現在のCLI種別を検出**(tmux pane metadata `@agent_cli`)
3. **CLI別の exit コマンドを送信**
- Claude: `/exit` + Enter
- Codex: Escape → Ctrl-C → `/exit` + Enter
- Copilot/Kimi: Ctrl-C → `/exit` + Enter
4. **シェルプロンプト復帰を待機**(最大15秒、1秒ごとにキャプチャ)
5. **`build_cli_command()` で新コマンド構築**
- thinking: false → `MAX_THINKING_TOKENS=0` prefix 付与
6. **tmux send-keys で新CLI起動**(テキストとEnterを分離送信)
7. **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 変数も自動更新されるExcerpt, first 4,237 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit cf15f16
git clone https://github.com/yohey-w/multi-agent-shogun git -C multi-agent-shogun checkout cf15f16c9e1c
The author documents no install command, so this uses the repository directly. Our verdict covers commit cf15f16c9e1c only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Codex | Mentioned in its text, not tested | Skills for Codex · About Codex |
| GitHub Copilot | Mentioned in its text, not tested | Skills for GitHub Copilot · About GitHub Copilot |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
cf15f16c9e1c
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/yohey-w/shogun-model-switch/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All automation skills →yohey-w/multi-agent-shogun
Claude Codeスキル(SKILL.md)の設計・作成・バリデーション・レビュー。 Anthropic公式ガイド(2026-03)準拠。新規スキル作成、既存スキルの改善、 description品質チェック、トリガーテスト設計に使用。 「スキル作って」「スキル設計」「SKILL.md作成」「スキルレビュー」で起動。 Do NOT use for: スキルの実行・呼び出し(それは各スキル自体が行う)。
yohey-w/multi-agent-shogun
全エージェント(家老・足軽1-7・軍師)の稼働状態を一覧表示するスキル。tmux pane状態(稼働中/待機中/不在)とタスクYAML状態(task_id, status)と未読inbox数を統合表示。「稼働確認」「エージェント状態」「布陣確認」「agent status」で起動。
yohey-w/multi-agent-shogun
Interactive wizard: guided questions with multiple-choice options about subscriptions, then outputs a ready-to-paste capability_tiers YAML + fixed agent model assignments. Trigger: "capability_tiers", "bloom config",…
yohey-w/multi-agent-shogun
All AI CLI tools × available models × required subscriptions × Bloom max capability. Reference table for choosing which models to use in multi-agent-shogun. Trigger: "model list", "what models", "model comparison",…
yohey-w/multi-agent-shogun
README.md(英語)とREADME_ja.md(日本語)の同期を確認・実行するスキル。README変更時に両言語版を必ず同時更新するために使用。「README更新」「README同期」「readme sync」で起動。
yohey-w/multi-agent-shogun
スクリーンショットの取得・加工を行う。ローカルスクショから最新画像を取得、 PlaywrightでWebページをキャプチャ、画像のトリミング・リサイズ、機微情報を黒塗りマスキング。 記事執筆、レポート作成、UI確認、画像加工時に起動。 「スクショ」「スクリーンショット」「画面キャプチャ」「最新のスクショ」「画像加工」「トリミング」「マスク」「写メ」「写メ撮った」「スクショ撮った」で起動。 Do NOT use for:…
Add this badge to your README
[](https://modelsatlas.com/skills/yohey-w/shogun-model-switch/)
<a href="https://modelsatlas.com/skills/yohey-w/shogun-model-switch/"><img src="https://modelsatlas.com/skills/yohey-w/shogun-model-switch/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Shogun Model Switch
What does the Shogun Model Switch skill do?
Is Shogun Model Switch safe to install?
What can Shogun Model Switch access on my machine?
Which assistants does Shogun Model Switch work with?
How current is this page?
Sources
- github.com/yohey-w/multi-agent-shogun/tree/main/skills/shogun-mo — the audited source at commit cf15f16c9e1c and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Shogun Model Switch skill do?
- Is Shogun Model Switch safe to install?
- What can Shogun Model Switch access on my machine?