dsh-hkm
Manifest validAdds a Hotkey manager sidebar panel that shows the live DeepSeek Harness shortcut catalog alongside combinations owned by Windows, browsers and third-party applications, lets Harness commands be re-re
dsh-hkm — DeepSeek Harness 热键管理
在 DeepSeek Harness 侧栏增加热键管理入口,并提供一个面板,用来查看 Harness、Windows、浏览器和第三方应用各自占用了哪些组合键。Harness 命令可以重新录制、清除或恢复默认;在 Windows 上,还可以把 DSH 窗口隐藏到通知区域,并用一个全局快捷键切换。

面板内容
- DeepSeek Harness —— 实时快捷键目录,分为可编辑命令和固定输入操作。命令可以重新录制、清除或恢复默认。
- Ctrl、Shift、Alt、Win、Ctrl+Shift、Ctrl+Alt、Alt+Shift、Ctrl+Alt+Shift —— 精确匹配修饰键:
Ctrl+Alt+A只出现在Ctrl+Alt页,不会重复出现在Ctrl或Alt页。每页都会列出0-9、a-z和Space,即使未绑定;没有专属页面的组合(如Win+Shift或无修饰键)放在其他页。 - 每个组合的来源 —— DeepSeek Harness、Windows、浏览器、第三方应用,或磁盘上找到的快捷方式文件。只有 DeepSeek Harness 的行可以编辑。
- 数量与冲突 —— 每个标签页显示已注册的组合数量。同一个组合既被正常注册、又被触发扫描命中时,会标红并显示“多重注册”。
扫描
DeepSeek Harness 的目录是实时的,不需要刷新。其他来源只有在点击扫描正常热键时才会读取;页面不关闭时复用上一次结果。
来源包括:Windows 注册表、维护的系统与浏览器组合列表、开始菜单和桌面上的快捷方式文件、正在运行且已知默认热键的第三方应用,以及用户启动目录和文档目录中的 AutoHotkey 脚本。第三方默认热键只有在应用正在运行、且 Windows 当前确实注册了该组合时才显示。
触发扫描热键会主动探测 252 组组合(Ctrl、Shift、Alt、Ctrl+Shift、Ctrl+Alt、Alt+Shift、Ctrl+Shift+Alt × 0-9、a-z,共 36 个主键)。先检查 RegisterHotKey,空出的组合再从专用探测窗口注入;前台窗口变化或出现新的顶层窗口即视为被占用。每次探测后会发送 Escape 并尝试把焦点交还 DSH。没有窗口或焦点变化的静默钩子无法观测,因此结果会区分“已注册”“触发了来源”和“没有可见反应”。扫描可以取消,完整一轮通常约一分钟。
Windows 没有公开 API 能枚举所有全局热键;本插件不安装 WH_KEYBOARD_LL/WH_KEYBOARD 钩子,RegisterHotKey 只用于逐个组合的占用探测。
最小化到托盘(Windows)
- 最小化 / 恢复 —— 把 DSH 浏览器窗口隐藏到 Windows 通知区域。双击托盘图标,或在面板里点恢复窗口,窗口会回到最小化前的大小和位置。
- 窗口快捷键 —— 默认
Ctrl+Shift+Space。常驻的窗口代理以全局方式占用该组合,所以页面是否有焦点都能用:按一次隐藏,再按一次恢复。录制新快捷键时会暂时释放全局注册,录制结束后恢复。如果该组合被其他程序占用,仍可用托盘图标恢复。 - 快速窗口操作 —— 页面首次加载时会启动一个小型常驻 PowerShell 代理,原生辅助代码只编译一次,之后等待命令;最小化和恢复通常只需几百毫秒。
安装
在 Harness 插件管理器中(插件 → 添加插件 → GitHub 仓库或本地目录),或在终端执行:
dsh plugin --profile web add github:afeiaswell/dsh-hkm
安装后重启 dsh web。本地开发:
dsh plugin --profile web add link:D:\path\to\dsh-hkm
环境与限制
- 托盘、窗口快捷键以及系统/第三方扫描需要 Windows 10/11,依赖 PowerShell 和 Win32 API。
- 需要 DeepSeek Harness 的 Web profile。面板注册到
sidebar.panellist和main槽位。 - 低层驱动、游戏或应用内部设置持有的热键,扫描器看不到;面板会说明扫描了哪些来源。
- 触发扫描只能观察到会产生前台/窗口变化的组合。只发声、不改变焦点的操作可能被记为“没有可见反应”。
安全
Host 端只注册一个同源 JSON 接口 /dsh-hkm/api,只接受 POST,要求 X-DSH-HKM 请求头(跨站请求会触发本路由不会回应的 CORS 预检),并拒绝外部 Origin。动作来自固定分支,接口不会执行调用方指定的命令。
许可证
MIT,见 LICENSE。
Comments
Loading…
From the same category
by anywhere-labs
为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 36.7k
↓ 103/wk
MIT
TypeScript
Nov 24, 2026
dsh plugin --profile web add dsh-plugin-desktopby zhu1090093659
DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop
★ 10.6k
↓ 105/wk
Apache-2.0
TypeScript
Nov 24, 2026
dsh plugin --profile web add dsh-webA collection of independent Web UI plugins and skins, including task boards, Git graphs, mobile access, and live token stats.
★ 10.4k
↓ 105/wk
Apache-2.0
TypeScript
dsh plugin --profile web add dsh-webby PC2005-cloud
DSH 桌面宠物:一行命令装好即用的透明动画小桌宠,支持多开、大小位置随心配置;还内置 DIY 素材链,能用 AI 视频自造专属宠物
★ 6.7k
↓ 68.7k/wk
MIT
TypeScript
Nov 17, 2026
dsh plugin --profile web add dsh-petby bowenliang123
The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,
★ 5.5k
↓ 115.8k/wk
Apache-2.0
TypeScript
Nov 24, 2026
dsh plugin --profile web add dsh-contextby omdsh-dev
开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git,
★ 5.3k
↓ 79.5k/wk
MIT
TypeScript
Nov 21, 2026
dsh plugin --profile web add dsh-better-sidebar