Introduction¶
In long conversations, you often need to ask a quick question about the current context, such as “Summarize what we just discussed” or “What’s wrong with this code?” If you send it to the main conversation, it interrupts the current task and adds the new question to the history, bloating the context. Claude Desktop and the CLI offer a side chat (/btw) solution: ask questions in a right-side panel, see the full context of the main conversation, but without writing to the main conversation or consuming the main task’s resources.
dshx-side-chat implements a similar mechanism for DeepSeek Harness (DSH): ask independent questions in a right-side panel within the current session, with the full main conversation history visible, but the Q&A not written back to the main conversation.
What It Is¶
dshx-side-chat is a DSH plugin maintained by callaumyan-design. It provides a right-side sidebar chat panel, triggerable via keyboard shortcuts or commands. Each question is based on the full derived history of the main conversation and completed in an independent request. The plugin does not execute tool calls, does not modify the main session log, and conversation content is stored only in the browser’s localStorage — it does not sync across devices.
Core Features¶
Trigger Methods¶
Ctrl+;(⌘;on macOS): Open/focus the side chat panel for the current session- Type
/btw questionin the input box: Ask a question in the side chat; the question is not sent to the main model - Right panel
+→ “Side Chat” card: Same as above - Right-click in the conversation body: When text is selected, shows “Ask in Side Chat (Quote Selection)”; when no text is selected, shows “Open Side Chat.” Selected text is inserted as a
>quote into the input box - Right-click on the session title (breadcrumb): “Open Side Chat”
Panel interactions:
- Enter to send, Shift+Enter for a new line, Esc or “Stop” to interrupt
- Top bar allows selecting “Follow Main Conversation” or switching models
- “Quote Selection” inserts text selected from the main conversation as a > quote into the question
- “Clear” clears the current side chat Q&A
Request Mechanism¶
Each side chat question generates one independent model request, with the input consisting of:
- The derived history of the main conversation (system prompt + all messages and tool results, identical to what the main loop would send next)
- Previous side chat Q&A history (limited by maxSideTurns)
- The new question
By default, it inherits the main conversation’s provider, model, reasoning intensity, and tool declarations, but the side chat model is instructed not to call tools. Even if it emits a tool call, it will be discarded and not executed.
If the main conversation is in the middle of a tool execution, incomplete steps (calls without results) are trimmed before being sent to the side chat request.
The request does not carry a sessionId, to avoid conflicts with the main conversation’s in-progress subscription-based provider requests.
Sessions and Storage¶
- Zero writes to the main session log: The plugin writes nothing to the main session
- The
/btwcommand leaves a one-line command record in the transcript; the question text is not logged - Side chat content is stored in the browser’s
localStorageunder the keydshx-side-chat.v1.<sessionId>, up to 50 turns - No cross-device sync; switching browsers or clearing cache in DSH will lose the data (consistent with Claude Desktop behavior)
API Routes¶
POST /dshx-side-chat/ask{ sessionId, question, history?, provider?, model? }→ NDJSON stream:meta / thinking / text / done / errorGET /dshx-side-chat/models: Get the list of available modelsGET /dshx-side-chat/pending?sessionId=: Retrieve queued/btwquestions
Configuration¶
Add a dshx-side-chat entry to DSH’s cordis.patch.yml. Configuration options:
| Field | Default | Description |
|---|---|---|
maxSideTurns |
20 | Number of previous side chat turns included with each question |
maxOutputTokens |
0 | Output token limit for side chat responses; 0 means follow the main conversation/model default |
requestTimeoutSeconds |
600 | Timeout per question (seconds) |
Installation & Activation¶
Please exit the DSH application before installing.
Run the following command to complete the installation:
node install-profile.mjs
The installation process registers in three places: a node_modules copy, package.json dependencies and bundles, and an explicit entry in the profile’s cordis.patch.yml, with backups and BOM checks.
To roll back, remove dshx-side-chat from the bundles array in the profile’s package.json, or restore the corresponding *.bak-side-chat-* backup files.
Testing¶
The project provides test scripts:
cd test
node host-test.mjs # 20 tests: history trimming, assembly, /btw queuing, ask streaming e2e, zero main-session writes
node client-test.mjs # 23 tests: tab types/slots, /btw, Ctrl+;, panel rendering, body right-click (selected/unselected/Shift/link), title right-click
Tests depend on a real @deepseek-ai/dsh-llm (version 0.2.2-rc.1) in test/node_modules, extracted from the local app.asar via extract-host.cjs.
Use Cases & Caveats¶
Suitable for the following scenarios:
- Needing to quickly ask questions or summarize based on the current context
- Not wanting to interrupt the main conversation’s task flow
- Needing to quote specific parts of the main conversation for follow-up questions
- Wanting to run a separate conversation alongside the main task without polluting the main history
Caveats:
- The side chat cannot use tools. If you need to read new files or invoke external capabilities, do so in the main conversation
- Records are stored only in the current browser; switching browsers or clearing cache in DSH will lose them
- Right-click operations in the body use the host’s uiConversation.interactions (trigger: 'contextmenu') and the conversation.chat.text-interaction overlay. Hold Shift and right-click to invoke the native context menu
- After a host upgrade, verify the following: the shape of sidebarRightTabs.register / openTabFromTarget / shortcuts.register, session.requestHeader() and toolHistory(), and the command/executed client event
Ecosystem Context¶
DeepSeek Harness (DSH) adopts a “everything is a plugin” philosophy, with plugins extending functionality through the cordis architecture. This plugin is a community contribution and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dshx-side-chat provides DSH users with a side chat capability similar to Claude’s, enabling quick context-aware questions without interfering with the main conversation. If you frequently need to ask independent follow-up questions in long conversations, consider enabling this plugin.
- Directory page: https://www.skillhub.cn/plugins/callaumyan-design/dshx-side-chat
- GitHub: https://github.com/callaumyan-design/dshx-side-chat