dsh-sidebar-branch-chat
Run the following command in DeepSeek Harness:
dsh plugin install kuanfu0430/dsh-sidebar-branch-chat
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install kuanfu0430/dsh-sidebar-branch-chat in the DeepSeek Harness terminal to install the plugin; the full source code is available at https://github.com/kuanfu0430/dsh-sidebar-branch-chat
About this plugin
In the middle of a long main conversation, you sometimes want to fork off and chase a side question or try an alternate approach, without letting that detour pollute the main transcript. That is the everyday problem Branch Chat tackles. It mounts as a companion tab inside dsh-better-sidebar, with no forking, no second copy, and no modification of the host, requiring only host version 0.11.0 or higher.
The core mechanism is a fresh empty session plus a context-digest injection. The first message you send creates the branch, labelled with the first 20 characters of the text, and every subsequent send continues in that same branch. Instead of copying main-chat events, the branch receives a head-middle-tail sandwich: the first user message, heuristic titles of intervening turns, and the last completed turn with its tool calls and results, all marked reference-only. The branch agent joins the preset generation that the main agent is currently running, sharing the same tool roster and model family; a deployment with no roster stays empty rather than faking tool availability. The session is archived immediately after creation, so the branch vanishes from the main session list and search and lives only in the sidebar tab.
The tab offers branch switching, per-branch model and reasoning-effort selection, an in-flight message queue, and sandbox permission confirmation, all driven by JSON polling (1.5 s idle, 300 ms busy); SSE is not used yet. Keep in mind that the branch reuses the main session working directory and the full write tool set, so file, shell, and git side-effects share the main working tree, and the frame hint is a model-visible soft constraint rather than a permission boundary. Branch Chat is best for DSH users who already run Better Sidebar and want a clean separation between side-path exploration and the main conversation thread.
Use Cases
- Fork a side question mid-conversation without polluting the main transcript
- Try alternate model or tool paths in an isolated session without touching the main thread
- Separate exploratory branches from the main conversation so they stay out of list and search
Best For
- DSH users who already run dsh-better-sidebar
- Developers maintaining multiple parallel exploration threads beyond the main chat
- Users who want conversation-level isolation without separate workspaces
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.