Preface¶
When collaborating with the main conversation and sub-agents in parallel within DeepSeek Harness (DSH), the common practice is to copy-paste a segment of an AI reply and then switch to another input box. As conversations grow longer and sub-sessions increase, this workflow becomes slow and prone to context loss. The community plugin dsh-quote-to-agent transforms “selecting text from conversation history → quoting to the current conversation or dispatching to a sub-agent” into a text selection action. The quote lands in a quote bar above the input box and is automatically appended to the message upon sending; when a sub-agent is needed, a cell can be opened on the right side on the same screen, and if no sub-session exists, the quote can be suspended and automatically resumed in the derivation flow.
The following sections cover positioning, capabilities, installation, and usage. Facts are subject to the repository’s README and package.json.
What is this¶
dsh-quote-to-agent is a pure client-side plugin for the DSH Web terminal (dsh.client, platform: "web") released by the maintainer gongstudent, targeting host version DSH 0.2.0-rc.2. The current package version is 0.1.1 with an MIT license.
In short: select text in the conversation history to quote it into the current conversation or dispatch it to a sub-agent conversation. Compared to other dsh-quote-* plugins in the ecosystem, the difference lies in the ability to dispatch quotes to a sub-agent session and automatically derive one if none exists (the old name dsh-quote-dispatch is deprecated).
- Directory Page: https://www.skillhub.cn/plugins/gongstudent/dsh-quote-to-agent
- Source Code: https://github.com/gongstudent/dsh-quote-to-agent
The community directory site has no official affiliation with DeepSeek / High-Flyer. The plugin runs with the client permissions loaded by the profile after you install DSH Desktop; please read the source code and license yourself before installing.
Core Functions¶
Actions after Text Selection¶
| Scenario | Behavior |
|---|---|
| Select text in the main conversation | Quote to Current Conversation / Quote to Sub-conversation |
| Select text in a sub-agent | Quote to Main Conversation / Quote to Current Conversation / Quote to Another Sub-conversation |
Quoting to Current Conversation¶
The quote bar appears in a horizontal area directly above the far left of the input box: when collapsed, it shows the count; hovering expands the original text list, and each item can be deleted individually with a ×; when the message is sent, the quotes are automatically appended to the draft.
Quoting to Sub-conversation¶
Opens the corresponding sub-agent session in a new cell on the right (on the same screen as the main conversation, with a draggable divider), and the quote appears on that sub-session’s quote bar. If there is currently no sub-agent, the plugin will suspend this quote and write text like “Deriving a sub-agent…” into the input box; when a new sub-session appears, the suspended quote is automatically resumed.
When there are multiple sub-agents, a candidate list pops up; if there is only one, it opens directly. The candidate list only lists direct sub-sessions, not grandchildren (the README notes that the client cannot access listDescendants).
Implementation Form (for Troubleshooting)¶
- Inserts into the composition tree via
cordis.patch.yml; business logic is inlib/client.js, while the host half inlib/index.jsis an emptyapplyintended only for the Loader scan entry. - Mount surfaces are split by dependency: quote bar etc. rely on
slots; the action bar additionally relies onsessions/sidebarRight/conversation; each mount surface has an independent ErrorBoundary that rendersnullon failure. - The quote bar does not persist across refreshes (intentionally decoupled from DSH draft persistence). Clicking a quote to jump back to the original text and highlight it is not yet implemented.
Installation and Activation¶
The global dsh CLI cannot manage the desktop profile; you must use the CLI bundled with Desktop. Replace <Install Directory> with the local DeepSeek Harness installation path, and <Repo Directory> with the path to the cloned or extracted plugin directory.
$env:ELECTRON_RUN_AS_NODE='1'
& "<Install Directory>\DeepSeek Harness.exe" --expose-internals `
"<Install Directory>\resources\app.asar\dsh\node_modules\@deepseek-ai\dsh-desktop-host\lib\cli.js" `
plugin --profile desktop add "<Repo Directory>"
After installation, you must restart the Desktop application (static client plugins are loaded at service startup), and then force refresh the page with Ctrl+Shift+R within the interface.
To uninstall, change add to remove in the command above. The plugin ID is dsh-quote-to-agent:
# Same as above, replace add with remove
... plugin --profile desktop remove dsh-quote-to-agent
Typical Usage¶
- In an AI reply within the main conversation or a sub-agent, select one or more sentences with the mouse.
- On the action bar that appears, choose:
- Keep in current input: Quote to Current Conversation → Look at the quote bar at the top left of the input box, confirm and send.
- Hand over to sub-agent: Quote to Sub-conversation → Open or select a sub-session on the right; the quote bar appears in that session; if there is no sub-session, derive one according to the prompt and the quote will be attached automatically. - When selecting text in a sub-agent, you can quote the fragment back to the main conversation or forward it to another sub-conversation as needed.
If the functionality “silently fails” after upgrading DSH, the README suggests a four-step self-check: does the text selection action bar appear, is the quote bar at the top left of the input box, does Enter or clicking send include the quote, and can “Quote to Sub-conversation” open a sub-session on the right (the first two items are often related to DOM anchors and slot keys).
Development and Verification (Optional)¶
The repository provides Node-side gates and smoke tests, allowing you to run some assertions on the client bundle without a browser:
node scripts/check.mjs # Gate
node scripts/smoke.mjs # Smoke test
node scripts/audit.mjs # Self-audit
For read-only inspection of the desktop profile composition tree, use scripts/inspect-profile.cjs (see README for parameters and paths).
Use Cases and Notes¶
Who it is for: Users who frequently move the same segment of replies between the DSH main conversation and sub-agents and want to minimize switching and manual pasting; scenarios using or planning to use the DSH 0.2.0-rc.2 line of Desktop Web clients.
Dependencies and Risks: The plugin relies on several unofficial DOM anchors (such as [data-conversation-scroll], [data-composer-seat], etc.) and slot keys (such as conversation.input.dock, shell.overlay). Host UI changes may cause text selection, the quote bar, or send injection to silently fail; the README marks resource addresses and host mode validation as visible failure surfaces. Send injection handles Enter and main send button clicks during the capture phase; paths such as Shift+Enter, IME composition Enter, and image upload busy states are marked in the README as requiring real device confirmation.
Permissions: The plugin does not declare peerDependencies and writes via the official draft API; global side effects are self-audited via audit.mjs; security judgments should still be based on the source code installed locally.
Conclusion¶
dsh-quote-to-agent connects “Text Selection → Quote Bar → Send” and “Text Selection → Sub-agent Same-Screen Dispatch” into a single link, handling suspension and automatic resumption when no sub-session exists. For installation steps and interface screenshots, refer to the SkillHub Directory Page and the GitHub Repository README.