Rebuilds the composer model picker as a source-first menu: the first level lists the model sources enlarged, each with an initial badge, its model count and which model is current, and the models of a source open one level down, with a search box once a source has more than six models and a row per model showing its reasoning-effort count or its description. Reasoning effort is its own row on the first level, or a third level for models that carry efforts. It occupies the conversation.input.model seat at priority -20 and reads the same catalog as the /model command through the modelDirectories service, so the two agree on what is selectable; a failed registration logs and hands the seat back to the shipped picker.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:BEAVER-fishcake/dsh-model-source-picker
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
English version. The original Chinese version is README.md.
A provider-first model picker for DeepSeek Harness. It turns the model selector on the composer into a two-level structure of "pick the source first, then the model": the model source is enlarged at the top level, and the concrete models live one level down.
Install
dsh plugin --profile desktop add github:BEAVER-fishcake/dsh-model-source-picker
If nothing changes after installing, toggle the bundle off and on again in the plugin manager (or restart the app) — that is more reliable than refreshing the page repeatedly; see "Diagnosis" below for why.
Requirements: DeepSeek Harness >= 0.2.1 (it uses the modelDirectories service), Node >= 22. The plugin only occupies a client-side UI seat; it does not touch the agent loop, tools or prompts.
What changed
| Stock picker | This plugin | |
|---|---|---|
| Composer trigger | icon + model name | source (e.g. TokenPlan) + model name + reasoning effort |
| Menu level 1 | every model of every source, flattened | source list (enlarged names, initial badges, model counts, current-source marker) |
| Menu level 2 | none | models of that source (searchable, current one checked, descriptions and reasoning-effort counts shown) |
| Reasoning effort | flattened into the menu | its own row on level 1, or a third level for models with effort tiers |
Interaction
- Click a source -> its model list;
‹ Model sourcesin the top left orEscgoes back one level - A search box appears when a source has more than 6 models; just start typing to filter
- Selection takes effect immediately; nothing outside the session is closed
- Switching is still possible while a session is running (same as the stock picker)
- Sub-agent sessions do not show this control (same as the stock picker)
Implementation
- It reuses the official plugin's model catalog entirely: it takes the
conversation.input.modelseat atpriority: -20and gets the same store used by the/modelcommand throughctx.get('modelDirectories').directoryFor(sessionId)(load()/select()). It issues no requests and builds no catalog of its own. Priority -20 overrides both the stock picker (0) and the replacement shipped bydsh-codex-subscription(-10). - The dynamic client half receives a restricted ctx (only
get/on/provide/effect), so every service is read withctx.get()and null-checked individually instead of gating on a top-levelinject— silently failing to mount because one service is missing is the hardest failure mode to debug. - Styles use theme tokens only (
--dsw-alias-*,--dsw-font-*), so light/dark mode is automatic; the menu is portaled todocument.bodyto avoid being clipped by the docked composer. - Text goes through locale (namespace
model-source-picker, Chinese and English); if locale registration fails it falls back to built-in strings. - If registration fails it logs
[model-source-picker] ...and abdicates the seat, so the composer falls back to the stock picker instead of breaking the UI.
Files
lib/client.js— browser half (all the UI)lib/index.js— host half (placeholder so the package is valid in both halves)cordis.patch.yml— bundle patch, inserts themodel-source-pickerlinepackage.json—dsh.bundle.patch+dsh.client{ platform, immediately }
Diagnosis
shell.overlay contains a model-source-picker-probe placeholder entry that draws nothing: its only purpose is to prove that this bundle really is running in the page. Check the occupants of shell.overlay in the Slots inspector to separate "the module never reached the browser" from "registration was rejected".
If the UI looks unchanged right after installation, the new plugin row has not entered the client module graph yet: disable dsh-model-source-picker and enable it again in the plugin manager (or restart the app). That is more reliable than refreshing the page repeatedly.
Disable / uninstall
Disable the bundle dsh-model-source-picker in the plugin manager, or delete the insert line in cordis.patch.yml; refresh the page and the stock picker is back.
License
MIT.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10669
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10669
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8366
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7489
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5362
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1070
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.