Stage several selected excerpts in a draft composer, then ask in a read-only temporary side chat: only read, glob, grep and read_image are allowed, with its own model and reasoning effort; closing the tab archives the session.
Install
# from npm (prebuilt)
dsh plugin --profile web add @endorphin1203/dsh-side-chat
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Endorphin1203/dsh-side-chat
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Select text in a DeepSeek Harness conversation and choose Add to chat or Ask in side chat.
Features
- Add to chat inserts the selection as a Markdown quote in the current composer.
- Ask in side chat opens a draft composer in the right sidebar. Selected excerpts accumulate there as a compact n selected excerpts chip: the chip shows no inline text, hovering reveals the excerpts and an X immediately beside the count, and the X clears all excerpts. Add another excerpt at any time by selecting more text and choosing Ask in side chat again.
- The draft composer follows the main conversation's styling and has a two-step model picker: model and reasoning effort entries, matching the main conversation's model picker. The side chat can follow the main session's model or use a selected model/effort.
- Sending the draft starts the side chat in the right sidebar with all excerpts and the question as its first context. The conversation then uses the native Harness composer, so follow-ups and the input area match the main conversation.
- The side chat is read-only. Its execution guard allows only
read,glob,grep, andread_image; other tools (including shell, write, edit, web, agents, and memory) are denied even if they appear in the model's tool list. - Closing the side-chat tab stops and archives the temporary session. The UI, session list, and subagent catalog stop showing it; DeepSeek Harness keeps an archived session log on disk.
- The internal
/sidechatcommand lifecycle still exists in the parent session log (it is the UI-to-Host bridge), but its Chat rows are hidden by the plugin.
Install
Install with the Harness plugin manager once published to npm:
dsh plugin --profile desktop add @endorphin1203/dsh-side-chat
Or install straight from GitHub source:
dsh plugin --profile desktop add github:Endorphin1203/dsh-side-chat
Configuration
cordis.patch.yml exposes:
| Key | Default | Meaning |
|---|---|---|
providerName |
spawn |
Subagent backend used for the temporary child |
maxTranscriptChars |
40000 |
Parent-conversation snapshot budget |
maxSelectionChars |
20000 |
Maximum total selected text |
maxQuestionChars |
4000 |
Maximum question |
readOnlyTools |
read, glob, grep, read_image |
Allowed model tools |
systemPromptOrder |
900 |
Prompt section order for the side-chat context |
Development
node --test tests/pure.test.js
node --check index.js lib/host.js lib/pure.js client.js tests/pure.test.js
Known limitations
- Closing archives the temporary session log; it does not physically delete it.
- The
/sidechatcommand events remain in the parent session log even though their Chat rows are hidden. Selected text is not recorded by the command (recordInput: false). - Because the temporary session is a continuable subagent child, it may appear in the parent's subagent catalog while open; it is archived when the tab closes.
- The parent snapshot is fixed at open time; later parent turns are not visible to the side chat.
- Selection is limited to conversation text; file-preview selections are not covered.
- The draft composer is a plugin component that mirrors the main composer; after sending, the side chat uses the native Harness composer.
Links
More in this category
ranxianglei/billion-context★ 7661
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4374
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 723
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
MichengAI/dsh-archive-manager★ 367
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 317
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
SiriLee/dsh-rewind★ 279
Conversation rewind: one click back to any earlier user message, in the same window — no new branch, no leftover copy; the target message is refilled into the composer, with optional workspace-file restore — the full Claude Code /rewind semantics.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.