Preface¶
DeepSeek Harness (DSH) often runs as a desktop host for extended periods, with models and APIs already configured within the host. If your sole goal is to “select a passage of text → translate / explain / summarize”, installing a separate chat client with text-selection capabilities would add an extra set of processes and UI, and you would have to maintain model configurations in two places.
The following introduces the community plugin dsh-selection-assistant (repository bjcdeshu/dsh-selection-assistant): it provides a global text-selection toolbar and a quick translation window on Windows 10/11. Word capture is based on the same MIT selection-hook used by Cherry Studio; model calls go through the LLM already configured in DSH, without launching a full Agent session. The maintainer is bjcdeshu, categorized as a client plugin, open-source under MIT. The current README marks it as a development preview, compatible with DSH Desktop 0.2.x (since 0.2.0-rc.2, including 0.2.1-rc.2); migration to 0.3 requires re-validation. The package.json version is 0.1.1.
What Is This¶
DSH Selection Assistant is a Windows text-selection assistant plugin for DSH: after selecting text, a native toolbar pops up, allowing you to perform translate, explain, summarize; there is also a quick translation window that accepts typed or pasted OCR text. The UI, prompts, and DSH integration are implemented independently in this repository; it does not copy source code or long prompts from Cherry applications, and it does not claim to be an official product of Cherry / DeepSeek.
Design highlights: selecting text only pops up the toolbar, and the model is called only after an action is clicked; it uses DSH’s already-configured models via ctx.llm.stream, without duplicating API keys, without launching a full Agent, without exposing file/command tools, and without batch-creating “ungrouped” sessions.
Core Features¶
Selection Toolbar and Result Window¶
- Three model actions: translate, explain, summarize; single-request, no history.
- Languages: English defaults to Chinese translation, obvious Chinese defaults to English translation; explain/summarize default to Chinese, with the ability to fix the output language; supports 96 target languages (searchable by Chinese, English, or local name) and custom languages.
- Customizable prompts for the three action types, supporting the placeholder
{{targetLanguage}}; you can specify an independent model for each action type, or follow the DSH global default model (not the currently open session). - When not active, the toolbar avoids stealing focus from the original window as much as possible; the result window supports text selection, copy, stop, pinning, dragging, and resizing; supports lightweight Markdown display, does not execute HTML, and does not automatically open links.
Quick Translation¶
- Opened with
Ctrl+Alt+Tor by double-clicking the tray icon; supports input, paste, clear, target-language selection, copy, stop, retry;Ctrl+Entertriggers translation. - Opening, pasting, or changing language does not automatically send a request; content is retained within the current process after closing, and released after clearing or exit; it is not written to history files. When the clipboard contains only images, it prompts to OCR first (the first version does not include OCR capability).
Monitoring, Hotkeys, and Tray¶
- Paused on first load; it begins monitoring only after you check “Enable global text-selection monitoring” in the settings.
- The tray can pause global text-selection monitoring;
Ctrl+Alt+Dcan manually capture text. - The floating toolbar defaults to the lower-left of the mouse-release point, automatically avoiding screen edges; supports system, light, and dark themes; window transparency and size are persisted separately.
Architecture and Resources¶
DSH Host Plugin Node Word-Capture Companion Process C# WPF Native UI
Models/Settings/Cancellation ← stdio → selection-hook 2.1.1 ← stdio → Toolbar/Result/Settings/Tray
Compared with “opening another Chromium word-selection client”, this plugin adds two auxiliary processes, without adding Chromium/WebView2 processes; the word-capture native addon is not installed into the DSH main host. WPF uses the system .NET Framework 4.8; on first load, the system C# compiler builds from repository source code and caches it to the plugin data directory, without downloading a compiler or requiring administrator privileges.
Privacy boundaries: no public HTTP ports, no web-script bridges, no telemetry, no raw-text/result history files; clipboard fallback is disabled by default, with password managers and terminals excluded by default. Selected text may contain sensitive information; pause when not needed, and do not submit sensitive selections to cloud models.
Installation and Activation¶
Before installation, please confirm that your DSH Desktop version falls within the 0.2.x compatibility range, and that a usable model has been configured.
Preferably, use the DSH UI Plugins → Add Plugin, and enter:
github:bjcdeshu/dsh-selection-assistant
If your instance indeed uses the desktop profile, you can also use the CLI (the profile name should match your current instance; do not blindly modify other profiles):
dsh plugin --profile desktop add github:bjcdeshu/dsh-selection-assistant
The repository requires no JavaScript build step; the selection-hook dependency contains a Windows precompiled native package; the package manager may ask whether to allow the node-gyp-build install script — please review before authorizing, and do not authorize unrelated lifecycle scripts.
When the host prompts for a restart, please save your tasks first; this plugin will not restart DSH itself.
On first load, a tray icon will appear; right-click to open settings; it is recommended to follow the steps below:
- Confirm that DSH has a usable model configured.
- Read the privacy notice, check “Enable global text-selection monitoring”, and save.
- Select text in a plain-text application or browser, and click translate, explain, or summarize.
- If you cannot capture text, first try
Ctrl+Alt+D; enable clipboard fallback only for applications that require simulated copying.
Typical Usage¶
Daily word selection: select a passage of text in Notepad, a browser, or a document → click “Translate”, “Explain”, or “Summarize” on the toolbar → view the streaming output in the result window, stopping or copying as needed.
Manual word capture: press Ctrl+Alt+D when automatic monitoring misses.
Long passages or OCR text: press Ctrl+Alt+D or double-click the tray to open quick translation, paste the content, select the target language, and press Ctrl+Enter to translate.
Temporarily disable word selection: tray → pause global word selection (the hook and word-capture hotkey stop; quick translation remains available).
Deactivation, Uninstallation, and Data Locations¶
- Full stop: disable or uninstall on the current DSH plugin page; uninstallation cleans up its own processes.
- Settings are stored in
$DSH_HOME/plugin-data/dsh-selection-assistant/settings.json(ifDSH_HOMEis undefined, the same path under the user directory.dsh); contains preferences and custom prompts, not model keys, selections, or results. - Window width/height and opacity are in the same-level
window-state.json; the native compilation cache is innative-cache. Before clearing data, disable the plugin first, then delete the plugin data directory; do not delete the entire DSH data directory.
Use Cases and Notes¶
Suitable for: developers or writers who already use DSH Desktop 0.2.x on Windows long-term, and want text-selection translation/explanation/summarization to reuse the same set of models and billing policies.
Notes:
- The plugin runs with the current DSH process privileges; before installation, it is recommended to read the GitHub repository source code, the MIT license, and
THIRD_PARTY_NOTICES.md. - Privileged applications, some PDF/canvas/special editors may not support word capture; automated testing does not equal compatibility with all applications; for details, see the repository’s
docs/VERIFICATION.md. - The first version does not include OCR, source-text replacement, translation history, automatic web search, or automatic tool execution; translation quality depends on the selected model.
The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory page is a community listing, with no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
If you want your frequently-open DSH to also handle Windows global text selection, without keeping a whole separate client just for this extra feature, you can install dsh-selection-assistant after confirming version compatibility, explicitly enable monitoring in settings, and then use the toolbar or quick translation according to your scenarios.
- Directory page: https://www.skillhub.cn/plugins/bjcdeshu/dsh-selection-assistant
- GitHub: https://github.com/bjcdeshu/dsh-selection-assistant
- Feedback: https://github.com/bjcdeshu/dsh-selection-assistant/issues (Do not upload API keys, private selections, or full local configurations)