Introduction¶
When having in-depth conversations in DeepSeek Harness (DSH), you’ll often encounter a scenario like this: you’re discussing a specific detail in the main chat and want to dig deeper, but you don’t want to disrupt the existing conversation flow. The common workarounds are either starting a new session or pasting the follow-up back into the main window—both of which make the context messy. Below is an introduction to a plugin that lets you select text directly within DSH, keep follow-up questions in their own branch, and still use DSH’s native interface and input box.
What Is This¶
dsh-btw-explore is a DSH plugin maintained by VicissitudeYW. Its core value: select a passage of text on a main chat message, click “Explain” or “Explore,” and a child card unfolds from the selection. You can continue asking follow-up questions inside the card, and all of them stay within the branch that card belongs to. The card data is stored locally—after closing or restarting DSH, you can still return to the original branch via the dot tree on the left or the “Side Queries” list.
Core Features¶
- Select text to expand a child card: Select text in a DSH chat message, then click “Explain” or “Explore” to expand a child card from the selection.
- Continue follow-ups inside the card: Switch models, add attachments, or invoke commands within the card—follow-up questions stay within that card.
- Dot tree navigation: Move your cursor to the left edge of the main chat content area to reveal the dot tree; click a dot to jump back to an existing card.
- Whiteboard view: Open “Explore” from the session tab bar to view the card tree fanning out to the right from the main chat on a whiteboard. Small cards display the selected text and a model response snippet.
- Resize small cards: Hover over a card’s edge or corner, then drag when the cursor changes. Zooming in reveals more Markdown preview.
- Side Queries list: Expand “Side Queries” in the left workspace list to directly open the native session of an existing child card.
Installation & Activation¶
Install from source in PowerShell. You’ll need Git, Node.js 24 or later, and DSH already installed. The commands below use the desktop profile as an example; for the web profile, replace desktop with web.
git clone https://github.com/VicissitudeYW/dsh-btw-explore.git
Set-Location dsh-btw-explore
npm run build
$archive = (npm pack --ignore-scripts --json | ConvertFrom-Json).filename
$packagePath = (Resolve-Path -LiteralPath $archive).Path.Replace('\', '/')
dsh plugin --profile desktop add "file:$packagePath"
After installation, restart the corresponding DSH instance. If you already have the repository cloned, pull the latest source first, then run the build starting from npm run build. Installation and browser interactions have been verified with DSH 0.2.2-rc.5.
If PowerShell can’t find the dsh command, the desktop install ships with a bundled CLI. After packaging and obtaining $packagePath, run:
$dshInstall = Read-Host 'Enter the DeepSeek Harness installation path'
$dshCli = Join-Path $dshInstall 'resources/runtime/cli/bin/dsh.cmd'
& $dshCli plugin --profile desktop add "file:$packagePath"
Typical Usage¶
- Select a passage of text in a DSH chat message. Click “Explain” and the child card unfolds from the selection, automatically starting a response; click “Explore” and the card opens with a citation, waiting for you to type your own question.
- Continue follow-ups inside the child card. Just like in the main chat, you can switch models, add attachments, or invoke commands.
- Move your cursor to the left edge of the main chat content area to bring up the dot tree, then click a dot to jump to an existing card. Open “Explore” in the session tab bar to view the card tree fanning out to the right from the main chat on a whiteboard.
- Expand “Side Queries” in the left workspace list to directly open the native session of an existing child card.
Common operations:
- Follow up on a detail: Keep sending messages in the current child card; follow-ups stay within that card.
- Open a nested child card: Select text inside a child card and click “Explain” or “Explore.” If the citation is a response, the selected fragment is carried in.
- Branch from a specific turn: Select text in a child card and click “Branch from this turn.” The new card inherits the starting context and the Q&A up to that turn.
- Browse the whiteboard: Drag on empty space to pan, drag inside a card to reposition it, and single-click a card to open the conversation. Click the locate button in the top-right corner of the whiteboard to return to the main chat node.
- Resize small cards: Hover over a card’s edge or corner, then drag when the cursor changes. Zooming in reveals more Markdown preview, and connecting lines follow along. Card size and position are saved locally.
- Switch or close: Click a dot to switch cards. Press
Escto go back one level at a time; click the topmost dot or the background outside the card and dot tree to return to the main chat.
When switching cards, the previous card slides left and recedes while the target card moves forward. Popped-out native child cards can also be repositioned by dragging. The dot tree supports arrow-key navigation and Enter or Space to open; if the system has “reduce motion” enabled, it switches cards directly.
Use Cases & Notes¶
This plugin is well suited for scenarios in DSH where you frequently need to branch into follow-up questions and preserve their context. The plugin runs with the permissions of the current DSH process—review the source code and license before installing.
Data & Configuration¶
- Card database:
$DSH_HOME/btw-explore/cards.sqlite; ifDSH_HOMEis not set, it falls back to~/.dsh/btw-explore/cards.sqlite. - Conversation records: Managed by DSH. A complete backup requires keeping both DSH’s session data and the card database.
- Context boundaries: The source is fixed at card creation time; subsequent follow-ups do not alter the starting point of an existing branch. Carried-over Q&A text is capped at 24,000 characters, selection citations at 4,000 characters, and each main chat is limited to 500 cards.
FAQ¶
- Will selecting the same text twice create two cards? The same citation within the same message will open the same card for both “Explain” and “Explore.” “Explain” only auto-submits the initial question when the conversation is empty; re-opening an existing conversation will not regenerate it.
- Can child cards use other DSH plugins? Plugins that work in the conversation area are fine; plugins that depend on main-window-specific regions may need adaptation. Using
dsh-message-toolbar1.11.1 or later allows saving answer edits, switching versions, and regenerating within a child card, with the selected version restored on reopen. Version 1.11.0 jumps back to the main window when saving edits. - Does removing a card delete the native conversation? No. Removing a card takes it and its descendants out of the exploration tree. Native child cards with sent messages revert to their original location in DSH and can still be opened from the sidebar. Cards from 0.1.x and 0.2.x remain viewable, follow-up-able, and branchable.
Acknowledgments & License¶
Card interactions and dot navigation were inspired by Explore—thanks to the Explore team.
Reference Links¶
- Plugin directory: https://www.skillhub.cn/plugins/VicissitudeYW/dsh-btw-explore
- GitHub: https://github.com/VicissitudeYW/dsh-btw-explore