DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-selection-based-comments

s

dsh-selection-based-comments

Manifest valid

DSH Web's Selection Comment plugin, offering a comment experience similar to the ChatGPT/Codex web interface: select a passage of text within a chat message, then write a comment for that selection; you can continue selecting other content to append additional comments; finally, submit all selections and comments together as a single regular user message to the current session.

UI (client)hasBundlePatch

dsh-selection-comments

DSH Web 的选区评论插件,提供类似 ChatGPT/Codex 网页端的评论体验:在聊天消息中选中一段文字,针对该选段写评论;可以继续选择其他内容追加评论;最后一次性把所有选段和评论组成一条普通用户消息提交给当前会话。

功能

  • 在聊天消息文本上拖动选择,选区上方会出现“评论选中内容”按钮。
  • 每个选段可以单独编辑或删除,尚未提交的评论会汇总到右下角的评论胶囊。
  • 提交时自动合并为一条普通用户消息,模型看到的内容与手打消息一致。
  • 已保存评论对应的消息行上会显示评论标记,点击标记可快速打开待提交面板。

安装

依赖 dsh 和 pnpm。dsh plugin 会在首次使用时自动初始化 web profile。

dsh plugin --profile web add github:surenkid/dsh-selection-based-comments

安装完成后重启 DSH Web:

dsh web --port 3080

然后刷新浏览器页面。插件不需要额外构建步骤,也没有安装脚本。

指定版本或分支

dsh plugin 会把参数转发给 pnpm,因此可以使用 pnpm 的 GitHub 依赖语法固定分支或 tag:

dsh plugin --profile web add github:surenkid/dsh-selection-based-comments#main
dsh plugin --profile web add github:surenkid/dsh-selection-based-comments#v0.1.0

更新与卸载

dsh plugin --profile web update dsh-selection-comments
dsh plugin --profile web remove dsh-selection-comments

本地开发安装

git clone https://github.com/surenkid/dsh-selection-based-comments.git
dsh plugin --profile web add link:/absolute/path/to/dsh-selection-based-comments

手动安装

如果不想使用 dsh plugin,也可以直接编辑 ~/.dsh/profiles/web/package.json,在 dependencies 中加入 GitHub 依赖,并把插件加入 dsh.profile.bundles:

{
  "dependencies": {
    "dsh-selection-comments": "github:surenkid/dsh-selection-based-comments"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "dsh-selection-comments"
      ]
    }
  }
}

然后在 profile 目录执行:

cd ~/.dsh/profiles/web
pnpm install

使用方式

  1. 在聊天消息中按住鼠标选中文字,选区上方会出现“评论选中内容”按钮。
  2. 点击按钮,在浮层中写下针对这段内容的评论,然后保存。可以继续选其他内容追加多条评论。
  3. 已保存的评论不会占据聊天区域:右下角会显示一个小胶囊“评论 N”,鼠标悬停或点击即可展开编辑/删除面板;消息行上的评论标记点击后也会直接打开这个面板。
  4. 在展开面板中点击“提交评论”,所有评论会合并成一条消息发送到当前会话;发送成功后待提交列表会清空。

设计说明

  • 待提交评论只存在浏览器内存中(按 sessionId 分组)。提交是唯一的持久化步骤,发送路径就是普通 session.prompt(..., 'queue'),所以模型看到的是与手打一样的用户消息。
  • 选区定位使用 DSH conversation 渲染出的 [data-chat-anchor-key] 消息行,不依赖任何 conversation 内部实现。
  • 浮动按钮、评论编辑器和消息标记使用原生 DOM;评论列表注册在 conversation.input.dock slot。

已知限制

  • 未提交评论在页面刷新后会丢失,后续可以改成持久化 sidecar。
  • 评论标记只挂在所属消息行尾部,不在原文中做逐字符高亮;原文高亮需要 markdown source map,复杂度更高。
  • 跨消息跨区块选择时,评论归属到选择起点的消息行。

Comments

Loading…

Similar plugins

dsh-select-quote

Select text in the dsh web conversation to attach it as an annotation to your next message. The source text keeps a dashed highlight with an ordinal badge in place, and the composer summary lists, edi

UI & ExperienceManifest valid

★ 0

dsh plugin --profile web add dsh-select-quote

Adds lightweight selected-text references to DSH assistant replies: selections stay outside the editor as removable draft contexts, remain marked beside the source, and render as hoverable annotations

UI & ExperienceManifest valid

★ 0

dsh plugin --profile web add dsh-add-to-chat

by liceses

DSH 插件:把工作区里写好的 HTML 页展示在对话里,并让用户在页面上的表态快速回到 agent 手里。含四套预设样式。

Manifest valid

★ 4

MIT

JavaScript

Sep 22, 2026

dsh plugin --profile web add dsh-showme-html

by g-yixuan

Codex-style side chat + selection annotations for DSH web.

UI & ExperienceDevelopment & InfrastructureTools & CapabilitiesManifest valid

★ 8

↓ 1.1k/wk

MIT

TypeScript

Sep 29, 2026

dsh plugin --profile web add dsh-sidenote

by SpookySandwich

DSH 消息编辑插件:编辑已发送的消息并从该处分叉对话,气泡下方带版本计数与树状视图。Edit a sent message and branch from that point — version counter, tree view, placement presets.

Sessions & MessagesDevelopment & InfrastructureManifest valid

★ 14

↓ 341/wk

NOASSERTION

JavaScript

Sep 29, 2026

dsh plugin --profile web add dsh-plugin-message-edit

by yuioi666

dsh-conversation-nav-dots 在 DSH Web 对话界面的右侧添加一列导航标记。每个标记对应一条用户消息。点击即可跳转,悬停可预览所有消息内容。

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 1

↓ 42/wk

MIT

JavaScript

Sep 1, 2026

dsh plugin --profile web add dsh-conversation-nav-dots