dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
一个 DeepSeek Harness (DSH) Web 插件:在助手回答中选中任意文本,即可在右侧临时侧边栏中基于主对话现有上下文提问,不打断、不修改主对话。
request/header,不会重新索引、扫描、总结或加载项目。要求:本地 DSH Web profile,Node.js 20+。
# 一键安装(从 GitHub 源码构建,将 web 替换为你的 profile 名)
dsh plugin --profile web add github:Ruiming-cn/dsh-ask-in-sidebar
# 或从固定版本 Release 安装
dsh plugin --profile web add https://github.com/Ruiming-cn/dsh-ask-in-sidebar/archive/refs/tags/v0.2.0.tar.gz
# 或从本地检出构建后再安装
npm run build
dsh plugin --profile web add /path/to/dsh-ask-in-sidebar
也可以将插件复制到 DSH 全局插件目录 ~/.dsh/plugins/dsh-ask-in-sidebar,再通过 dsh plugin --profile web add 注册。包内包含:
lib/index.js — host 半端(HTTP 接口)lib/client.js — 浏览器半端(选区操作 + 侧边栏面板)cordis.patch.yml — bundle 层插入配置package.json 中的 dsh.bundle 与 dsh.client 元数据无插件专用配置。侧边栏使用主对话当前使用的 provider/model 路由;若没有 request/header,则依次回退到当前 agent options、第一个已配置的 LLM provider。侧边栏使用一个轻量的“只回答、不调用工具”的独立 system prompt,避免复用主 Agent 的复杂工具系统提示。
data-chat-flow-kind="assistant-step" 对话 DOM 约定。npm test # host 核心单元测试
npm run build # 将 src/ 复制到 lib/
npm run check # test + build
dsh、dsh-plugin、deepseek-harness、sidebar、ask-in-sidebar、context。window.__ModuleLoader__ / 纯 DOM 注入模式参考了以下 MIT 许可的现有 DSH 插件: