DSH Hub

suiyideali/dsh-selection-toolbar

dsh-selection-toolbar

UIWeb UI0 GitHub stars· updated 2026-08-20

dsh-selection-toolbar is a community DeepSeek Harness plugin. Read the repository README before installing.

Install

npx @deepseek-ai/dsh plugin --profile web add github:suiyideali/dsh-selection-toolbar

Restart `dsh web` after install. Bundle APIs can change during the developer preview.

README badge

dsh-selection-toolbar DSH Hub badge
[![DSH Hub](https://dshhub.dev/badge/dsh-selection-toolbar.svg)](https://dshhub.dev/plugins/dsh-selection-toolbar)

Paste this into your README. The star count updates with every catalog sync.

From the README

Excerpt from suiyideali/dsh-selection-toolbar, cleaned of badges and images.

English | 中文

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:

cd dsh-selection-toolbar && pnpm install   # or: npm install
dsh plugin --profile web add /path/to/dsh-selection-toolbar

The host half depends on @deepseek-ai/dsh-settings and @deepseek-ai/schemastery (declared in package.json), so install the checkout's dependencies before adding it from a local path; installing from GitHub resolves them automatically.

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

Requirements

  • dsh web (v0.1.0-rc.6 and v0.1.0-rc.8 tested)
  • The profile must already mount @deepseek-ai/dsh-client-runtime (standard in the web profile). Since rc.8 the settings card registers through the namespace-keyed settings.plugin.item slot, and the small host half serves the dsh-selection-toolbar settings namespace so 设置 → 插件 dispatches the card; on rc.6 the same registration satisfies the older list-slot contract.

Architecture notes

Related plugins