dsh-canvas: Visualizing Conversation Branches as a Canvas in DeepSeek Harness

Preface

DeepSeek Harness (DSH) natively supports fork, and the sidebar lists sessions as well, but parent-child relationships are flattened in the list, making it hard to see at a glance “which message branched off from, and how many parallel lines are currently running.” The fork entry point is also hidden in the sidebar row menu and at the bottom of individual conversation turns. To first get an overview and then decide where to split, you often need to click back and forth repeatedly.

dsh-canvas, maintained by answertsundere (repo answertsundere/dsh-canvas-plugin), draws the conversation lineage of the current workspace as a fullscreen canvas: sessions are laid out from left to right by parentSession, with support for forking at any message, parallel observation of multiple branch running states, and deterministic rules for comparing event streams after branching. The plugin is categorized as “Workflow” in the SkillHub directory; distribution is primarily through GitHub pinned releases (the README notes that the npm package name dsh-canvas is already taken and has not yet been renamed and published).

What Is This

In one sentence: A conversation branching canvas for DSH—lineage graph, message-level fork, parallel running visualization, deterministic branch comparison.

Maintainer: answertsundere. License: MIT. Current plugin version v0.1.0, with a development and validation target of DSH version 0.2.0-rc.2 (the README states that the APIs used are verified against a local DSH checkout rather than online documentation).

You can experience the UI without installing: the online demo uses synthetic data; locally you can run pnpm run demo and then open demo/index.html.

Core Features

Lineage Canvas

Workspace sessions are laid out left→right by parentSession: linear chains stay on the same row, and only actual branches expand downward. Supports 0.4–2× zoom, drag-to-pan, fit-to-view, and search & locate.

Sub-agent sessions are by default treated as internal to the conversation and do not occupy separate lineage nodes; the parent node is summarized with a “bot ×N” badge, which can jump to that session’s ⌖ mesh view. The toolbar’s “Sub-agent” toggle can re-display sub-agents as nodes.

Fork at Any Message

The detail panel lists the branch’s own turns and actual seq range, with each row providing a “⑂ fork here” button. The split point takes the seq of the last event of that row itself, ensuring it is always a real event.

Two launch modes:

  • run now: queue the instruction into the child branch;
  • create empty branch: send nothing, just create an empty branch.

Deterministic Comparison

Only compares events after each branch’s inheritedEventCount, aligned by position, with no semantic judgment. “Carry conclusion” generates an editable draft and does not auto-commit.

Status and Real-Time Output

Three states: confirmed (idle/queued/failed/done), inferred (thinking/tool), unknown (disconnected). It does not infer idle due to silence.

Running branches show streaming output visible on the canvas: node cards display the latest line (reasoning / answer / tool), and the selected branch’s detail panel shows complete real-time reasoning and answers, updated by chunk; persisted messages are merged into the turn list after being written to disk. When there is a stream, the status badge is stream-driven (thinking vs tool).

Agent Swarm Web

The node card’s ⌖ button opens a live view of that session: the parent agent is centered, and child agents are arranged in a ring; when an agent outputs, its spokes light up, light points move along the spokes toward the parent node, and chips display that agent’s latest line. The roster comes from the subagent/catalog events in the session log, and newly spawned agents are added instantly.

Installation and Activation

Environment requirements (from README):

  • DeepSeek Harness desktop or CLI, aligned with 0.2.0-rc.2
  • Node.js ≥ 22.19, pnpm 10+ (corepack enable), Git

Install from GitHub in one line (pinned tag, no local build required):

dsh plugin --profile <your-profile> add "github:answertsundere/dsh-canvas-plugin#v0.1.0"

After installation, you need to restart the application or the corresponding profile—the new bundle row is read at host startup.

The plugin runs with the permissions of the current DSH process; before installing, please review the repository source code and MIT license yourself to confirm they meet your security and compliance requirements. SkillHub directory page: https://www.skillhub.cn/plugins/answertsundere/dsh-canvas-plugin. It has no official affiliation with DeepSeek / High-Flyer and belongs to the community plugin ecosystem.

Install from source for development (README excerpt): after cloning, run pnpm install and pnpm run build; for desktop, the README recommends node scripts/install-local.mjs --profile desktop (the standalone CLI will reject --profile desktop, so you need to go through the desktop app’s own carrier CLI). After modifying plugin code, you also need to restart the application; HMR only covers code changes for already-mounted plugins.

Typical Usage

  1. Install the plugin in DSH and restart, then open the canvas view corresponding to the current workspace.
  2. On the lineage, select the branch you want to dig into, find the target turn in the detail panel, and use “⑂ fork here”; choose “run now” or “create empty branch” as needed.
  3. When running two approaches in parallel, observe the status and streaming output of each node on the canvas simultaneously; when you need to converge on a conclusion, use deterministic comparison to align events after branching, then use “Carry conclusion” to get an editable draft (v1 carries it via clipboard, with no composer handle).

For development debugging, you can first run the demo: pnpm run demo, then open demo/index.html in a browser; or visit the online demo above to familiarize yourself with the interaction.

Applicable Scenarios and v1 Limitations

Suitable for: DSH users who need to plan fork points within the same workspace, try two implementations or prompt strategies in parallel, and compare event streams rather than relying on a “close enough” feeling.

v1 limitations you must be aware of (README table):

Limitation Reason
Branches share the same working directory The public fork API has no cwd; the UI has a persistent “⚠ parallel write” warning
The detail panel is a snapshot A selected node is read once and then released; sessions are not long-term pinned
Carry-forward goes through the clipboard v1 has no composer handle
No persistent mainline marking Only “continue in this branch”
No automatic best-selection, no semantic summary Only positional alignment, guaranteeing two comparison results are consistent

The community directory currently shows 1 GitHub star (based on the directory page/repository public data), which does not reflect functional completeness; please refer to the compatibility notes in the README and docs/compat.md.

Conclusion

dsh-canvas gathers the originally scattered fork and parallel exploration in DSH into a scalable, searchable lineage canvas, and adds a sub-agent live mesh view and deterministic event comparison. It is well suited for taking “branch experiments” in your workflow out of the sidebar list and managing them separately.

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

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

Xiaoye