SideMind: Spawn a thread alongside the main conversation without polluting the main context

Preface

When developing Agents in DeepSeek Harness (DSH), the main conversation often accumulates a long context: half-finished implementation changes, unresolved architecture choices, and details you want to confirm on the fly. If all these “side questions” are written into the main thread, the model’s visible history grows longer, and subsequent main tasks are more easily derailed.

Common approaches are to open another window and copy-paste context, or let the main Agent answer “by the way, let me ask something.” The former has high operational cost, while the latter writes side Q&A permanently into the main scrollback. SideMind is a DSH experimental Web/Desktop plugin maintained by Musdkar. It provides two ephemeral (destroyed on close) side interactions within the main interface via two slash commands, and explicitly does not automatically write side answers back to the main Agent.

What Is This

SideMind (npm package name dsh-sidemind, current version 0.2.2, MIT license) is positioned as: Parallel conversations without polluting your main context — parallel side questions and multi-turn side conversations without polluting the main context.

Repository: https://github.com/Musdkar/dsh-sidemind
Community directory page: https://www.skillhub.cn/plugins/Musdkar/dsh-sidemind (an independent site with no official affiliation to DeepSeek / HF Trade)

Two Commands, Two Interaction Models

The plugin is designed around two deliberately different models:

/side [question]: Right-sidebar multi-turn side thread

Opens an ephemeral multi-turn side thread in DSH’s native right sidebar. It forks from the most recent completed main turn and supports a set of conservative read-only tools; the thread is destroyed when the corresponding tab is actually closed.

Key points of the 0.2.x Side UI include: no repeated giant SideMind header image inside the native tab; a From main thread · read-only · ephemeral context bar at the top; the inherited parent history is visible to the model but hidden in the Side transcript; compact user bubbles and documentation-style assistant Markdown; native rendering when DSH provides MarkdownText, with a compatible fallback retained; assistant replies can be “copied as Markdown”; the input box auto-focuses and grows with content; Enter sends, Shift+Enter inserts a newline.

When invoked with a question, it first creates the branch and immediately sends the initial question, e.g.:

/side why is this implemented this way?

/btw <question>: One-shot Q&A overlay above the input box

Launches an ephemeral one-shot side question in a compact overlay above the main composer. It can see the current completed conversation context and provides no tools; it is destroyed after being dismissed.

BTW adopts a Grok Build–style bordered panel: the top edge shows /btw <question> and an always-visible [Esc] hint; Loading / Done / Error states with no duplicate question card or footer; answers are rendered with DSH Markdown; long replies scroll internally and can be browsed with arrow keys / Page / Home / End after completion; Esc closes and destroys the sub-conversation; the closed BTW answer is deliberately not persisted into the Main scrollback.

Example:

/btw <question>

(Replace <question> with the sentence you want to ask.)

See docs/DESIGN.md in the repository for more complete interaction rationale.

Isolation Model and Main Conversation Log

SideMind’s isolation rules are stated clearly in the README and worth reviewing before use:

  1. Both interfaces inherit only at the latest completed parent turn, then fork individually afterward.
  2. SideMind does not automatically send side answers back to the parent Agent.
  3. The Side prompt body exists only in the ephemeral child Session.
  4. /btw does not expose model tools.
  5. /side allows only a known, conservative read-only tool set; unknown or custom tools fail closed.
  6. Closing the corresponding UI disposes the child AgentHandle and removes the in-memory child Session.
  7. The plugin deliberately does not take DSH’s persistence-based resumable subagent path, hence “destroyed on close.”

The parent Session still records normal DSH command lifecycle events (command admission). SideMind uses recordInput: false, so a successful internal control call contains neither the side prompt body nor the side answer in the parent command record.

Compatibility and Runtime Environment

Declared in package.json:

  • DSH: >=0.1.0-rc.7
  • Node: >=22.19
  • System: macOS, Linux, Windows
  • Profile: web (client injects DSH right sidebar, session UI, command UI, and other modules)

DSH is still in a rapidly changing developer preview. To avoid depending on the newer sidebar close-handler API, SideMind instead listens to the tab’s AbortSignal to adapt to the currently tested DSH Desktop builds. The browser side prefers DSH native UI primitives and keeps a compatible fallback for versions that expose a smaller client module surface on Desktop.

Installation and Activation

Neither the fetched materials nor the community directory page provide a fixed verbatim dsh plugin add … installation command, so this article does not fabricate one from the repository name. Please follow the current DSH version’s plugin installation instructions from the SkillHub directory page or the GitHub README; before installing, read the source code and the MIT license, and confirm that the Node / DSH versions meet the above constraints.

The plugin runs with the current dsh process privileges; although side threads isolate context and write-back behavior, they still inherit the main conversation’s visible information and (under /side) read-only tool capabilities. You should conduct a basic review of the repository and dependencies before installing.

Use Cases

  • While the main thread pushes forward a large change, use /btw to quickly verify definitions, APIs, or “why it was written this way” without adding to the main scrollback.
  • When you need multiple follow-up turns on implementation details and may need read-only tools (e.g., reading files), use /side to open a short-lived branch on the right.
  • For DSH Web/Desktop users who want side conversations to disappear on close and not automatically pollute the main Agent context.

Note: SideMind is labeled experimental; the 0.2 series is a rewrite of the UI/interactions. Behavior is subject to your installed 0.2.2 and the corresponding DSH build.

Conclusion

SideMind productizes “side questions” into the two interfaces /btw and /side, and uses child Sessions, no automatic write-back, destroy-on-close, and a limited read-only tool strategy to reduce the common pain point of the main context being dragged out by side conversations. If you are working on plugins or Agent workflows in the DSH ecosystem, you can consult docs/ARCHITECTURE.md and docs/DESIGN.md to understand its forking and UI choices.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye