dsh-model-pin
Run the following command in DeepSeek Harness:
dsh plugin install d3vmeh/dsh-model-pin
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install d3vmeh/dsh-model-pin to install the plugin, available at https://github.com/d3vmeh/dsh-model-pin, then configure your allow-list and fallback in the profile settings as described in the README.
About this plugin
On a machine that can only keep one local model loaded, DeepSeek Harness still lets every chat and background helper pick its own. Each stray request either fails outright or evicts the loaded model, triggering minutes of reload and wiping the prompt cache. Subagents add a subtler trap: they inherit the model locked in when their parent session was created, not the one actually in use, so they silently land on stale or wrong routes.
dsh-model-pin injects an allow-list into the internal resolution layer of dsh (the agent/request waterfall). Every request from every session is checked against the list at step boundaries: subagents, retries, session-title and compaction calls. A request that falls outside the allowed set is either redirected to a fallback or rejected with a clear, human-readable message. Providers you never configure are left entirely untouched, and persisted session data is never rewritten.
If you run a single local model via llama.cpp and want to keep it loaded, or work in headless and CI pipelines where a rogue subagent must not quietly swap models, dsh-model-pin is a config-first, restriction-focused guard. It is deliberately not a router: cross-provider redirection is out of scope for v1, and the web model picker still shows the model you clicked even when the pin silently redirects the request to the fallback.
Use Cases
- Prevent subagents or background helpers from silently switching to a model that is not loaded on your single-model local inference box
- Keep every request within the allowed provider model set in headless or CI pipelines
- Avoid an out-of-list request triggering a llama.cpp router reload and losing your prompt cache
Best For
- Developers and researchers who keep a single local model resident at all times
- Ops engineers running headless servers or CI pipelines who need strict model route restriction
- dsh users frustrated by subagents inheriting a stale model from their parent session
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.