Preface¶
When working on long tasks in DeepSeek Harness (DSH), the main session is often packed with context: modifying code, running tools, aligning on requirements. If at this point you just want to casually ask a question like “What does this error message mean?” or “Why does this test fail?”, the common approach is to insert a question into the same session, or open a new empty session and paste the background. The former easily derails the main task, while the latter requires re-explaining the context.
The BTW Side Chat introduced below (repository Big-Smarty/dsh-btw-sidechat) takes another path: use the global command /btw to fork a child session from the current session, inheriting the complete transcript (user messages, assistant replies, tool results) from completed rounds, answering your side questions under a read-only policy, and displaying them in a right sidebar as an independent window similar to Codex, without interrupting the main task flow.
What This Is¶
BTW Side Chat is a client-side third-party plugin for DSH, maintained by Big-Smarty. In one sentence: within Harness, use /btw to fork a read-only side chat based on the current conversation, with answers presented in a right sidebar window.
The plugin is released under the MIT license, with the current package version 0.1.0 (see the repository package.json). The Host side provides the /btw command along with fork and read-only policies; the Client side registers dsh-resource://btwchat/... resources, right sidebar tabs, and command cards. No build step, no additional npm dependencies; it is pure ESM Host code plus browser modules, and the UI supports both Chinese and English.
Core Features¶
Full Context Inheritance¶
The DSH session log is the single source of truth. /btw forks the prefix of the latest completed round of the current session; the child session can see the parent session’s user messages, assistant replies, and tool results, with no re-summarization. If /btw is sent while the parent session is still in an ongoing round, that ongoing round will not be included in the fork; if there is not yet any completed round, it will return a clear error rather than creating an empty child session.
Read-Only Policy¶
The child session first pins the native tool display, then intersects it with an allow list, and uses a monotonically increasing per-agent guard to reject other tools (including subsequently registered run_code, etc.). The allowed tools listed in the README include: read, read_image, glob, grep, web_search, web_fetch, skill. It cannot write files, run shell commands, modify configuration, create goals, spawn sub-agents, etc.; follow-up questions and answers in the side chat will not be written back to the parent session context.
Some tool schemas registered at the agent scope in certain deployments may still appear in the list, but the guard will reject execution; the side chat system prompt will also state that only the listed tools may be used.
Right Sidebar and Command Card¶
After executing /btw, the Client opens a dsh-resource://btwchat/... tab on the right, embedding a regular Conversation (inherited transcript, streaming answers, Markdown, and a composer for follow-up questions). A compact side chat card (containing the question and an Open button) appears in the main transcript, making it easy to reopen the tab later.
Session Persistence¶
The side chat is a normal forked session, appearing in the workspace session list, and can be recovered after restart; on cold-start recovery, the read-only policy is reapplied based on the title prefix BTW · (if you manually change the title prefix, subsequent cold recoveries may not recognize it as a side chat).
Environment and Prerequisites¶
The README states that DeepSeek Harness 0.2.1-rc.2 or a version with similar capabilities is required, and the following must be available: right sidebar, Session Controller, and support for the /btw command.
Web / Desktop only (side window): The side window depends on the right sidebar; only the Client half under DSH Web or Desktop configurations will open the window. On a TUI Host, the child session is still created, but no side window will pop up.
Global command conflict: Only one plugin can provide the global /btw at a time. Before enabling this plugin, disable other /btw providers (e.g., @michengai/dsh-btw); two global commands with the same name will cause a loading error rather than silent overwriting.
Installation and Enablement¶
The installation steps are based on the repository README; install third-party plugins through the DSH interface (do not use CLI concatenation commands not found in the documentation).
- Open Plugins in the DSH sidebar.
- Choose Add plugin → Install third-party plugin.
- Fill in the repository address:
https://github.com/Big-Smarty/dsh-btw-sidechat.git
A local clone path can also be used for installation, facilitating joint debugging and modifications. After installing and enabling the bundle, refresh the page once so that the Client half loads.
You can also have an agent in DSH install the bundle from the same URL.
The plugin runs with the permissions of your current Harness within the DSH process. Before installing, it is recommended to browse the GitHub source code and the MIT license to confirm it meets your security and compliance requirements.
Typical Usage¶
| Action | How |
|---|---|
| Ask a side question | /btw why does the retry test fail? (replace the quoted part with your question) |
| View the answer | The side chat automatically opens on the right sidebar |
| Follow-up | Continue typing in the side chat composer; the same read-only child session responds |
| Reopen | Click Open on the /btw card in the parent session transcript |
| Close the window | Just close the tab; the child session remains in the session list |
The automatic opening on command/executed is a local behavior of this browser tab. If in another tab, after a refresh, or triggered by /btw on the Host side, you need to manually open the side window using the Open button on the command card.
How It Works (Overview)¶
The flow in the README can be summarized as follows:
- The Host command calls
sessionController.fork({ sessionId }), creating a child session with a parent event prefix and presets. - Before the first prompt, it pins the tool display, computes the read-only intersection, installs
tools.restrictandtools.guard, and injects thebtw:side-chatsystem prompt section. - The child session title is set to
BTW · <question>, serving as a marker for recovery. - The question is sent via
sessionController.prompt, and the command result returnsdsh-resource://btwchat/session/<child>?parent=…&q=…. - The Client registers the
btwchatresource provider, right sidebar tab, a command card with the keybtw, and listens for localcommand/executedto refresh the session catalog and open the tab. - The tab renders the standard
conversation.contentinembeddedmode within the child session’sSessionProvider.
For more detailed architectural explanations, see docs/ARCHITECTURE.md in the repository.
Applicable Scenarios and Limitations¶
Suitable for: The main session is advancing implementation or debugging, and you need to explain, attribute, or perform read-only retrieval (reading the workspace, glob/grep, optional web tools) based on the same conversation and tool results that have already occurred, without wanting side questions to pollute the main context or mistakenly trigger write operations.
Things to note:
- Closing the side window does not automatically archive the fork; the session will remain in the list like a normal fork.
web_searchandweb_fetchwill send text to the search/fetch providers; if the inherited transcript is sensitive, you can remove them fromREAD_ONLY_TOOLSinindex.js(see the Limits section of the README).- In the ecosystem, DSH emphasizes “everything is a plugin”; community catalog sites have no official affiliation with DeepSeek / QuantaInfo, and this plugin is a community-maintained third-party bundle.
Links¶
- Community catalog page: big-smarty/dsh-btw-sidechat
- Source code and documentation: GitHub — Big-Smarty/dsh-btw-sidechat
With the above steps, you can use /btw to treat “what has already happened in the current conversation” as a read-only context, and ask separately in the right sidebar without interrupting the main task.