DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Selection Assistant — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
S

dsh-selection-assistant

Selection Assistant

Windows global text-selection assistant: uses Cherry-style selection-hook text capture and reuses DSH models for translation, explanation, and summarization.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:bjcdeshu/dsh-selection-assistant#ef621435fcaf0a4e5cf0a4b0c50df61f49cd1297
READMECompatibilityVersions

Compatibility and provenance

Selection Assistant is published as dsh-selection-assistant and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/11/2026

Versions

0.1.0stable
10/11/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/15/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in productivity-workflow.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseExperimental Schedule Bundle@deepseek-ai/dsh-experimental-schedule-bundleOptional bundle that adds Schedule, its task page, and time context to the Web compositionAb Ocrdsh-ab-ocr--- description: "The out-of-tree ocr tool: recognizes a scanned PDF or image page by page, merges the pages in order only after the last one, and saves one Markdown document with the heading levels the model decided." kind: "package-reference" ---Deepseek Ipptdeepseek-ipptiPolloWork PPT Studio and its curated slide templates as a native DeepSeek Harness conversation view.

README

DSH Selection Assistant · 划词助手

让常开的 DeepSeek Harness 顺便接管全局划词,不再为这一个功能多留一整套聊天软件。

Windows 划词工具条:翻译 / 解释 / 总结。复用 Cherry Studio 所用的 MIT selection-hook 取词基础,但界面、提示词和 DSH 集成均独立实现。

开发预览版。 当前目标是 Windows 10/11 + DSH Desktop 0.2.0-rc.2。依赖版本刻意锁定,其他 DSH 版本需要验证。已接入真实宿主,三种模型操作完成,用户确认自动划词和译文正常。自动化测试不等于各类应用都兼容;详见验证记录与资源实测。不宣称零进程或固定内存占用。

界面预览

以下截图由纯示例文字生成,没有真实选区、模型请求或私人数据。

划词工具条

原生结果窗

设置窗口预览

设计

  • 选中文字只弹工具条,点击动作后才调用模型。
  • 非激活原生工具条不抢原窗口焦点;结果窗可选中文本、复制、停止、置顶、拖动和缩放。
  • 通过 ctx.llm.stream 使用 DSH 已配置的模型;不复制 API Key,不启动完整 Agent,不开放文件/命令工具,不创建一堆“未分组”会话。
  • 单次无历史请求,英文默认译成中文、明显中文默认译成英文;解释/总结默认中文,也可固定输出语言。
  • 自定义三类提示词,支持 {{targetLanguage}}。显式独立模型或跟随 DSH 全局默认模型,不是跟随当前打开的会话。
  • 首次加载处于暂停状态。用户在设置中勾选后才开始监听;托盘可暂停,Ctrl+Alt+D 可手动取词。
  • 剪贴板兜底默认关闭,密码管理器和终端默认排除。只处理选区,不主动读附近段落。
  • 无公开 HTTP 端口、无网页脚本桥、无遥测、无原文/结果历史文件。仅用继承的 stdio JSONL 连接私有子进程。

运行结构和资源取舍

DSH Host 插件                  Node 取词伴生进程              C# WPF 原生界面
模型/设置/取消  ← stdio →  selection-hook 2.1.1  ← stdio →  工具条/结果/设置/托盘

增加两个辅助进程,不增加 Chromium/WebView2 进程。 取词 native addon 不装入 DSH 主宿主,异常的 UIA provider 不应拖住整个 DSH。WPF 使用 Windows 现有的 .NET Framework 4.x,首次加载用系统 C# 编译器从本仓库源码构建,输出缓存到插件数据目录;不下载编译器、不要求管理员、不修改 DSH 安装包。

窗口只做 UI,不联网;辅助进程环境采用 OS 字段白名单,不继承模型 API Key、DSH 认证变量或 NODE_OPTIONS。模型凭据只留在 DSH。

安装(确认兼容后)

优先通过 DSH 的 插件 → 添加插件,输入:

github:bjcdeshu/dsh-selection-assistant

仓库不需要 JavaScript 构建步骤。selection-hook 包含 Windows 原生预编译依赖;不同包管理器可能询问是否允许其 node-gyp-build 安装脚本。请先审阅再决定,不要授权不相关的生命周期脚本。源码开发可以先 pnpm install --ignore-scripts,本项目已通过直接加载 prebuild 验证,不要求自动重编译 native addon。

CLI 示例(仅在你的运行实例确实使用此 profile 时):

dsh plugin --profile desktop add github:bjcdeshu/dsh-selection-assistant

应用自有 profile 可能不同,优先在当前实例的插件页面安装,不要盲目修改其他 profile。宿主提示需要重启时,请先保存当前任务再重启;本插件不会自行重启 DSH。

首次加载会出现托盘图标和设置窗口:

  1. 确认 DSH 已配置可用模型。
  2. 阅读隐私说明,勾选“启用全局划词监听”,保存。
  3. 在普通文本应用或浏览器中选中文字,点击翻译、解释或总结。
  4. 取不到时先试 Ctrl+Alt+D;需要模拟复制的应用才显式打开剪贴板兜底。

停用 / 卸载

  • 临时停用:托盘 → 暂停全局划词(停止 hook 和全局热键)。
  • 完全停止:在当前 DSH 插件页面关闭或卸载本插件;卸载清理自有进程。
  • 设置保留在 $DSH_HOME/plugin-data/dsh-selection-assistant/settings.json(未定义 DSH_HOME 时为用户目录的 .dsh 下同一路径)。这里仅有偏好和自定义提示词,没有模型密钥、选区或结果。
  • 原生编译缓存位于同级 native-cache。希望清除设置时先停用插件,再自行删除这个明确的插件数据目录,不要删除整个 DSH 数据目录。

隐私与边界

选区本身可能含敏感数据。应用黑名单与明显凭据格式拦截只是一层辅助,不是全面密码/隐私检测保证。不需要时暂停;不要把敏感选区提交给云模型。模型服务的计费、存储及 DSH 自身诊断策略仍适用。

开启剪贴板兜底可能模拟复制并短暂接触剪贴板,无法保证所有第三方应用都完全无副作用。默认关闭。不开管理员权限来绕过 UIPI;提权应用、图片/扫描 PDF、canvas 和特殊编辑器可能无法取词。首版不包含 OCR、原文替换、翻译历史、自动上传、自动联网搜索或自动执行工具。

结果支持安全的轻量 Markdown(标题、列表、引用、粗体、行内码、代码块);不执行 HTML、不自动打开链接。复杂表格/公式不是浏览器级排版。

开发与验证

需要 Node 22.19+;原生 UI 构建在 Windows 使用已安装的 .NET Framework 4.x(精简版 Windows 可能缺失)。

pnpm install --ignore-scripts
pnpm verify              # JS 语法 + 无 hook / 无模型调用的单元测试
pnpm build:native        # 系统 csc 编译原生 UI
pnpm demo                # 仅示例 UI 的冒烟测试和本地截图;不监听真实选区

示例截图仅写入 gitignored 的 .local/。demo 不加载取词库、不注册全局快捷键、不访问剪贴板、不调用模型。CI 在 Linux/Windows 运行纯逻辑测试,并在 Windows 编译 UI。

发布前手动验收

  • 真实 DSH 加载/停用/重启,确认没有孤儿进程。
  • Chrome/Edge、记事本、常用文档/PDF 的真实取词。
  • 点击动作后原文不串、切换选区不覆盖已显示结果。
  • 三种动作的真实模型结果、停止、失败和重试流程。
  • 高 DPI、多显示器、负坐标、贴屏幕边缘。
  • 暂停、黑名单、无剪贴板兜底时剪贴板保持不变。
  • 统计两个辅助进程的总工作集与空闲 CPU,不只看主进程。

开源与许可

本项目 MIT。第三方许可见 THIRD_PARTY_NOTICES.md。selection-hook 为 MIT;Cherry Studio 主程序为 AGPL-3.0。这里没有复制 Cherry 的应用源码、图标或长提示词,也不宣称由 Cherry/DeepSeek 官方开发。

问题反馈:Issues。请不要上传 API Key、私人选区、聊天日志或完整本机配置。