ChenRuoT/dsh-sidebar-qa 预览 preview

ChenRuoT/dsh-sidebar-qa

Plugin插件 Native原生 ⭐ 46 MIT UI & Themes界面与主题

基于DSH-better-sidebar的侧边栏提问标签页,实现了类Codex的侧边提问或Claude Code的/btw功能。

Project Overview项目介绍

This is a DSH-native web plugin built exclusively for DeepSeek Harness, adding an embedded sidebar question-and-answer workflow to the DSH interface. It lets users select any text within an existing conversation and initiate a new question directly in the right sidebar, without interrupting or changing the state of the main conversation. It replicates the side-question functionality popularized by Codex and Claude Code’s /btw command, and is built as a third-party extension tab for the dsh-better-sidebar plugin. To install it, you can run the DSH CLI command dsh plugin --profile web add dsh-sidebar-qa directly from your terminal.

The plugin is designed for any DSH user who works with code, writing, research papers, or long-form conversations where follow-up questions on specific text snippets are common. The standard workflow starts with selecting a text snippet in your main conversation, then you can choose between two options: click “Add to conversation” to append the selected text as a quote to your current main session input box, or click “Ask Question” to open the sidebar and create a separate question session. All interactions for the follow-up question happen within the sidebar, so your main conversation flow stays undisturbed. Nested follow-up questions are also supported, letting you ask questions about previous answers in the same sidebar.

The plugin is released under the permissive MIT open source license, so you can use, modify, and distribute it freely per the license terms. Before installing this plugin, you must first install the dsh-better-sidebar dependency plugin, which requires at least version 0.16.0, and your base DSH installation must be version 0.1.2-alpha.1 or newer; if these version requirements are not met, the plugin will not activate at all. After installing via the DSH CLI, you will need to restart the dsh web process to load the plugin. The interface natively supports both English and Chinese, and automatically switches to match your existing DSH language preference.

这是一个专为 DeepSeek Harness (DSH) Web 开发的原生插件,为 DSH 增加侧边问答功能,支持用户在对话中划选任意文本后直接在右侧侧边栏发起提问,不会打断主对话流程,实现了类似 Codex 侧边提问、Claude Code /btw 的功能。它作为 dsh-better-sidebar 的第三方拓展 Tab 开发,通过官方 API 注册,安装后即可直接使用。

日常使用 DSH 进行开发、写作、文献阅读的用户都可以使用这个插件,典型工作流是在主对话中划选需要提问的文本,点击浮层的「提问」按钮后,侧边栏会自动展开并创建独立的同工作区会话,所有问答都在侧边栏内完成,主对话不受任何影响。用户也可以选择「添加到对话」按钮,直接把划选文本追加到当前主会话的输入框,满足不同场景的使用需求。

该插件遵循 MIT 许可协议,使用前必须先安装版本不低于 0.16.0 的 dsh-better-sidebar 依赖插件,同时要求宿主 DSH 版本不低于 0.1.2-alpha.1,否则插件会静默不激活。你可以通过 DSH 官方 CLI 命令安装,安装完成后需要重启 dsh web,界面支持中英双语,跟随 DSH 的语言设置自动切换。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 46 stars - an early-stage project星标 46,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-sidebar-qa

把 ChenRuoT/dsh-sidebar-qa 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-sidebar-qa

划选即问,侧边栏内嵌问答

划选提问 添加到对话 上下文摘要 嵌套追问 追问记录 零打断 中英双语

DeepSeek Harness(DSH)Web 插件:在对话里划选任意文本 → 点击「提问」→ 右侧面板问答——
自动创建同工作区的独立 DSH 会话,主对话零打断。实现类 codex 侧边提问 / Claude Code `/btw` 功能。
🌏 中文 · English
dsh-sidebar-qa demo

✨ 功能一览

  • 📝 划选提问:对话中划选任意文本 → 浮层「提问」→ 右侧面板内嵌问答,全程不跳转大窗口;侧边栏面板收起时也会自动展开,「提问」永远有可见反馈
  • 💬 添加到对话:同一个浮层的另一个按钮,把划选文本以 > 引用块追加进当前会话的主输入框并聚焦(光标落在引用块下方),不新建会话、不打开侧边栏——想就地接着说的时候用它(issue #11)
  • 🧠 智能摘要:快速无思考模型把主对话上下文压缩成小摘要,与划选引文一起注入首条消息
  • 🔀 三种上下文策略:每次提问可在「全量继承(fork+缓存命中)/ 压缩 / 机械裁切」间切换,面板内选择器 + 配置默认值双入口
  • 🔗 独立会话:自动创建同工作区独立 DSH 会话(❓<主题>),可继续、可归档,主对话零打断
  • 🪆 嵌套追问:在追问对话里再划选提问,生成子追问,层层嵌套
  • 🗂️ 追问记录:按根(主)会话分层树展示;限定当前工作区;节点可折叠、显示最近访问时间;点击跳转后追问记录 tab 保持开启;已归档/已删除的追问置灰标记状态,可一键从记录中移除(连同整棵子树清理映射,不影响 DSH 侧会话)
  • 🏷️ 两段式命名:划选首行占位命名 → 首次回答完成后基于「问题 + 回答」自动提炼 ≤15 字最终标题
  • ⚙️ 可配置:摘要/回答模型渠道、思考模式、上下文窗口与预算全部可调——入口是 DSH 设置页 → 左侧导航「追问」(面板注册为 settings.section),也可以直接写 settings.yaml 的 sidebarqa 命名空间,两条路写的是同一份配置
  • 🌏 中英双语:界面文案与模型侧提示词跟随 DSH 语言设置实时切换(无需刷新,包括已打开 tab 的标题);回答语言跟随你提问/划选的内容,不被界面语言绑架

🔌 只注册进 DSH 自带右侧栏:DSH 0.1.5-alpha.1 及以上自带右侧栏(@deepseek-ai/dsh-client-ui-sidebar-right),本插件直接注册进它(ctx.sidebarRightTabs / ctx.sidebarRight 服务 + sidebar.right.pane.tab 与 sidebar.right.pane.tab.title 席位),无任何额外依赖。dsh-better-sidebar 兼容已在 1.0.0 彻底移除。更早的 DSH 上插件仍然激活:划选浮层与「添加到对话」照常可用,只是不注册侧边栏 tab(并记一条 console.warn)。

📦 更新记录

1.1.0 - 2026-09-29

修 DSH 0.2.0 上插件整个不加载:DSH 0.2.0 新增了一道启动期 peer 兼容闸——每个 profile bundle 装载前,它 manifest 里每一个 @deepseek-ai/dsh* peer 区间都要满足 semver.satisfies(运行时版本, 区间, { includePrerelease: true }),有一个不满足,这个 bundle 的整个 patch 层被跳过(stderr 一行 dsh: skipping profile bundle …,插件像没装)。本插件 peer 写的 ^0.1.0-rc.8 在 semver 里是「下限 + 天花板」(>=0.1.0-rc.8 <0.2.0-0),而运行时 0.2.0-rc.1 已越过那个天花板,于是每个 0.2.x 宿主上都整层被跳过。现改为纯下限(>=0.1.0-rc.8 / >=0.1.7-alpha.1):新版本上线时插件不会再因版本号变化而整体消失。类型桩同步精确钉到 0.2.0-rc.1 并重新全量校验(client 半源码零改动)。新回归 tests/dsh-compat.spec.ts 在 node 里复刻这道闸门(含「旧区间必须判不兼容」的反向检测器)。host 半改动,升级后需重启 dsh web。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-scholar 下一个 Next dsh-plugin-mineru →