Apply the current session's model to every other session in one click, from a control beside the composer's model picker.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:SYXliuliuliu/dsh-apply-model-all
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Apply the model you are using right now to every session — one click, instead of opening each session and picking it again.
DeepSeek Harness stores model choice per session. The official default-model setting
only covers sessions that have not chosen one yet, and /model only changes the session
you are currently in. So there is no built-in way to move a whole session history onto one
model at once. This plugin adds that control.
What it adds
A compact control next to the composer's model picker. The shipped picker is left completely untouched:
[⇉ Apply to all sessions] [ deepseek-v4.1-flash ▾ ]
^ the shipped picker, unmodified
Click it, confirm the target model, and it writes that choice into every session that can hold its own. A live count is shown while it runs.
How it works
It does not patch an official bundle, rewrite session logs, or edit projection caches. It
calls the same public host API the built-in /model dialog calls:
sessionController.list({}) → every session, with its current model
sessionController.selectModel({ sessionId, … }) → set one session's model
Because the write path is the official one, session state stays in the official format, uninstalling changes nothing, and a future Harness that renames these methods costs you this plugin only — never the rest of the app.
The batch runs on the host, not in the browser, so closing the tab does not interrupt it. The client half only starts the run and polls its progress.
Read before writing (deduplication)
selectModel resolves and resumes each target session, which is by far the most expensive
part of the operation, and it has no "already correct, skip" short-circuit. So the plugin
reads every session's current model from list() first and skips the ones that already
match — a repeat click on an already-unified history finishes immediately instead of
redoing all the work.
Comparisons use provider and model only, never reasoning effort. That is deliberate: reasoning effort belongs to the settings layer and is not part of a session's stored model selection, so sessions report it as empty. Comparing it made the dedupe never match, which silently turned every repeat click back into a full rewrite.
Scope and limits
| Case | Behaviour |
|---|---|
| Sessions that can hold their own model | Updated — this is what the control acts on |
| Subagent sessions | Not touched. They follow their parent session's routing, and the host rejects per-session selection for them (owned by subagent routing). Change the parent and they follow. |
| A session already on the target model | Skipped, no write |
| A session locked by another process | Reported as failed, with the reason |
Sessions held by a live write handle in a different process cannot be written from the
outside; the usual error is already owned by an active write handle. Clicking the control
inside the running app does not hit this, because the lock holder is the same host.
Worth knowing: the underlying call also saves the chosen model as the default in the background, so new sessions will start on it too.
Install
dsh plugin --profile <your-profile> add dsh-apply-model-all
Restart the app afterwards — bundle patch layers and client bundles are both loaded at startup, so neither takes effect while it is already running.
Configuration
None. There are two host routes and no settings surface:
POST /apply-model-all/start {provider, model, reasoningEffort?} → {runId}
GET /apply-model-all/status → {run: {…}}
Only one run may be active at a time; a second request returns 409 with the in-flight
progress. Failures are grouped by reason in the response rather than repeated per session,
and failure detail is capped at 50 entries.
Requirements
- DeepSeek Harness
0.1.0-rc.6or newer. - The web UI (the control lives in a composer slot).
License
MIT
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 90775
Adds free model lanes to DeepSeek Harness — DeepSeek V4.1 Flash, Kimi K3 and others — with no login, sign-up or API key, plus a local OpenAI-compatible gateway, fallback routing and a usage dashboard.
dingminhua/dsh-connect-workbuddy★ 2129
Connects locally signed-in WorkBuddy models, CN and international alike, to DSH, reading each model's credit multiplier from the upstream catalog on every refresh, with per-model image input toggles, account switching backed by an auto-failing-over pool, manual daily check-in, and read-only credit overviews shown as compact pills on the card and in the composer.
Alice-Marx/dsh-model-router★ 1026
Routes DeepSeek Harness work across configured model APIs and supported vendor CLIs with dependency-aware packages and cost previews.
V1ki/dsh-plugin-subscriptions★ 646
Use ChatGPT (Codex), Claude, and Grok subscriptions as DeepSeek Harness LLM providers, with Settings login, model catalogs, usage, plus image_generate, video_generate, and x_search tools.
XDTrees/dsh-workbuddy-xdpool★ 638
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool (multi-account rotation, live credits, and a model catalog showing per-model credit multipliers and free/night-discount tags).
XDTrees/dsh-xdpool★ 638
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool: multi-account rotation, 429 cooldowns, live credits, a model catalog with per-model credit multipliers and free/night-discount tags, QR-code login for 13 vendors, and aggregate free-tier channels. Accounts persist across restarts.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.