dsh-fork-map

Per-workspace Fork library: a bookmark on each finished assistant turn stores that turn boundary as a full compressed snapshot that survives deletion of the source session; a "Fork 库" conversation tab lists a workspace's forks as a tree (a fork saved from a launched session nests under its parent) with name, turn count, last question and answer, note and source link, and "从这里启动新会话" seeds a new session from any fork, repeatable. Each fork then names itself from its own context: the snapshot is replayed to the model with a naming request appended, and that exchange is never written into the snapshot or a session.

Overview

Per-workspace Fork library: a bookmark on each finished assistant turn stores that turn boundary as a full compressed snapshot that survives deletion of the source session; a "Fork 库" conversation tab lists a workspace's forks as a tree (a fork saved from a launched session nests under its parent) with name, turn count, last question and answer, note and source link, and "从这里启动新会话" seeds a new session from any fork, repeatable. Each fork then names itself from its own context: the snapshot is replayed to the model with a naming request appended, and that exchange is never written into the snapshot or a session.

Installation

Install from GitHub

dsh plugin --profile web add github:Hercules-debug/dsh-fork-map

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.