DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

SunspotAlgo /

SunspotAlgo/dsh-pin-default-model

Verified

Pins the DeepSeek Harness default model so switching models inside a session no longer changes what new sessions start with.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@9d345a7e

dsh-pin-default-model

English | 简体中文

Pins the DeepSeek Harness default model so switching models inside a session never changes what the next new session starts with. Change the pin any time from Settings → Default model pin.

Default model pin settings section

The problem

DSH records a model change made inside a session as the new process-wide default. In sessionController.selectModel() the choice is applied to the session, and then agentDefaultModel.saveSelection() rewrites the profile patch with the same selection.

The visible effect: every new conversation — hand-made or created by a scheduled task — silently inherits whatever model you picked last, instead of the default you configured. There is no setting that turns this off.

What this plugin does

It replaces saveSelection on the live agentDefaultModel service with one that refuses to move the default away from the pin:

Action Result
Switch models inside a session ✅ works, that session uses the new model
New session afterwards ✅ still starts on the pinned model
Change the pin in Settings ✅ applies to all later new sessions
Unload the plugin ✅ original behaviour returns

The browser page talks to two local host routes with plain fetch; it has no dependency on DSH's settings-client services, so it loads regardless of plugin activation order.

Configuration

Open Settings → Default model pin and pick a model from the grouped dropdown, then press Save. The pin is written to the profile and survives a restart.

It can also be set by hand in cordis.patch.yml:

- insert:
    - id: dsh-pin-default-model
      name: 'dsh-pin-default-model'
      config:
        provider: magpie
        model: group/x-call
Field Required Meaning
provider yes Provider route to hold, e.g. magpie, workbuddy-ai
model yes Model id on that route, e.g. group/x-call
reasoningEffort no Reasoning effort to hold with it

With no pin configured, the bundled default magpie / group/x-call applies.

A change affects sessions created after it is saved. An open conversation keeps the model recorded in its own request log.

Safety and caveats

  • All operations are local. No telemetry, no uploads, no network calls.
  • Every destructive-looking action is avoided: the original session model switch is untouched.
  • This plugin replaces an internal service method (agentDefaultModel.saveSelection). A future DSH update that renames or restructures that method may make the pin ineffective. The change is installed on the live service instance and fully reverted when the plugin unloads.

Install

From the DSH app: Settings → Plugins → Install, then search dsh-pin-default-model.

Or from a terminal:

dsh plugin --profile web add dsh-pin-default-model

Published on npm.

Requirements

  • DeepSeek Harness >= 0.2.1
  • Node.js ≥ 22
  • Zero runtime dependencies

Development

node --check lib/index.js
node --check client/client.js
node test/behaviour.mjs
node test/client.mjs

License

MIT. See LICENSE.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout
—/ 5

No ratings yet

Verified DSH bundle

Commit 9d345a7e0173

Community comments

No comments yet. Be the first to write one.