Preface¶
When writing conversations or invoking models in DeepSeek Harness (DSH), common practice relies on the host’s built-in model selection component or handwritten orchestration instructions within the prompt. Model lists, reasoning effort, and “fast mode / multi-subagent” options are often scattered across different entry points. Furthermore, adjusting effort levels may not align with the tiers declared for that specific model in the host directory.
Below is an introduction to the community plugin dsh-model-gear (maintainer chenyuxuan-official): It attaches a panel to the composer input area, centralizing model selection, effort sliders, local display names, and three tiers of Lightning orchestration. Except for Lightning-related contracts, it does not inject persona, identity, or verification paragraphs into the prompt. It is categorized as “Model Reasoning,” and the repository currently has approximately 1 star (subject to the directory page and GitHub).
What is this¶
dsh-model-gear is a plugin for the DSH desktop version: It replaces the composer control in the conversation.input.model slot (priority -10), providing a model catalog, an effort slider mapped to the host’s reasoning.efforts, display name aliases in localStorage, and off / fast / tree three-tier Lightning orchestration switches. On the host side, contracts and per-turn reminders are appended according to the session tier via agent/pre-step. Sub-sessions inject hierarchical instructions based on the first line Tier: N of 2 of the prompt.
Licensed under MIT; the package version follows the repository’s package.json (recorded as 0.4.2). It is derived from the dsh-codex-ui lineage, which is also MIT licensed.
Core Features¶
Model & Effort Panel¶
The panel connects to the host model directory’s directory / load / select via the slot’s inject(sessionId), as well as gear.read / gear.select for orchestration tiers. In sub-sessions, available is false, and selection is not provided.
- Model List: Grouped by provider and searchable; the “Default” group includes the current model plus the five most recent ones (key
dsh-model-gear/recent-models, stored only in local localStorage). - Effort Slider: Tiers are entirely sourced from the
reasoning.effortsof the selected model in the host directory; no virtual tiers are created. Dragging serves as a local preview only; the value is written back upon release or keyboard confirmation; “Reset” writes back the model’sdefaultEffort. - Display Name: Writes to localStorage using
provider/modelas the key (key name followsdsh-codex-ui/model-aliases), affecting only list display. - Unsynced: When host tier states cannot be read, it does not guess “standard”—the slider has no fill, Lightning appears greyed out, the three-tier menu is disabled, and a “Unsynced” prompt is shown.
Note: The official model selection component attaches decorations like release badges to the conversation.input.model.label sub-slot. Since this plugin replaces the entire composer control, the framework does not allow a second registration item to reuse that sub-slot; therefore, such decorations will not appear in this panel.
Lightning Orchestration Tiers¶
Orchestration state is held by the host. The client reads it once upon mount, performs optimistic updates on toggle (rolling back on failure), and aligns again every time the panel is opened. The persistence file is $DSH_HOME/storages/dsh-model-gear-orchestration.json (falling back to ~/.dsh/storages/ if DSH_HOME is not set), retaining a maximum of 40 sessions; off deletes the row.
| Mode | Parent Session Injection Key Points |
|---|---|
fast |
LIGHTNING_POLICY (on first time or tier switch) |
tree |
LIGHTNING_POLICY + SUPERFAST_POLICY |
| Per-turn step 1–3 | Reminders with turn / step (unique per turn/step) |
Switch back to off |
One-time disable instructions (deduplicated via logs) |
| Sub-session | Injects corresponding hierarchical instructions only if the first line contains Tier: N of 2 |
Deduplication relies on carriers (current step message, session log, inbox queue) rather than in-process memory; switching tiers takes the latest contract in the log as the standard.
Superfast Second Layer: SUPERFAST_POLICY requires tier-1 subagents to spawn grand-agents; if the host’s default subagent maxDepth is 1, superfast effectively results in approximately 2 direct subagents. To enable the second layer, maxDepth must be adjusted to 2. See the repository docs/subagent-depth.md for modification details.
Prompt Boundary¶
The content appended to the prompt by the plugin consists mainly of Lightning / Superfast contracts exported by src/orchestration-policy.js, per-turn reminders, sub-session hierarchical instructions, and disable notices. The source.kind is plugin:dsh-model-gear, and form is instructions. Routing, disk writing, and injection are all wrapped in try/catch fallbacks; failures should not crash the host’s step or request.
Installation & Activation¶
Currently, the official installation method is via GitHub (requires an application restart after installation):
dsh plugin --profile desktop add github:chenyuxuan-official/dsh-model-gear
Once published to npm, the following will be available:
dsh plugin --profile desktop add dsh-model-gear
dsh is the CLI bundled with the desktop version; the arguments for dsh plugin --profile <name> <args> are passed directly to pnpm. GitHub installations lock the commit hash; updates require re-running add after new commits are made to the repository. Uninstallation:
dsh plugin --profile desktop remove dsh-model-gear
Once installed, the plugin will appear in the profile’s package.json dependencies. For local development, use dsh plugin --profile desktop add link:<absolute-path-to-dir>. After modifying src/, run node scripts/build.mjs and refresh. Changes to host sections (src/host.js, src/orchestration-policy.js) require an application restart; the panel showing “Unsynced” usually indicates the old host is still running.
Typical Usage¶
- Install and restart the DSH desktop version, open any conversation, and use the model gear panel above the input box to select a model, drag the effort slider, and modify the local display name if necessary.
- Select off, fast, or tree in the Lightning three-tier menu. After sending a message in the parent session, observe whether contracts and 1–3 step reminders are injected according to the tier before the steps (check instructions with source
plugin:dsh-model-gearin the session log). - If using tree and the grand-agent layer is needed, adjust the host subagent
maxDepthaccording todocs/subagent-depth.mdand verify. If unsatisfactory, roll back following the documentation.
Orchestration reads and writes go through the host Connection, for example:
{ "action": "read", "sessionId": "…" } // → { mode: "off" | "fast" | "tree" }
{ "action": "update", "sessionId": "…", "mode": "tree" }
The route is POST /api/dsh-model-gear/orchestration (envelope client-request / server-response, rpcId aligned).
Use Cases & Notes¶
Suitable for developers who frequently switch models or tune reasoning effort in the DSH composer and wish to drive “fast / superfast” subagent orchestration using fixed contracts. Users who do not need to replace the entire model UI or plan to enable Lightning in parent sessions can treat this as a reference or simply keep orchestration as off.
It is recommended to review the GitHub repository source code and MIT license before installing. The plugin runs with the current DSH process privileges and will read/write local localStorage and ~/.dsh/storages/ (or paths under $DSH_HOME). Orchestration contracts will enter session instructions; refer to the README for tier switching and deduplication logic.
The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory page is a community collection and has no official affiliation with DeepSeek / Hiai.
Conclusion¶
dsh-model-gear consolidates model selection, host-declared effort tiers, and three-tier Lightning orchestration into a single panel in the input area, and confines extra prompts to Lightning contracts and related reminders. For further information and issues, see GitHub; for the directory entry, see SkillHub.