Preface

After using “Branch into a new conversation” in DeepSeek Harness (DSH), parent-child and sibling relationships are formed between multiple Sessions. While the native button can create branches, navigating back and forth between parent sessions, sibling branches, and child sessions still requires a new lineage view.

Below is an introduction to dsh-session-tree. It adds a lightweight, read-only session lineage view to DSH, used to view the native fork tree of the current conversation and jump between parent sessions, sibling branches, and child sessions. This view does not maintain a separate branch database; branch creation is still handled natively by DSH.

Plugin Positioning

  • Name: ZhengQingJing/dsh-session-tree
  • Maintainer: ZhengQingJing
  • License: MIT
  • Compatibility: DeepSeek Harness 0.1.0-rc.7, Node.js ^22.19.0 || >=24.0.0
  • Nature: Non-official community plugin, not affiliated with DeepSeek, and not endorsed by DeepSeek.
  • Phase: DSH and this plugin are still in pre-release phase.

The community plugins directory is a separate site and is not equivalent to the official app store.

Core Features

dsh-session-tree provides the following capabilities:

  • Adds a “Branches” tab after installation.
  • View the native fork tree of the current conversation.
  • Jump between parent sessions, sibling branches, and child sessions.
  • Click on a node in the tree to switch to the corresponding Session.
  • Only reads the DSH native SessionSummary.parentId lineage and performs client-side navigation.

Installation and Enablement

The prerequisite is that dsh and pnpm are in the PATH; dsh plugin delegates dependency operations to pnpm within the profile.

It is currently recommended to pin a verified version. pnpm 11 applies a minimumReleaseAge protection by default to versions released less than 24 hours ago; pinning the currently verified version avoids @next reverting to an old version during this period:

dsh plugin --profile web add dsh-session-tree@0.2.0-beta.1

After installation, if the plugin was just installed or updated, you need to restart DSH and reload the browser page.

You can check the combined result with the following command before starting:

dsh --profile web --dump-config

The output should include a dsh-session-tree configuration line.

Typical Usage

  1. Find a completed assistant reply in the Chat.
  2. Use the native “Branch into a new conversation” button in the reply action area of DSH to create a branch.
  3. Open the “Branches” tab; the newly created child Session will automatically appear in the current session family.
  4. Click on a node in the tree to switch to the corresponding Session.

Branch creation is handled by DSH itself; this plugin does not replicate the fork protocol or maintain a separate branch database.

Boundaries and Limitations

  • Only reads the DSH native SessionSummary.parentId lineage and performs client-side navigation.
  • Does not append Session events, does not modify the parent pointer, and does not create a side store.
  • Uninstalling the plugin will not delete or alter any native Sessions.
  • Conversation branching only changes the subsequent model context and does not undo file modifications, commands, Git status, processes, network requests, or other tool side effects.
  • Does not annotate the precise source seq.
  • Does not provide named refs, HEAD, merge, rebase, cherry-pick, branch deletion, or filesystem snapshots.
  • The current DSH browser plugin roster still requires a restart after installation, update, or removal.
  • The tree only displays Sessions currently known to the client; subagents that have not been loaded or are disconnected may be inaccessible.

Suitable Scenarios and Notes

Suitable for developers who frequently create branches in the DSH web profile and need to return to the parent session or view sibling branches.

Since the plugin loads with DSH and runs with the current dsh process permissions, you should check the source code and license before installation. The license for this plugin is MIT. DSH and this plugin are still in pre-release stage; please back up important profile and Session data before upgrading.

References

  • GitHub: https://github.com/ZhengQingJing/dsh-session-tree
  • Plugin Directory Page (from Plugin Hub): https://www.skillhub.cn/plugins/ZhengQingJing/dsh-session-tree