Introduction¶
When engaging in multi-turn conversations, opening fork sub-sessions, or attaching sub-agents within DeepSeek Harness (DSH), the main conversation area typically allows you to only view linearly down the current branch. Attempting to return to a specific turn to add a follow-up question or comparing where another branch diverged often requires navigating back and forth between the session list and scroll positions. The community plugin dsh-branch-tree (Maintainer: ANHANP, Category: Workflow) projects the branches and turns of the same family tree into a tree view within a persistent drawer on the right side: one card per turn, forks emerging from the corresponding turn, and the ability to jump back to the main conversation for precise positioning based on event seq.
What is this¶
dsh-branch-tree is an unofficial community plugin for DSH (MIT license, current package version 0.1.1). The README summarizes it as: transforming session branch history into a tree that can be browsed left-to-right, jumped back to, and continued with follow-ups—turns are displayed as cards, forks grow from the point of divergence, accompanied by a persistent right drawer, sub-agent forest, and thumbnails.
The author has verified functionality on DSH Desktop Beta (app 2.0.17-beta.2 / runtime 0.2.1-alpha.2, macOS); narrow windows and other clients are not declared as tested in the documentation.
Core Features¶
The following summarizes the capabilities already documented in the README, without exceeding the scope of the available information.
Persistent Drawer & Turn Cards¶
There is a ⑂ handle on the right edge of the screen. Clicking it opens a separate persistent drawer: the drawer does not disappear when switching sessions or branches, and view, zoom, and expansion states are preserved. Each box corresponds to a conversation turn, displaying the last user message and the final assistant reply of that turn; tool calls do not occupy card space.
Forks and Sub-agents¶
Branches grow out from the turn where they diverged: the inherited prefix of a fork sub-session maps back to the corresponding turn in the parent session, rather than attaching to the end of a sibling branch. Sub-agents are placed at the corresponding turn based on creation time; expanding “Agents ×N” at the bottom of the card extends from the right edge, and related conversation nodes shift right to make room (sub-agent cards are read-only and aggregated by node).
Jump, Branch Creation, and Navigation¶
- Click any turn card (including the “You / AI” lines within the card) → The main conversation switches to that session and positions precisely by the event seq of that turn’s user message; cross-branch navigation will not jump to a turn with the same number, and an outline highlight appears upon arrival.
- Hovering over a completed turn card reveals a
+on the left, allowing you to pop up a “New Follow-up” input card; quick words can be clicked to send, and the+allows customizing quick words. Sending automatically forks, sends the follow-up, and switches to the new branch (new branches cannot be opened from incomplete turns). - The thumbnail in the top right shows a silhouette of the entire tree and the current viewport box; clicking or dragging allows navigation. The canvas can be freely panned, and zooming is pointer-centric; there are no scroll boundaries.
- Double-clicking the branch name pill renames the branch (saved locally, so automatic names will not overwrite it later).
- The toolbar
⇆toggles “Mirror turn navigation bar to the left” (enabled by default); the→handle serves as the collapse button.
The drawer is mounted only once across sessions; switching sessions updates the data; camera state is stored in localStorage. Clicking the main conversation, top bar, or blank areas collapses it; clicking the left workspace/session bar and its dropdowns does not collapse it; Esc also collapses it. It follows DSH’s dark/light theme.
Data and Privacy¶
The host provides access semi-via a read-only route (Host header fence, loopback only):
GET /branch-tree/api/tree?sessionId=<id>— Branch family tree, per-turn projections, sub-agent forest.GET /branch-tree/ui/*— Drawer iframe UI (changing UI does not require restarting the host).
Data comes from the local DSH session library (sessionQuery, capable of reading unopened cold sessions; degrades to live store if missing) and the subagents service. Turn titles are generated by the same DSH model route (usually deepseek-flash) and cached to ~/.dsh-beta/branch-tree/round-titles.json; if the model is unavailable, local truncated placeholders are used. The plugin does not upload data; except for titles using DSH’s own model route, no additional network requests are made.
Installation and Activation¶
Currently distributed via GitHub Release pre-built tarball (npm package documentation states it will be available later). The installation command follows the README original:
dsh plugin --profile web add https://github.com/ANHANP/dsh-branch-tree/releases/latest/download/dsh-branch-tree.tgz
The command automatically writes dependencies and dsh.profile.bundles (verified by the author); DSH needs to be restarted after installation.
- DSH Desktop: The desktop profile is managed by the application; once included in dsh-market, it can be installed via the market with one click, or you can submit the tarball URL above to the market/plugin manager installation entry.
- Local Development:
dsh plugin --profile <profile> add /path/to/dsh-branch-tree; ifdsh.profile.bundlesis not automatically appended, manually add"dsh-branch-tree".
Runtime environment requires Node >=20 (see package.json engines).
Typical Usage¶
| Action | Effect |
|---|---|
Click right edge ⑂ |
Expand/collapse drawer |
| Click turn card / text within card | Jump to that turn |
Hover card → left + |
Open new branch input card; quick words send directly, ⌘/Ctrl+Enter to send, Esc to cancel |
| Double-click branch name pill | Rename branch (saved locally) |
| Click thumbnail / drag | Jump viewport |
| Drag canvas / two-finger scroll | Pan; pinch (or ⌘+scroll wheel) to zoom |
Debugging (optional, disabled by default): Set host DSH_BRANCH_TREE_DEBUG=1 to register /branch-tree/api/debug and write to ~/.dsh-beta/branch-tree/debug.jsonl; set client localStorage['dsh-branch-tree:debug']='1' to report push-diagnostics.
Use Cases and Notes¶
Who it’s for: Users who frequently fork multi-path explorations in DSH, need to see at a glance where branches diverged from a specific turn, and want to continue follow-ups or jump precisely back to a historical turn.
Compatibility: Early 0.1.x version, relies on DSH internal structures; plugin updates may be required after upgrades. Session jumping relies on chat node anchorSeq / data-chat-anchor-key, loadThrough(seq). The turn navigation bar mirror is a style override relying on DSH’s hashed class names; DSH upgrades may invalidate it (other drawer UI is unaffected). “Push-style expansion” is experimental, and some layouts may not function. Side chats are not included in the tree.
Security and Permissions: The plugin runs with current DSH process permissions and can read local session and sub-agent projections; it is recommended to review the GitHub Repository source code and MIT license before installation to ensure consistency with your environment.
Interaction and visually, the “New Follow-up” input card is inspired by the community plugin dsh-synapse (MIT), implemented independently in this project; it has no affiliation or endorsement relationship with DeepSeek / DeepSeek Harness officials.
Conclusion¶
If you are already using forks and sub-agents to extend your conversation family tree in DSH, dsh-branch-tree consolidates the same history into a scalable, thumbnail-navigable tree on the right side, and turns “returning to a specific turn” into a main conversation jump positioned by seq. Directory and metadata can be viewed on the SkillHub plugin page: anhanp/dsh-branch-tree; installation and issues are based on GitHub: ANHANP/dsh-branch-tree.