DeepSeek Harness 插件

dsh-selection-toolbar

在对话中选中文本时显示浮动工具栏,提供复制、引用、询问、解释、翻译、总结与自定义提问操作。

跳到安装方式

来源信息

GitHub 仓库
suiyideali/dsh-selection-toolbar
最近更新
2026年8月19日
分类
界面增强
GitHub stars
0

安装

默认先复制一段 Prompt,让 Agent 读页面和仓库;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读页面和仓库。

请先不要安装。阅读这个 DeepSeek Harness 插件,说明它解决什么问题、会访问哪些文件、网络或密钥,以及如何安装和卸载。

插件页面:https://deepseekplugins.org/zh/plugins/suiyideali/dsh-selection-toolbar
GitHub:https://github.com/suiyideali/dsh-selection-toolbar
插件名:dsh-selection-toolbar
作者:suiyideali
安装命令:dsh plugin --profile web add github:suiyideali/dsh-selection-toolbar

确认前不要执行安装命令。

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-selection-toolbar ![awesome · DSH plugin](https://awesome-dsh-plugin.com)

English | [中文](README.zh.md)

Select text inside a DeepSeek Harness conversation and a small floating toolbar appears above the selection: 复制 · 引用 · 询问 · 解释 · 翻译 · 总结 (copy · quote-reply · ask · explain · translate · summarize).

All AI actions reuse the current session — the selected text is sent into the active conversation as a normal user message, so the model has full context.

Features

ActionBehavior
复制 CopyCopy the selected text to the clipboard.
引用 QuoteInsert the selection as a markdown blockquote (> …) at the composer caret.
询问 AskOpens an inline input; Enter sends 你的问题 + selection. Leaving the input empty sends the raw selection as a plain message.
解释 ExplainSend 请解释下面这段内容: + selection.
翻译 TranslateSend 请把下面这段内容翻译成中文: + selection.
总结 SummarizeSend 请用简洁的语言总结下面这段内容: + selection.

The popup hides on Escape, scroll, or clicking elsewhere; the 询问 input stays open while typing (focusing the input collapses the page selection without closing the popup).

Settings

The plugin appears in 设置 → 插件 → 插件列表 as a native-style card — the same collapsible look as the built-in 终端 / 网页搜索 entries — with:

  • 弹窗出现延时 — delay before the toolbar appears after selecting (0–500 ms)
  • 功能开关 — toggle each toolbar entry individually (复制 · 引用 · 询问 ·

解释 · 翻译 · 总结); disabled entries disappear from the popup immediately, and 全部开启 re-enables everything at once

  • 恢复默认 — reset all options

Options persist in the browser (localStorage) and apply to the popup live, no reload needed.

Install

From GitHub:

dsh plugin --profile web add github:suiyideali/dsh-selection-toolbar

or from a local checkout:

dsh plugin --profile web add /path/to/dsh-selection-toolbar

Then restart the web app so the new client bundle is picked up.

Requirements

  • dsh web (v0.1.0-rc.6 tested)
  • The profile must already mount @deepseek-ai/dsh-client-runtime and

@deepseek-ai/dsh-client-ui-slots (standard in the web profile).

Architecture notes

  • Client-only: the plugin has no host half. AI actions prompt the session

through the client sessions service — binding(id).session.prompt(...) — the exact path the composer itself uses, so queueing and error surfaces are native.

  • Quote insert uses the official inputActions.setDraft standard prop from

the conversation.input.dock slot. It deliberately avoids sessions.scope() + event bails, which the dynamic-plugin facade forbids (cross-context guard); the markdown blockquote is the same shape as other quote-reply plugins.

  • Selections are scoped to the message list ([data-chat-flow]) and

exclude the composer, inputs, and contenteditable regions.

  • Fixed actions build fixed prefixes; the 询问 question caps at 2k chars and the

selection at 20k chars to keep injected messages bounded.

License

MIT