Back to home@Unintendedz

dsh-conversation-tree

ChatGPT-style immutable reply branches, inline branch switching, and whole-tree browsing for DeepSeek Harness.

Stars
0
Language
JavaScript
Created
Aug 23, 2026
Updated
Aug 23, 2026
GitHub repo

Introduction

dsh-conversation-tree

English | 中文

A DSH Web plugin for immutable conversation branches and message-level tree browsing:

  • Regenerate: create a child session immediately before the selected turn and run the original user prompt again.
  • Edit a prompt: edit directly beneath the real user message, preserve its non-text attachments, then continue in a new child session with the edited text.
  • Edit a reply: copy through the selected turn and replace the last assistant reply in a child session without calling the model.
  • Inline switching: show ‹ 2 / 5 › beside any branched user message or assistant reply. In the assistant action row, the switcher sits immediately after DSH's native create-branch action.
  • Message tree: shared history appears once, while edited prompts and regenerated or edited replies fork at the exact message they replace. Select any message path to open its backing session.

Every action creates a new session; the source session is never modified. Child sessions record parentSession and inherit the source working directory, preset, and target-turn model configuration.

Requirements

  • DSH 0.1.1-rc.2
  • A Web profile (web in the examples below)

Install

dsh plugin --profile web add github:Unintendedz/dsh-conversation-tree#v0.4.1

Restart the running DSH Web service. In a completed conversation, prompt editing appears below the user message; regenerate and reply editing appear below the assistant reply. Messages with multiple versions receive an inline branch counter after the native create-branch action. The Tree tab remains available for browsing the complete message tree.

Update

Install the new tag, then restart the service:

dsh plugin --profile web add github:Unintendedz/dsh-conversation-tree#v0.4.1

Uninstall

dsh plugin --profile web remove dsh-conversation-tree

Development

npm install
npm run build
npm test

The host entry point is lib/index.js; browser sources live in src/client.jsx and src/tree.js. npm run build uses the pinned esbuild version to generate lib/client.js.

The tree view reconstructs each durable fork from the child session's parent, seed, and conversation events. Linear history stays in one lane; indentation increases only at real fork points, so long conversations remain readable. Ordinary sessions are included and DSH subagent sessions are deliberately excluded. Broken parent links and cycles are bounded instead of blocking the page.