Model quick picker for DeepSeek Harness: a button left of the model dropdown opens a full model-selection dialog with provider grouping, live search, provider filter, capability tags read from the user's own input config, reasoning badges, recent-model shortcuts and a reasoning-effort picker; the choice writes back to the native dropdown immediately.
Install
# from npm (prebuilt)
dsh plugin --profile web add @faxble/dsh-model-picker
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:faxble/dsh-model-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
Adds a small button to the left of the model dropdown in the bottom-right of a
DeepSeek Harness session window. Clicking it opens a full model-selection popover:
grouped by provider, with live search, provider filtering, real capability tags,
reasoning badges and highlight of the currently selected model — loading, failure
and session-occupied states are all clearly presented.
The selection writes back to the native model dropdown and takes effect
immediately, because it shares the exact same per-session model directory and
selectModel submission path as the native dropdown ("switch on either side,
the other updates instantly").
Screenshots


- Trigger button: 28px circular icon button, placed flush to the left of the model dropdown, styled like the "+" button in the composer toolbar (hover / focus ring / disabled states all included).
- Selection window (centered modal, themed with CSS variables, adapts to
light/dark themes):
- Header: title + provider/model count + close;
- Recently used: models you picked before (up to 8, auto-recorded,
persisted locally), each row showing
provider · model(e.g.Volcengine · deepseek-v4-flash-ga) — one click switches back; - Provider filter: custom dropdown to the left of the search box (all
providers / a single provider), rendered with theme colors (no native
<select>, avoiding a glaring system panel under dark themes); - Search: fuzzy match on model name / model id / provider name, ↑↓ to move the highlight, Enter to select, Esc to close;
- List: grouped by provider (DeepSeek account / official first), groups with a color bar and a count badge; each row shows the full model name + capability tags + a "reasoning" badge + a "current" badge + a selection check; large lists render lazily on scroll (opens faster);
- Footer: current model summary + reasoning-effort picker + close button;
- States: loading (spinner), load failure (retry), per-provider load failure (individual messages), current model no longer routable (warning), session busy (dedicated copy).
Capability tags are real data
The inline 📝 text / 🖼️ image tags are not guessed from model description
text — they are read from the input lists declared in the user's own config
(pi-ai provider config, e.g. providers.<id>.models[].input: [text, image]).
The implementation reads the settings document through DSH's existing settings
Remote and scans providers → models[].input across namespaces to build an index;
providers without an input field in config show no tags (an honest reflection of
config, no guessing). Add or remove input in config and the tags update
accordingly.
Contract note (verified): tags are looked up by
group.id, which shares a namespace with the provider config keys in settings (DSH's modelCatalog usesprovider.idas the group id andprovider.nameas the display name). So a config key likeproviders.volcengine-agent-planis matched reliably; should a future DSH change this naming contract, the tags silently disappear (no error) while the rest of the plugin keeps working.
Why config is the only source (verified): the model objects returned by the browser-side
modelCatalogRPC carry onlyid/name/description/reasoning— noinput: DSH's Host side drops theinputfield when it projects the browser catalog (seebuildModelCatalog). So the plugin cannot fall back to the model directory for capabilities; config is the only browser-visibleinputsource. To show capability tags for a model, declareinputfor it in the pi-ai provider config:# inside your profile's cordis.patch.yml, under the llm-pi-ai provider config models: - id: deepseek-v4-flash-ga-260731 input: [text, image] # once declared, the plugin shows the text/image tagsThis also explains why the same model id can show different tags for different users — the tags honestly reflect each user's own config, not the model's objective capabilities.
How it works
- Registers into the
conversation.input.rightslot of the composer — an official extension point withkind: list,scope: session. The composer bar renders this slot before the model seat (conversation.input.model), so the button naturally appears to the left of the model dropdown. ctx.inject(['slots', 'modelDirectories'], …)providesctx.modelDirectories(the shared service registered by@deepseek-ai/dsh-client-ui-model-selection), resolving to the sameModelDirectoryinstance the native dropdown uses for the current session.- Selecting a model in the popover calls
directory.select({ provider, model, reasoningEffort })→ the exact sameselectModelRPC as the native dropdown. On success the shared store updates, the native dropdown label writes back automatically and the session model switch takes effect immediately. - Capability tags are read via the
settingsRemote injected byctx.inject(['…', 'remote', 'remote.settings']):settings.describe()returns the merged config across namespaces, from whichprovider → model → input[]is extracted. Note thatremote.<namespace>must be explicitly listed in the inject array (a cordis rule) — injecting only the rootremoteraisescannot get property "remote.settings" without injecton access. - Subagent-addressed sessions have no model directory, so the button hides automatically.
Installation
Works with both the web and desktop profiles (a platform: web plugin takes
effect in both).
Method A: Install from npm (recommended)
dsh plugin --profile web add @faxble/dsh-model-picker
For the desktop app, swap web for desktop:
dsh plugin --profile desktop add @faxble/dsh-model-picker
A prebuilt package skips the allowBuilds build-approval step. After installing,
restart DeepSeek Harness and enable @faxble/dsh-model-picker under
Settings → Plugins, or confirm it was auto-enabled.
Method B: Install from GitHub source (no clone)
dsh plugin --profile web add github:faxble/dsh-model-picker
Method C: git clone, then install locally (developer/debug use)
git clone https://github.com/faxble/dsh-model-picker.git
dsh plugin --profile desktop add /path/to/dsh-model-picker
Method D: Add manually to the profile
- In the profile (default
%USERPROFILE%\.dsh\profiles\desktop)package.json:- add
"@faxble/dsh-model-picker": "file:D:\\Dev\\VibeCoding\\dsh-model-picker"todependencies; - add
"@faxble/dsh-model-picker"todsh.profile.bundles.
- add
- Run
pnpm installin the profile directory. - Restart DeepSeek Harness.
Project structure
dsh-model-picker/
├── package.json # package metadata + dsh.client declaration (platform: web)
├── index.js # host half (no-op, just carries the bundle line)
├── cordis.patch.yml # bundle patch: a one-line insert (name is the bare package name)
├── client.js # browser half: ModuleLoader bundle (built from src/)
├── install.ps1 # install script (web / desktop)
├── src/ # source (ES modules, for development)
│ ├── dict.js # zh/en copy dictionaries
│ ├── pure.js # pure logic: sorting / search scoring / MRU / tags (unit-tested)
│ ├── style.js # CSS (theme tokens)
│ ├── icons.js # inline SVG icons
│ └── entry.js # ModuleLoader bundle entry (component + apply)
├── scripts/build.mjs # esbuild bundler
├── test/ # node:test unit tests
└── README.md
Notes
- Pure frontend plugin: no runtime build step, no runtime dependencies (only
the
reactalready provided by the shell); all colors come from DSH theme CSS variables, and switching light/dark themes needs no reload.client.jsis a build artifact generated fromsrc/viapnpm build. - Modifies no DSH core code;
conversation.input.rightcurrently has no other consumers, so registering it shadows nothing. - UI copy is bilingual (zh / en) and follows the DSH system language automatically — non-Chinese users can use it as-is.
- Extras: recently-used (MRU) section pinned on top, ranked search
(exact > prefix > substring), a reasoning-effort picker, lazy rendering
for large model lists, and accessibility support (focus trap, focus restore,
aria-live, keyboard navigation).
- Each recently-used row reads
provider · model(e.g.Volcengine · deepseek-v4-flash-ga); the provider is shown on the LEFT of the model name, localized and dimmed, so the same model id under different providers is never ambiguous.
- Each recently-used row reads
- Theme note: do not use
--dsw-alias-brand-textfor selected-row text color — its semantics is "text on the brand color block" (designed for light themes); under dark themes it resolves to a dark color that becomes unreadable on a soft highlight. Use--dsw-alias-label-primaryfor text.
Development & debugging
After editing
src/, runpnpm buildto regenerateclient.js, then copy it into the profile to trigger an HMR hot reload (no page refresh needed — DSH detects the file change and reloads the bundle):pnpm build Copy-Item .\client.js $env:USERPROFILE\.dsh\profiles\desktop\node_modules\@faxble\dsh-model-picker\client.js -ForceUnit tests:
pnpm test(node --test, covers the pure logic insrc/pure.js).Build check:
pnpm check(node --checkon artifacts). CI fails if the committedclient.jsis stale — always build after editingsrc/.For source edits to take effect instantly (no copying), install with a
link:symlink instead.To remove the plugin: uninstall
@faxble/dsh-model-pickerunder DSH Settings → Plugins.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10735
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★ 10735
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★ 8661
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7538
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★ 5419
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1103
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.