Introduction¶
When changing models or adjusting reasoning levels in DeepSeek Harness (DSH), the default interface often takes up space and has scattered entry points. If you also have subscription-based plugins installed, there may be separate controls for normal speed and “Fast Mode”, causing duplication and accidental misclicks. The community plugin dsh-codex-model-selector replaces the official model slot with an independent style, consolidating the model entry, reasoning strength slider, and frequently-used model list into one compact card. Model and level data still flow through the official modelDirectories, and selection results are still saved via the original session interface without creating a separate configuration source.
What is this¶
dsh-codex-model-selector is published by maintainer vb2250158, positioned as “Compact Codex-style model and reasoning selector for DSH” — a Codex-style model and reasoning selector for the Web client. Its display name in the plugin list is English Model & reasoning selector and Chinese 模型与推理选择 (switches with the DSH interface language).
The component is based on the ModelSelect released by DeepSeek under the MIT license, originally from packages/client/ui-model-selection in deepseek-harness; this repository maintains the plugin changes separately and retains the copyright notice. The current package version is 0.1.17; the README states it requires DSH 0.2.1-alpha.1 or a compatible 0.2 series, with details in docs/dsh-0.2-compatibility.md in the repository.
Core Features¶
Compact card in the input area¶
After enabling, the plugin occupies the DSH model-related UI slots, providing:
- Model entry: The button displays “model name · provider” (name, capitalization, and spacing taken from the model directory; if the directory is missing, the original ID is retained); the reasoning level is displayed separately. The strength text, model name, and provider in the center of the card share one model-switching button; the provider name comes from the current directory, displaying the provider ID if missing, and can be hovered over to view the full text if too long.
- Reasoning strength: The slider below and the reset button on the right adjust thinking strength; during dragging, the card text previews the level in real-time, and it commits once after release; cancelling the drag restores the saved level.
- Search and directory: The model list supports local search by provider or model name/ID; the full directory and search are folded into “More models”. Data still comes from the official
modelDirectoriesservice, retaining behaviors such as grouping, load retry, and failure feedback.
Disabling or uninstalling the plugin releases the model slot and styles, restoring the official selector; no need to modify the official source code.
Frequently used models (last 30 days)¶
The model entry prioritizes showing up to 6 most frequently used models in the past 30 days, each displaying the model name and provider from the directory; the redirect dropdown in the rule editor shares the same list.
Ranking logic (since README 0.1.5):
- Merge the actual assistant request count recorded by the installed usage plugin on
/usage/apiwith the number of successful model switches by this selector; when counts are equal, most recent usage takes priority. - Identified by provider + model ID together; hidden or unavailable directory items do not occupy a frequently-used slot.
- Successful selection records are stored in the current browser; rule drafts, failed selections, and reasoning level adjustments are not counted toward switch counts. When the usage API is unavailable, there will be a prompt, and existing records are used; the full directory remains functional. After client updates, the page needs to be refreshed to take effect.
When there are no historical records, the “More models” entry is still retained.
Fast mode and subscription plugins¶
If a subscription-based plugin providing loadSpeed / setSpeed is installed, this plugin’s “lightning” button reuses that injected interface: it is only operable when the current model directory confirms support for the fast level. When fast mode is enabled, the collapsed model button shows a solid lightning bolt before the model name; the first load also reads the existing speed state. The README notes that fast mode uses more usage.
When this plugin is enabled, a higher-priority empty view on the same slot replaces the official normal speed control to avoid duplicate entries; after uninstalling this plugin, it automatically restores.
Theme and interaction¶
Colors inherit DSH theme variables; the plugin mainly adjusts layout, sizes, and control shapes without overriding theme colors. Since 0.1.14, menus choose their expansion direction based on remaining viewport space and limit height; since 0.1.15, floating menus are rendered outside the scrolling panel and scroll/scale with the entry, with search, reasoning controls, and keyboard focus kept within the menu. Temporary focus loss caused by saving does not close the card; clicking outside or pressing Escape can close it.
API reusable by other plugins¶
Since 0.1.11, a public client service modelPickers.Picker is provided, with properties including sessionId, current, locked, and select: it reuses the visible models from the current session directory and the same frequently-used records, only returning an independent draft selection to the caller, without changing the current session model. Callers load this plugin through a client dependency declaration and inject the modelPickers service; embed mode expands within the parent floating layer, with menu material provided by the theme MenuSurface. onOpenChange allows the outer menu to pause “click outside to close” when the popup opens.
Since 0.1.13, modelPickers.Control has the same properties as Picker, reusing the single-line model/provider/strength display in the input box, frequently-used models, searchable directory, and reasoning slider; saving is handled by the caller, returning false does not count as a successful selection, and the component itself does not switch the session model.
0.1.3 also provides the settings.model-redirect.picker slot for model list settings, sharing the ModelSelect search dropdown with the input box; rule editing only returns drafts and does not switch the current session.
Installation and enabling¶
The installation command must use the form given in the repository README, replacing <commit> with the full commit hash of this repository (plugin code and build artifacts are delivered with Git; user settings, credentials, and chat records are not in the repository):
dsh plugin --profile web add github:vb2250158/dsh-codex-model-selector#<commit>
After completion, restart DSH and refresh the page. The plugin targets the web profile (dsh.client.platform in package.json is web).
The maintainer’s local verification methods are:
pnpm test
pnpm run build
Typical usage¶
Daily model switching and reasoning adjustment in the Web client¶
- Install and restart/refresh the DSH Web client as described in the previous section.
- Open the plugin card in the input area: select a model from the frequently-used six items or “More models”; use search to filter by name or ID if necessary.
- Use the slider to adjust reasoning strength, releasing to save; use reset to restore the default level if needed.
- If the directory supports it and the corresponding subscription plugin is installed, you can toggle fast mode via the lightning button (note usage).
Embedding the selector in custom plugins¶
Other Cordis plugins that only need to change the “draft” model without touching the current session can declare a client dependency on this plugin, inject modelPickers, and use Picker (popup) or Control (single-line compact control). Selection results are persisted by the caller; this component’s successful switch statistics are only counted in browser-side records when the user completes and successfully saves via this selector.
The specific injection method is subject to the DSH 0.2 client dependency and Cordis service documentation; this README only explains the service names and semantics, not providing a complete example project.
Use cases and notes¶
Who is it for
- Developers who work on agents in the DSH Web client long-term, frequently switching models and reasoning levels.
- Users who want a more compact input area with frequently-used model ranking aligned with the usage plugin.
- Maintainers writing DSH plugins who need to provide model selection UX consistent with the main interface in settings pages or floating layers (
modelPickers.Picker/Control).
Please be aware before using
- The plugin runs in the current DSH process and browser context; before installation, it is recommended to read the GitHub source and the MIT license; user credentials and chat data are not distributed by this repository.
- Frequently-used model ranking depends on the optional usage plugin and its
/usage/api; if not installed or the API is unavailable, the feature degrades to no ranking prompt, but the directory remains usable. - Fast mode depends on the speed interface and model directory capability declarations provided by subscription plugins; not all model combinations are available.
- The community directory SkillHub plugin page and GitHub are independent information sources, with no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem follows “everything is a plugin”, and the local installed commit and DSH version prevail.
Conclusion¶
dsh-codex-model-selector replaces the Web-side model and reasoning interaction using plugin slots without modifying the official backend, and optionally integrates with usage and subscription capabilities; if you need a Codex-style compact selector or an embeddable modelPickers service, you can get the commit from the directory page or the repository README and install it via the above command.
- Directory page: https://www.skillhub.cn/plugins/vb2250158/dsh-codex-model-selector
- GitHub: https://github.com/vb2250158/dsh-codex-model-selector