Introduction¶
When modifying plugins or reloading the host in the DSH desktop version, the common practice is to exit from the system tray and reopen the application. The desktop shell itself lacks a “Restart” or “Quit” entry within the session interface, adding an extra step during development and debugging. This article introduces the community plugin dsh-power-mini (Maintainer: CECILIALOVE0616, Category: Client): it adds power buttons to the session header’s utility area, providing Restart DSH and Quit DSH options. These correspond to the same capabilities as tray exit but eliminate the need to operate from the tray every time.
What is this¶
dsh-power-mini is a DSH profile bundle plugin. It is positioned as a “Session Header Power Menu”: Power menu for DeepSeek Harness desktop. It does not create tray icons or system-level services; instead, it registers a small button in the session header’s utilities slot. Clicking the menu allows you to restart or quit the desktop shell. The current package version is 0.2.0, licensed under MIT (subject to the repository’s package.json).
Core Features¶
Restart and Quit¶
- Restart DSH: The Host writes handover information to a detached helper process; the helper terminates the old shell after the response is written to disk, then launches a new shell. A new window will appear approximately two seconds after the original window closes.
- Quit DSH: The process is the same, but it does not launch a new shell, effectively equivalent to “Quit” from the tray.
Running Tasks & Fallbacks¶
- If an agent or job is currently executing, clicking the button will first pop up a confirmation to avoid interrupting tasks accidentally; you can also bypass the confirmation and call the API directly (as explained in the README).
- If the new window does not appear after a long delay, the button will provide a prompt, allowing for a manual restart as a fallback.
Host API¶
The host provides three routes under the /dsh-power-mini prefix (accepting local loopback requests only):
GET /statusPOST /restartPOST /quit
The implementation has no third-party dependencies and uses only built-in Node modules. In restart mode, the helper restarts the shell with a clean environment (e.g., stripping injected variables like ELECTRON_RUN_AS_NODE).
Installation and Activation¶
This plugin must be installed into a profile to take effect; host-side code is loaded at startup, so a DSH Restart is required after installation. The browser-side client.js is re-read on every page load, so simply refreshing the page suffices after modifying client code.
CLI (after npm release or local pack):
dsh plugin --profile <profile> add dsh-power-mini
Or install a local packaged artifact:
dsh plugin --profile <profile> add ./dsh-power-mini-<version>.tgz
Here, <version> matches the filename generated by npm pack.
Desktop Application: Install via the host’s plugin installation interface.
Note: The desktop profile is managed exclusively by the Electron desktop application. Running CLI add on desktop will result in an error:
profile "desktop" is managed exclusively by the Electron application
To install into the desktop profile, please use the in-app installation flow; do not use the CLI to write directly to the desktop profile.
Typical Usage¶
- Install dsh-power-mini into the target profile using the commands above or the in-app flow.
- Restart DSH (or restart the desktop application) to load the host routes and bundle patches.
- Open any session and locate the power button in the session header’s utility area.
- Select Restart DSH when you need to reload plugins or refresh the shell; select Quit DSH for a complete exit. If tasks are running, confirm via the prompt before proceeding.
In Web / CLI scenarios, the button will not be registered; it is only available for Windows Desktop DSH (depends on the desktop shell process model).
Use Cases and Notes¶
Target Audience: Developers primarily using DSH Desktop on Windows who frequently modify plugins or need to quickly restart/quit the shell.
Boundaries:
- Does not support Web or CLI; non-Windows desktop shells are not supported.
- The plugin runs with the current dsh process privileges; please review the GitHub source and the MIT license before installation to ensure the behavior complies with your environment policies.
The DSH ecosystem emphasizes “Everything is a plugin”; the community directory SkillHub Plugin Page is an independent site and has no official affiliation with DeepSeek or High-Flyer.
Conclusion¶
dsh-power-mini fills the gap in the desktop version’s missing restart/quit entries using two menu items in the session header, while also handling confirmation during active tasks and prompts for restart failures. For installation instructions and implementation details, please refer to:
- Directory Page: https://www.skillhub.cn/plugins/CECILIALOVE0616/dsh-power-mini
- Repository: https://github.com/CECILIALOVE0616/dsh-power-mini