dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek Harness 插件:选中对话文字,加入对话或在可复用的侧边对话里提问(继承主对话上下文)。Selection actions for DeepSeek Harness chat.
在 DeepSeek Harness 的对话里选中一段文字,立刻可以「加入对话」或「在侧边提问」——像在 IDE 里选中代码问 AI 一样顺手。
English: A DeepSeek Harness plugin that adds selection actions to chat messages — select text and either attach it to the current composer or ask about it in a side chat that reuses one tab and inherits the main conversation context.

加入对话 / 在侧边提问;>、没有多余提示行、没有双引号);侧边提问:消息以「1 处选中」小芯片附在你的问题气泡上方,下面直接是助手的回答(主对话历史不会出现):

加入对话:选中内容以胶囊形式挂在主输入框上方,发送时一起带上:

需要 PowerShell(Windows 自带)。下载本仓库后,在仓库目录执行:
powershell -ExecutionPolicy Bypass -File .\install.ps1
脚本会:
%LOCALAPPDATA%\dsh-selection-actions;~/.dsh/profiles/desktop)里登记依赖与 bundle;node_modules 链接。然后重启 DeepSeek Harness(或按 Ctrl+R 刷新一次页面)即可生效。
自定义参数:
# 指定 DSH 数据目录 / profile 名 / 安装位置
powershell -ExecutionPolicy Bypass -File .\install.ps1 -DshHome "D:\dsh-data" -ProfileName desktop -TargetDir "D:\plugins\dsh-selection-actions"
把本仓库复制/克隆到一个固定目录,例如 C:\plugins\dsh-selection-actions;
编辑 %USERPROFILE%\.dsh\profiles\desktop\package.json,在 dependencies 中加入:
"@local/dsh-selection-actions": "link:C:/plugins/dsh-selection-actions"
在 dsh.profile.bundles 数组末尾加入 "@local/dsh-selection-actions";
在 profile 目录创建链接(没有 pnpm 时也可以直接用 junction):
New-Item -ItemType Junction -Path "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\@local\dsh-selection-actions" -Target "C:\plugins\dsh-selection-actions"
重启 DeepSeek Harness。
如果你是用 pnpm/npm 管理 profile,也可以直接
pnpm add "link:C:/plugins/dsh-selection-actions",再把包名加进dsh.profile.bundles。
powershell -ExecutionPolicy Bypass -File .\uninstall.ps1
或手动:从 profile 的 dependencies / dsh.profile.bundles 中删掉 @local/dsh-selection-actions,删除 node_modules\@local\dsh-selection-actions 链接与安装目录,重启 Harness。
Enter 发送;Enter;× 可移除引用,点胶囊可展开预览选中内容。这个插件会持续根据使用反馈修改。 欢迎直接在 GitHub 上留意见:
package.json 里的 version)、复现步骤、期望结果、截图(如果方便);提交 Issue 时请尽量包含「选中哪里的文字、点了哪个按钮、看到什么、期待什么」,这样能最快定位。
.
├─ client.js # 客户端插件(window.__ModuleLoader__ 单文件模块)
├─ index.js # Host 侧占位导出
├─ cordis.patch.yml # bundle patch:把插件插入 Cordis 插件树
├─ package.json # 包信息 + dsh.bundle / dsh.client 声明
├─ locale/ # zh / en 文案
├─ docs/ # 截图
├─ install.ps1 # 安装脚本
└─ uninstall.ps1 # 卸载脚本
ctx.slots 挂载悬浮工具条,通过 ctx.sidebarRight 打开侧边标签;ctx.resources.register({ protocol: 'dsh-resource', open }) 提供,标签类型 sidebarask;ctx.remote.session.prompt(...) / ctx.remote.subagents.prompt(...) 完成,因此不依赖输入框模拟提交;Ctrl+R)后重新加载,Host 侧改动需要重启 Harness。MIT © 2026 123WE-glitch