Preface¶
When writing in the Composer within DeepSeek Harness (DSH), the model selection menu typically lists a long string of models laid out flat by source. When there are many sources, finding frequently used models requires repeated scrolling. The native menu also offers no help for assigning short names to long model identifiers or hiding entries you don’t need. The following is a purely client-side plugin by maintainer oliblue-evan called dsh-model-organizer (npm package name dsh-liao-models): it only enhances the Composer’s model panel, makes no network requests, and stores preferences locally in localStorage. It was rewritten from the ideas of the community plugin dsh-model-fold, and addresses issues such as style leakage, accidental interference with the /model popup, and uncleaned listeners through scope isolation and dispose reconciliation. The README includes regression test notes.
What Is This¶
Model menu organizer: The main menu lists only vendors (and the number of visible models). On hover or click of a vendor, a floating model panel slides out from the side for that vendor. Supports pinning, recently used, search within and across vendors, aliases, and hiding. It is classified as a client-side plugin, targeting the Composer model selector in the DSH Web GUI (Electron renderer).
- Directory page: skillhub.cn/plugins/oliblue-evan/dsh-model-organizer
- Source code: github.com/oliblue-evan/dsh-model-organizer (the repository field in
package.jsonalso points to thedsh-liao-modelsrepo name)
Core Features¶
Vendor List and Model Floating Panel¶
The main menu is collapsed into a source (vendor) list. Hovering or clicking a source opens a model floating panel on the side of the menu. When space is insufficient, it automatically flips to the other side. The native menu’s top search box is used here to filter vendor names, rather than expanding all entries by model name. After finding a vendor, you can press Enter or use arrow keys to enter the corresponding floating panel.
Inside the floating panel, the default search scope is the current vendor only, with the option to switch to all vendors. Matching covers original names, aliases, and model IDs. The query text is preserved when switching scope, and global results are displayed hierarchically by vendor. When there is no query, pressing Esc, clicking outside, or selecting a model closes the panel. When there is a query, Esc first clears it. Moving the mouse away does not auto-collapse the panel.
The entry at the top-left opens a frequently used models overview (pinned, recent, and per-source). Within a vendor, models can be indented-grouped by series such as DeepSeek, GPT, Claude, etc., which can be disabled in settings. Within a group, sorting supports natural name order or rate multiplier ascending/descending (the rate multiplier is only a reference for intra-group sorting and does not represent actual cross-channel costs).
The plugin uses attributes and CSS to hide native model rows while preserving React nodes and real selection buttons, without replacing core components.
Pinning, Recent, and Organization¶
- Pinning: Click the star icon on a list row or in the organization view. Pinned models appear at the top of the overview, capped at 12. A prompt is shown when reaching the cap.
- Recent: Every model selection is recorded in recent (deduplicated, moved to front). The overview can be configured to display 4 / 8 / 12 entries, keeping up to 24 records. Changing the display count does not delete history.
- Organization view: Click “Organize” to filter all / pinned / hidden, supporting pin, hide, and rename. In the organization view, clicking a model name triggers rename without switching the current chat model.
Search, Aliases, and Hiding¶
Search in both the floating panel and overview matches aliases and original names, using subsequence fuzzy matching (e.g., typing dsv4f can match DeepSeek-V4.1-Flash). Sort priority is exact match, prefix, substring, subsequence.
- Aliases: Click “Rename” in the organization view to reveal an input. Display name and search both follow the alias; the original name and model ID can be viewed in a hover tooltip.
- Hiding: Hidden models disappear from the browsing list and browsing search. Organization view search still includes hidden items, and they can be restored at any time. Preferences use the host catalog’s vendor ID and model ID as keys, so changes to display names or cost suffixes do not affect records.
Settings Page and Preferences¶
Open settings via Plugin Management → dsh-liao-models (written to the official plugins.bundle.config, consistent with the README description). Starting from 0.9.x, a compact layout is used. Main capabilities include:
| Category | Description |
|---|---|
| Display | Panel font size 12 / 13 / 14; list density; width 300 / 360 / 440px; max height 60 / 70 / 85vh |
| Browsing | Expand on hover or click; hover delay 0 / 150 / 300ms; default search scope; reopen memory; series initial collapsed state |
| Sorting | Sort can be remembered per vendor; the settings page can open the “Organize Models” floating panel, reading the host’s cached catalog without additional model catalog requests |
| Overview | Can independently disable pinned and recent display |
| Backup | Preference JSON export, import preview, merge or replace, and undo |
The settings page and menu panel share the same localStorage. Changing font size syncs to already-open floating panels. “Restore defaults” only restores font size, grouping, and sorting, preserving model records.
Other Constraints¶
- No network access: Zero additional network requests.
- Themes: Colors use official
--dsw-*tokens, following the host’s light/dark theme. - If the core changes the model menu DOM structure, the plugin silently becomes inactive, without breaking the original menu or touching the
/modelpopup withrole="listbox".
Installation and Activation¶
Install the bundle from GitHub (README recommended; dsh.bundle self-declares its dependency, no need to manually edit cordis.patch.yml):
dsh plugin --profile <profile> add github:oliblue-evan/dsh-liao-models
Or via plugin_manager within DSH:
plugin_manager(action: "install_bundle", target: "github:oliblue-evan/dsh-liao-models")
For local development, install a directory as the bundle path:
dsh plugin --profile <profile> add /path/to/your/model-organizer
A single DSH restart is required after installation. The new bundle is mounted into the client plugin graph at startup. If the profile already has @deepseek-ai/dsh-client-hmr enabled, subsequent changes to client.js can be hot-swapped by saving and refreshing the page, without requiring a restart each time.
package.json declares the engine as dsh >=0.2.1-rc.2 <0.3.0-0. The README also documents verification on @deepseek-ai/dsh 0.2.0-rc.2 and @deepseek-ai/dsh-client-ui-model-selection 0.2.0-rc.2. After upgrading the host, if the menu is not enhanced, use DevTools to confirm that section[role="group"] > [data-menu-group-heading] and button[role="menuitemradio"] still exist under div[role="menu"].
Uninstall example (README):
dsh plugin --profile desktop remove dsh-liao-models
Typical Usage¶
- After restarting DSH, open the model menu in the Composer: you first see a list collapsed by vendor. The original search box is used to find vendors.
- Hover or click the target vendor, search or switch to “All Vendors” in the sliding-out floating panel, and selecting a model writes it to “Recent”.
- Click the star icon on frequently used models in the floating panel or overview to pin them. Enter Organize to set aliases for long names and hide unused image-type or other models.
- When you need to batch-view records or adjust display habits, open Plugin Management → dsh-liao-models: adjust font size and density, export JSON backups, or open the “Organize Models” floating panel directly from the settings page (if the catalog is not ready, the README suggests first opening the model menu once in the chat).
Use Cases and Cautions¶
Suitable for: Developers who frequently switch between multiple sources and series of models in the DSH Composer, want the menu collapsed by vendor with frequently used items prioritized, and need locally persistent aliases and hidden lists.
Notes:
- The plugin runs client-side with the current DSH process privileges. Please read the source code and the MIT license (see
LICENSEin the repository) yourself before installing. - The installation command follows the README (
github:oliblue-evan/dsh-liao-models). When coexisting with the plugin slugdsh-model-organizeron SkillHub, the documented command takes precedence. - The community directory SkillHub is an independent site with no official affiliation with DeepSeek / High-Flyer. The DSH ecosystem emphasizes “everything is a plugin.” This plugin only enhances the UI and does not modify the server-side model catalog.
Conclusion¶
dsh-model-organizer collapses the Composer model menu into a three-layer structure: “vendor + side-sliding floating panel + overview organization.” It completes pinning, recent, search, aliases, and hiding locally, and strives to confine styles and listeners to the model menu scope. For more details and test notes, see the GitHub README. The plugin entry is available at SkillHub Directory Page and GitHub Repository.