{"slug":"agent-model-switcher","title":"agent-model-switcher","summary":"批量查看和切换子 agent 的模型配置，用于统一调整多 agent 的 provider/model 设置。","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-09-18T13:23:49.879784Z","repo":{"url":"https://github.com/aAAaqwq/AGI-Super-Team","stars":98,"forks":23,"license":"MIT","updatedAt":"2026-09-17T04:09:10Z"},"bodyHtml":"<hr>\n<h2>name: agent-model-switcher\ndescription: 批量查看和切换子 agent 的模型配置，用于统一调整多 agent 的 provider/model 设置。</h2>\n<h1>Agent Model Switcher</h1>\n<p>批量切换所有子 agent 的模型配置。</p>\n<h2>用途</h2>\n<ul>\n<li>批量更换所有子 agent 的 model</li>\n<li>同步所有 agent 的 models.json 配置</li>\n<li>查看所有 agent 当前的 model 配置</li>\n</ul>\n<h2>使用方式</h2>\n<h3>1. 查看所有 agent 的 model 配置</h3>\n<pre><code>python3 ~/clawd/skills/agent-model-switcher/switch_model.py list\n</code></pre>\n<h3>2. 更换所有子 agent 的 model（不包括 main）</h3>\n<pre><code>python3 ~/clawd/skills/agent-model-switcher/switch_model.py set &lt;provider&gt;/glm-5\n</code></pre>\n<h3>3. 更换指定 agent 的 model</h3>\n<pre><code>python3 ~/clawd/skills/agent-model-switcher/switch_model.py set &lt;provider&gt;/glm-5 --agents code,ops,quant\n</code></pre>\n<h3>4. 同步所有 agent 的 models.json（从 main 复制）</h3>\n<pre><code>python3 ~/clawd/skills/agent-model-switcher/switch_model.py sync-models\n</code></pre>\n<h3>5. 同步指定 agent 的 models.json</h3>\n<pre><code>python3 ~/clawd/skills/agent-model-switcher/switch_model.py sync-models --agents batch,law,xiaotu\n</code></pre>\n<h2>参数说明</h2>\n<table>\n<thead>\n<tr>\n<th>参数</th>\n<th>说明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>list</code></td>\n<td>列出所有 agent 的 model 配置</td>\n</tr>\n<tr>\n<td><code>set &lt;model&gt;</code></td>\n<td>设置 agent 的 model</td>\n</tr>\n<tr>\n<td><code>sync-models</code></td>\n<td>从 main 复制 models.json 到其他 agent</td>\n</tr>\n<tr>\n<td><code>--agents &lt;names&gt;</code></td>\n<td>指定要操作的 agent（逗号分隔）</td>\n</tr>\n<tr>\n<td><code>--include-main</code></td>\n<td>包括 main agent（默认不包括）</td>\n</tr>\n<tr>\n<td><code>--dry-run</code></td>\n<td>只显示将要执行的操作，不实际执行</td>\n</tr>\n</tbody>\n</table>\n<h2>常用模型</h2>\n<table>\n<thead>\n<tr>\n<th>别名</th>\n<th>完整名称</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>glm5</td>\n<td></td>\n</tr>\n<tr>\n<td>glm47</td>\n<td></td>\n</tr>\n<tr>\n<td>opus46</td>\n<td></td>\n</tr>\n<tr>\n<td>sonnet46</td>\n<td></td>\n</tr>\n<tr>\n<td>kimi</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n<h2>示例</h2>\n<pre><code># 查看当前配置\npython3 ~/clawd/skills/agent-model-switcher/switch_model.py list\n\n# 全部子 agent 切换到 glm-5\npython3 ~/clawd/skills/agent-model-switcher/switch_model.py set glm5\n\n# 只切换 code 和 quant 到 opus-4-6\npython3 ~/clawd/skills/agent-model-switcher/switch_model.py set opus46 --agents code,quant\n\n# 同步 models.json 配置\npython3 ~/clawd/skills/agent-model-switcher/switch_model.py sync-models\n</code></pre>\n<h2>注意事项</h2>\n<ol>\n<li>修改配置后，agent 需要重新启动或等待新 session 才能生效</li>\n<li>同步 models.json 会覆盖目标 agent 的 models.json，确保 main 的配置是最新的</li>\n<li>建议先用 <code>--dry-run</code> 查看将要执行的操作</li>\n</ol>\n","files":[{"path":"SKILL.md","sizeBytes":2458,"isText":true},{"path":"switch_model.py","sizeBytes":5837,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-09-18T13:24:16.264205Z","sha256":"E70348355CA5A98C8CD0B25FBFDA02F14FC68F8B122D30F29A53778EB785DC8E","sizeBytes":3014},"review":null,"source":{"repositoryUrl":"https://github.com/aAAaqwq/AGI-Super-Team","path":"skills/agent-model-switcher","license":"MIT","commit":"cdb04e8ca38ea2df31a79018a90dd52ac9d7868b","subtreeSha":"BAE2DC6461AFA4D4A8ADB4038ED1B4EB8794E755CC943438F3C8C3393F33653A","lastSyncedAt":"2026-09-18T13:23:46.359964Z"},"reviewedAt":"2026-09-18T13:25:22.673325Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/aAAaqwq/AGI-Super-Team/tree/main/skills/agent-model-switcher"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install aaaaqwq-agi-super-team@llmmart"},{"target":"git","command":"git clone https://github.com/aAAaqwq/AGI-Super-Team.git"}]}