yingzaicc/dsh-editor-selection ↗★ 0
dsh-editor-selection
Editor selection focus awareness for DeepSeek Harness: captures the VS Code selection (path + line range, never file text) over a paired WebSocket channel and surfaces it to the agent as durable plugin-attributed ambient context; ships pairing approval UI, a focus chip with a privacy toggle, and device management.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yingzaicc/dsh-editor-selection说明文档
阅读完整 README ↗使用
- 眼睛开关(chip 上):关=暂停共享(向 agent 注入一条一次性"已暂停"知会后保持沉默);开=恢复。状态持久化。
- 选中即聚焦:有真实选区 →
@绝对路径:起-止;光标停放无选择 →@绝对路径(整个文件即焦点);光标不在任何文件里 → 焦点清空。缓冲区未保存会标注"(缓冲区未保存)"。 - 右键「解释代码」(VS Code 编辑区,先选中代码):选区发给 DSH,DSH 在最近活跃的会话里自动开始解释该段代码,无需手动输入。
- 多窗口:每窗口一个实例,行尾注明来源实例;30s 心跳,90s 无心跳判离线。
- 路径可读性由 DSH 权限系统裁决:插件不再做工作区映射门槛;工作区外的文件在 agent 实际读取时按 DSH 既有权限流程索权。