Introduction¶
When switching models in DSH, the dropdown list often lists all configured providers and models. If you want to expose only certain providers in the interface, or if you want to permanently redirect a source model to a different set of providers and models, you typically need to modify configurations or rely on session-side behavior, lacking a centralized, saved, and syncable settings interface within the profile. The following introduces the community plugin dsh-provider-visibility: it provides a “Model List” settings page in the DSH Web profile to control provider visibility and manage removable model redirection rules.
What is this¶
dsh-provider-visibility (repository vb2250158/dsh-provider-visibility) is published by maintainer vb2250158 and categorized as admin-security in the SkillHub directory. The plugin describes itself as “Provider visibility policy and Model list settings page”; when the interface language is English, the list displays Model visibility, and when in Chinese, it displays 模型列表 (Model List).
The version in the current documentation is 0.1.0-rc.8.17, licensed under MIT. This release requires DSH 0.2.1-alpha.1 or a version compatible with 0.2 (see docs/dsh-0.2-compatibility.md in the repository for details).
Core Features¶
Provider and Model List¶
The plugin provides a settings page to control which providers appear in the model dropdown and writes settings to the DSH profile. The settings page reads the global model catalog; the documentation states that local integration uses the current client-store and declares remote.session injection, so available providers will not be hidden when a session is pending or not yet established.
Model Redirection Rules¶
The “Model List” supports removable model redirection rules. The key behavioral points are as follows (all from the README):
- Priority: Rules specifying a specific model take precedence over “all models of provider” type rules.
- Matching: Each request is matched only once; subsequent rules are not applied recursively. The target is fixed to the selected provider and model.
- Session Selection: Model selections in the original session are preserved; after a rule is deleted, the next request resumes the original routing.
- Activation Timing: Requests currently being assembled use already-captured rules; modifications to rules thereafter take effect starting from the next step request.
- Reasoning Tier: Redirection preserves the reasoning tier; if the target is unavailable or rejects the tier, the request fails without automatic fallback.
Source and target selection reuse the search dropdown from dsh-codex-model-selector; rules can be edited once that plugin is enabled. The selection dropdown only modifies the rule draft and does not call the session’s model switching interface.
Redirection takes effect via the public extension points system-prompt/assemble and agent/request: the original selection is still recorded as model/selection, and redirection instructions enter the model context as a user/message notification originating from the plugin. The actual invocation is still recorded by the standard request/header and model reply origin. The modelRedirects projection is associated by reply ID; when combined with dsh-chat-enhancement, it can display the actual model and a “Redirected” tag, with a hover tooltip showing “Source → Actually Used”. Old replies without notifications will not infer redirection sources. The runtime component runningModelRedirect reads redirection info for the current turn and step from the same projection, clearing old notifications when the next step begins.
Configuration Read/Write & UI (0.2 Config Interface)¶
Under the current DSH configuration interface, the browser resolves plugin fields from the shared configuration mirror; saving still goes through the host’s validation, version check, and write queue. Original hidden lists and rules remain unchanged. There is feedback for load, save success, and failure; the UI displays rules and providers in separate sections, with a single-column layout for narrow screens. Recent versions have fixed issues where model redirection, provider toggles, list checkboxes, and redirection selectors were incorrectly disabled on the client side.
Installation and Enablement¶
Before installing, please lock the commit hash of the public repository and install via the official DSH entry (command from README, replace <commit> with the actual commit):
pnpm dsh plugin --profile web add github:vb2250158/dsh-provider-visibility#<commit>
The plugin package declares dsh.bundle; after installation, it adds its configuration layer (cordis.patch.yml) to the profile. When syncing repositories across multiple computers, the documentation states that only the repository address, pinned commit, enablement status, and configuration are saved, not the source code of this repository.
Typical Usage¶
- Add the plugin to the web profile and enable it using the command above.
- In the DSH Plugin List, click on this plugin to enter the details page and use the configuration and operation interface within it (the settings menu will not display a duplicate entry for this plugin).
- In the “Model List”, check or uncheck the visibility of each provider in the dropdown; this is persisted by the profile after saving.
- If redirection is needed: add source and target in the rules section (enabling
dsh-codex-model-selectoris recommended), save the rules; new requests will be routed according to the priority and single-match rules described above. - For development or repackaging, you can run the verification commands from the README within the plugin repository:
npm test
npm run build
npm pack --dry-run
When debugging from DSH source code, you need to set DSH_SOURCE_ROOT to point to the DSH workspace; Host tests use the real Session and AgentLoop of that workspace, and the mock adapter does not access external models.
Use Cases & Notes¶
Who it is for: DSH 0.2 users who need to uniformly manage “which providers appear in the model list” on the Web side, and want to use editable, removable redirection rules for fixed routing; maintainers concerned about admin-security capabilities who want settings to reside in syncable profile configurations.
Permissions & Security: The plugin runs with the permissions of the current DSH process. Before installation, you should read the GitHub source code and the MIT license to ensure the behavior complies with your environment policy. The community directory SkillHub Plugin Page is an independent ecosystem site and has no official affiliation with DeepSeek / High-Flyer.
Dependencies: Besides the DSH 0.2 series peer dependencies, the full redirection rule editing experience relies on dsh-codex-model-selector; working with dsh-chat-enhancement provides better display of the actual model information after redirection.
Conclusion¶
dsh-provider-visibility consolidates provider visibility policies and model redirection into a “Model List” settings page within the DSH profile. Reads and writes go through host validation and the shared write queue, making it suitable for managing visibility and routing layers within the 0.2 Web profile. Directory page: https://www.skillhub.cn/plugins/vb2250158/dsh-provider-visibility; Source code and version notes: https://github.com/vb2250158/dsh-provider-visibility.