Introduction¶
When running a DS Bot team on DeepSeek Harness (DSH), manually changing the model in each bot’s settings card one by one becomes an error-prone chore as the team grows: a mix of old and new models lingers, and states drift out of sync. This plugin adds a card to the plugin settings page that lets you switch all bots in the DS Bot team to the same model in one go, or configure them individually, all through DS Bot’s own update-bot endpoint.
What This Is¶
dsh-bot-model-switch is a DSH plugin designed for DS Bot, maintained by DamonKoy. Its core value is providing a single place to batch-manage the team’s model and thinking effort settings, eliminating the state drift and oversights that come with manual per-bot configuration.
Core Features¶
- Batch mode: Pick a model and apply it to all bots. Scope can be “All” or “All except the primary bot”; the pre-write preview lists bots that will be skipped.
- Per-bot mode: One row per bot, showing the current model, a model selector, an optional thinking effort level, and a read-only context toggle. Only rows that actually changed are written; untouched bots receive no request.
- Pre-check, not all-or-nothing: Bots that cannot handle the target model are named and skipped rather than aborting the entire batch. An explicit host rejection counts as a per-row result; only unexpected errors—network failures, 5xx responses, or unreadable responses—abort the whole batch.
- Undo and true rollback: The last 5 records are stored in the browser’s
localStorage(keydsh-model-switch.undo.v1). Undo verifies each bot is still at the value written in that round, skipping any that were changed in the meantime by someone else. If a batch fails midway, already-modified bots are restored to their original model and effort in reverse order; those that cannot be restored are named and listed. - Batch-unified thinking effort: The batch panel requests the available levels from the target model (
efforts(<model>)) and lists only the levels it actually supports; the level is sent only if the target model supports it. If the model does not support a given level, that bot still gets its model switched, and the preview marks each entry as “model switch only” or “with effort level”. - Context is read-only: The per-row “Context” toggle fetches
run-statsfrom the host only after being opened: at most 2 concurrent requests, cached per bot. It displays “estimated next-turn usage / context window”; values the host does not report show as—. This is display only, not a setting—DSH has no bot-level context field to write to. - Post-switch read-back verification: After each write round, the team is re-read and each bot’s actually-effective model is compared (per-bot mode also compares the effort level). A bot whose write succeeded but whose model did not take effect is flagged as “written but not effective”: it is not counted as a failure and does not trigger a rollback.
- Copy a row: The
→button on a per-bot row copies that row’s model and effort to other rows. It is a purely local operation with no storage involved.
Installation & Enablement¶
Add it via DS Bot’s plugin manager:
dsh-bot-model-switch
Or in a terminal, install it into the profile DS Bot is actually using:
dsh plugin --profile <profile> add dsh-bot-model-switch
Install from GitHub source:
dsh plugin --profile <profile> add github:DamonKoy/dsh-bot-model-switch
Restart DS Bot once so the bundle patch takes effect. The card will then appear under the “Batch Switch Model” section on the plugin settings page. The card registers under the package name dsh-bot-model-switch—the host recognizes the settings section by this exact name; if the name does not match, the entire settings section will not render.
Typical Usage¶
- Open the “Batch Switch Model” card on the plugin settings page, select batch mode, choose a model in the target model selector, set the scope (All or All except the primary bot), and after confirming, the preview will list bots that will be skipped.
- In per-bot mode, check or modify a row, set the thinking effort level (if the target model supports it); only the changed rows trigger a write—unchanged rows are left untouched.
- If the operation fails midway, click the Undo button to restore from one of the last 5 records. If a batch fails and some bots have already been modified, the plugin attempts a rollback in reverse order and lists any bots that could not be rolled back.
Applicable Scenarios & Notes¶
- Ideal for scenarios where you need to unify or adjust models and thinking effort levels across a DS Bot team, especially when the team is large and manual per-bot configuration is prone to oversights or state inconsistency.
- The plugin requires a DS Bot host and was developed and tested against DSH 0.2.1-rc.4. It declares compatibility with
engines.dsh >=0.2.1-0 <0.3.0-0 || >=0.2.2-alpha.2 <0.3.0-0(the 0.2.2 line is declared compatible but not tested in practice). The plugin callsPOST api/bot, an endpoint DS Bot adds on top of DSH for the team view; the nativedsh webdoes not provide this route—the card loads but reads returnunauthorizedwith no model list. - The plugin only manages the model of each bot in the current DS Bot team on this machine. It does not handle channel management, routing, or adding/configuring providers.
- Undo records are stored in the browser’s local storage, tied to the browser profile; clearing site data will invalidate them.
- The plugin does not touch
state.json, session storage, or any credentials, and makes no network calls beyond the same-originapi/bot. - The directory also lists another community-maintained plugin,
dsh-model-switch, which routes models by role within a single Harness session. This plugin changes the model of each bot in a DS Bot team. Pick whichever matches what you are actually running.
Brief Conclusion¶
This plugin turns multi-bot model switching from per-bot configuration into a single decision, reducing the risk of state drift. Directory page and source code links:
- https://www.skillhub.cn/plugins/DamonKoy/dsh-bot-model-switch
- https://github.com/DamonKoy/dsh-bot-model-switch