dsh-selection-actions: Quote or Ask Sidebar by Selecting Text in DSH Conversations

Preface

When conversing with models in DeepSeek Harness (DSH), follow-up questions often target specific sentences within a single reply: copy-pasting breaks the reading flow, while forwarding entire chunks easily muddies the context. Selecting code in an IDE and asking the AI has long been second nature—yet chat interfaces have lacked an equally seamless entry point.

Enter the community client plugin dsh-selection-actions (GitHub: 123WE-glitch/dsh-selection-actions). It brings quick, selection-based actions to chat messages: attach the selected text to the main input box and send, or open a sidebar conversation that inherits the main chat’s context to discuss that snippet—without disrupting the main thread.

What Is It

dsh-selection-actions is published by maintainer 123WE-glitch and categorized as a client-side plugin. The README positions it as a way to, after selecting text in a DSH conversation, “Add to Conversation” or “Ask in Sidebar”—mirroring the workflow of selecting code in an IDE and querying the AI.

The plugin is purely client-side: no third-party dependencies, no background daemons, and no modifications to DSH itself; disabling it completely restores the original state. The current package.json version is 1.9.1, licensed under MIT, targeting DSH 0.2.x (Web/Desktop, Chromium/Electron environments).

Core Features

Selection-Based Actions

Drag-select text in any message, and after about 300 ms a small toolbar appears with two actions:

  • Add to Conversation: The selected content appears as a “1 selection” capsule above the main input box; when sent, it is automatically included as a quote (the README notes: no >, no extra prompt lines, no double quotes).
  • Ask in Sidebar: Opens (or reuses) an independent sidebar conversation on the right; the main chat remains uninterrupted.

A “×” on the right of the capsule removes the quote; clicking the capsule expands a preview of the selected content.

Relationship Between Sidebar and Main Conversations

The README summarizes sidebar behavior as follows:

  • The sidebar conversation is a fork of the main conversation, inheriting its context, but the UI shows only your new question and the answer, with the main conversation history automatically hidden.
  • The sidebar conversation does not add an extra entry in the workspace session list; closing the tab archives it.
  • Only one sidebar tab per main conversation: the first click on “Ask in Sidebar” opens it; subsequent uses reuse the same tab, updating only the quoted content.
  • Sidebar content behaves like the main conversation (approval, tool calls, and stop buttons are available within the sidebar); model and permissions follow the settings of the main session.

Interface and Implementation Highlights

  • Bilingual (Chinese/English), adapts to the DSH theme (uses design-system tokens without overriding theme colors).
  • Mounts a floating toolbar via ctx.slots, opens the sidebar tab via ctx.sidebarRight; sending uses ctx.remote.session.prompt / ctx.remote.subagents.prompt, without simulating input-box submission.

Installation & Activation

The official README does not provide a dsh plugin add github:... command; it recommends using the PowerShell install script after downloading the repository.

Requires PowerShell (included in Windows). Run in the repository directory:

powershell -ExecutionPolicy Bypass -File .\install.ps1

The script:
- Copies the plugin to %LOCALAPPDATA%\dsh-selection-actions
- Registers the dependency and bundle in the current DSH profile (default ~/.dsh/profiles/desktop)
- Creates a node_modules link

After completion, restart DeepSeek Harness or press Ctrl+R to refresh the page.

To customize the DSH data directory, profile name, or install location:

powershell -ExecutionPolicy Bypass -File .\install.ps1 -DshHome "D:\dsh-data" -ProfileName desktop -TargetDir "D:\plugins\dsh-selection-actions"

Option 2: Manual Installation

  1. Place the repository in a fixed directory, e.g. C:\plugins\dsh-selection-actions.
  2. Edit %USERPROFILE%\.dsh\profiles\desktop\package.json: add "@local/dsh-selection-actions": "link:C:/plugins/dsh-selection-actions" to dependencies, and append "@local/dsh-selection-actions" to the dsh.profile.bundles array.
  3. Create a junction in the profile directory (see README for example paths).
  4. Restart DeepSeek Harness.

If you manage the profile with pnpm/npm, you can run pnpm add "link:C:/plugins/dsh-selection-actions" and then add the package name to dsh.profile.bundles.

Uninstall

powershell -ExecutionPolicy Bypass -File .\uninstall.ps1

Or remove @local/dsh-selection-actions from the profile’s dependencies / dsh.profile.bundles, delete the corresponding links and install directory, then restart.

Note: Client plugins reload after a page refresh; host-side changes require restarting Harness. Review the repository source and LICENSE before installing; the plugin runs with the current DSH process permissions.

Typical Usage

After installing as above and restarting/refreshing, follow the README workflow:

  1. Drag-select a piece of text in any chat message and wait for the toolbar to appear.
  2. Click “Add to Conversation” → a capsule appears above the main input box → enter your question → press Enter to send.
  3. Click “Ask in Sidebar” → the sidebar opens or reuses an existing conversation → enter your question under the capsule quote → press Enter.
  4. Use the capsule’s “×” or expand preview to manage quoted content as needed.

When the selected content is sent as an attachment/quote, the model may need to read it before answering, so the first turn might be slightly slower—the README explains this is intentional to avoid injecting large chunks of text into the message body.

Use Cases & Limitations

Ideal for: Developers or regular DSH users who want to drill into specific paragraphs of a long reply, keep the main conversation thread clean, and benefit from sidebar forks that inherit context.

Known limitations (from the README):

  • Depends on DSH client Slot / Sidebar extension points; requires DSH 0.2.x; major version upgrades may require adaptation.
  • Mainly tested on Chromium/Electron DSH Web/Desktop; other hosts are unverified.

The maintainer lists a Roadmap in the README (e.g., shortcut-triggered actions, merging multiple selections into one quote, pinning models in the sidebar, writing conclusions back to the main conversation), with feedback tracked via GitHub Issues / Discussions.

Closing

dsh-selection-actions integrates “select → quote or ask in sidebar” directly into the DSH chat UI, reducing copy-pasting and context switching. Directory page: SkillHub · dsh-selection-actions; source and install instructions: GitHub · 123WE-glitch/dsh-selection-actions.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye