Dsh Agent Model Hub — AI skill for Claude Code
Model Hub for DeepSeek Harness — one settings page to inspect and edit the default model and model list of Hermes, Claude Code, Codex and dsh itself, across four unrelated config formats (YAML / JSON.
How to install Dsh Agent Model Hub
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open you-see-seeyou/dsh-agent-model-hub and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Dsh Agent Model Hub does
Model Hub for DeepSeek Harness — one settings page to inspect and edit the default model and model list of Hermes, Claude Code, Codex and dsh itself, across four unrelated config formats (YAML / JSON / TOML / Cordis patch), with automatic backups.
Alternatives in AI
- App Rules — Never interact with the Manina AI app (also named ESP32 Agent; this agent itself): not its screens, its saved 5.2k ★
- Debate — AI Debate Hub - Structured four-way debates between Claude, Sonnet, Gemini, and Codex 2.8k ★
- Pinky — Let AI use your iPhone or Android phone, with you in the loop: any MCP agent from macOS, Windows or Linux, or 2.4k ★
README
dsh-agent-model-hub(模型总控)
一个 DeepSeek Harness 插件:在**设置 → 模型总控**一页里,统一查看与修改本机四个 agent 的 **默认模型**、**模型列表**与**降级顺序(额度优先级)**。写回磁盘前一律先备份,写后回读校验, 校验不过自动回滚。
安装
前提:DeepSeek Harness(dsh)已装好,`$DSH_HOME` 可用,profile 里能跑 `pnpm`。
# 方式 A:从本仓库目录装(开发时最省事)
dsh plugin --profile desktop add file:/path/to/dsh-agent-model-hub
# 方式 B:从 npm 装(若已发布)
dsh plugin --profile desktop add dsh-agent-model-hub
装完**必须做两件事**,否则插件不会出现在界面上:
- 把包名手工写进 profile
package.json的dsh.profile.bundles数组 (dsh plugin add只透传 pnpm,不代写这一幕); - 重启 DSH 桌面端(Host 侧改动只在重启后生效)。
`cordis.patch.yml` 里 `profilesDir: !!js dshHomePath('profiles')` 由 Loader 求值, 不依赖环境变量或 profile 名;求不到时 Host 半边退回 `$DSH_HOME` → `~/.dsh`。
渠道表从哪来
**权威来源是你自己的 `$DSH_HOME/cordis.patch.yml`** —— 插件读里面 `llm-pi-ai` 的 `providers`,每条路由变成页面上的一个渠道,端点与模型清单逐字照抄。 `lib/channels.js` 里的静态表只是**读不到 yml 时的兜底**。
所以换一台机器、换一套渠道配置,插件都能直接用,不需要改代码。 公开服务商(智谱 / 阿里云 / DeepSeek)的官方端点写在静态表里没问题; 自建网关那种「只有部署方知道」的地址一律走环境变量,见下面的渠道表说明。
测试对运行环境的要求
`test/run.mjs` 的读取类套件以**运行者本机真实配置**为夹具(缺哪个就跳过对应断言), 写入类套件一律在临时沙箱副本上跑。所以在没有 Hermes / Codex / dsh 配置的机器上, 测试会「通过但覆盖变少」,而不是报错。想跑满全部断言,需要本机至少有 `~/.claude/settings.json`、`~/.codex/config.toml` 和一份 `$DSH_HOME/cordis.patch.yml`。
一、管谁、写哪里
| agent | 默认模型 | 模型列表 | 降级顺序 |
|---|---|---|---|
| Hermes | %LOCALAPPDATA%\hermes\config.yaml → model.default + model.provider |
同文件 custom_providers[].models(字典形式,保留每条的 context_length 与注释) |
原生 fallback_providers({provider, model} 有序列表) |
| Claude Code | ~/.claude/settings.json → env.ANTHROPIC_MODEL |
同文件六个 env 槽位(ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU,FABLE}_MODEL、CLAUDE_CODE_SUBAGENT_MODEL) |
❌ 无——只能靠命令行 --fallback-model,settings.json 存不下 |
| Codex | ~/.codex/config.toml → model + model_provider |
~/.codex/models.json → models[].slug(新条目从已有条目克隆元数据) |
❌ 无任何机制 |
| dsh | agent-default-model 行:当前 profile 的 cordis.patch.yml 优先,否则 $DSH_HOME/cordis.patch.yml |
$DSH_HOME/cordis.patch.yml 的 `llm-pi-ai.co |
Related Skills
Backend Config
Inspect or change the backend team's configuration — model tiers, human gates, review panels, loop caps, compu
Amux API
A unified AI model hub for aggregation & distribution. It supports cross-converting various LLMs into OpenAI-c
New API
A unified AI model hub for aggregation & distribution. It supports cross-converting various LLMs into OpenAI-c
MCP Vps Toolkit
Policy-gated MCP server that lets Claude, Cursor and other AI agents inspect and operate a Linux VPS safely: r
Lodeline
Open-source config scanner for AI coding agents: scores the permissions, hooks, sandbox and MCP settings of Cl
Crew Config
Configure CodeCrew settings - model tiers, default mode, token budgets, and more. Subcommands: show, set, rese
Related Agents
Ds Flash
DSH (DeepSeek Harness) worker on the flash tier - fast and cheap. Delegate simple, well-scoped subtasks: mecha
Backend Format Expert
Domain advisor for AI CLI transcript formats (Claude, Codex, Pi, Hermes, agy), SQLite stores, Protobuf wire fo
Sm Readers
Owner of the Readers part. Everything the plugin knows comes from files on this PC. Its code: server/sources/,