rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:YB313/dsh-branch-tree
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Treat a session as a folder: fork one conversation into independent branches and browse them as a real tree in the left workspace column.
把会话当文件夹:母会话是可展开的文件夹,分支作为缩进子行挂在下面,直接在左侧工作区里浏览。
v1.3.1 · MIT · DeepSeek Harness plugin (web client) · client.js only, no build step
dsh-branch-tree turns the left workspace session list into a tree. A master session becomes an expandable folder row, and every branch hangs underneath it as an indented, collapsible child row — the relationship is visible without opening another panel.
When you create a branch you choose how much memory it inherits:
| Mode | Fork point | What the branch inherits |
|---|---|---|
Full copy (full) — default |
the master's last real exchange | the entire conversation up to that point, copied verbatim into the branch session |
Summary (inherit) |
an empty session | a compressed digest of the whole master so far, written into the branch as its own first message — no raw history travels |
Opening only (opening) |
the end of the master's first turn | only the original request, no later chatter |
The default is a verbatim copy, because a branch is meant to keep trying things: a summary is lossy and drops exactly the details that make a branch useful — an approach you already ruled out, a spec spelled out once, the exact wording of a constraint.
How the three modes actually behave:
emptyFork instead of pretending it worked.<!-- dsh-branch-tree:seed ... -->.workspaces.create). Two conversations are never concatenated, summarised together, or merged into one log. There is no merge dialog and no merge mode.DSH loads plugins as profile packages. Pick one of:
# from a local checkout (what this repo is developed against)
dsh plugin --profile web add /absolute/path/to/dsh-branch-tree
# from a GitHub tag tarball (no git binary needed)
dsh plugin --profile web add https://github.com/YB313/dsh-branch-tree/archive/refs/tags/v1.3.1.tar.gz
Then restart the web GUI (or refresh the page) and open the left workspace column.
Uninstall:
dsh plugin --profile web remove dsh-branch-tree
Not published to npm — the GitHub tarball and local paths are the supported routes for now.
Verified against the
dshdeveloper preview. The host is still moving: if a client seat is renamed or throws, the plugin falls back to the shipped session list instead of breaking the workspace (see the takeover flag below).
制图/<master>/<branch>/.The tree takes over the shipped sidebar session entry point. If that seat ever throws, the plugin sets dsh.branch-tree.takeover to off and leaves the native list alone — you can flip that key back to on in localStorage to retry.
Everything lives under localStorage keys prefixed dsh.branch-tree. (tree shape, collapse state, active-session hint, per-branch task status, branch-count visibility, archived/hidden markers). Clearing them resets the view without touching any session data.
dsh) with a web-capable profiledsh.client.inject):@deepseek-ai/dsh-client-ui-sidebar@deepseek-ai/dsh-client-ui-conversation@deepseek-ai/dsh-client-ui-primitives@deepseek-ai/dsh-api-session-controller@deepseek-ai/dsh-api-workspace-filesThe host half (index.js) is intentionally empty — all behaviour lives in the client module (client.js), loaded through window.__ModuleLoader__.
node --check client.js # syntax
node test/smoke.mjs # smoke test, zero dependencies
Both run in CI on every push (.github/workflows/smoke.yml).
MIT © Yige Bao (YB313)
dsh-branch-tree 把左侧工作区的会话列表变成一棵树:母会话是可展开的文件夹行,每个分支是缩进、可折叠的子行——不用另开面板就能看清从属关系。
创建分支时可选三种记忆模式:
| 模式 | 分叉点 | 分支继承到什么 |
|---|---|---|
全景继承(full)— 默认 |
母会话最后一次真实对话处 | 到该点为止的全部对话,逐字复制进分支会话 |
压缩继承(inherit) |
空会话 | 母会话到目前为止的压缩摘要,作为分支自己的第一条消息写入(原始历史一条都不带) |
开头继承(opening) |
母会话第一轮结束处 | 只继承最初的需求消息,不含之后的对话 |
默认给全景,因为分支的意义就是接着试:摘要是有损的,丢掉的恰好是让分支有用的那些细节——已经否决的方案、只说过一次的需求、约束的原话。
三种模式的实际行为:
emptyFork,不装作成功。<!-- dsh-branch-tree:seed ... --> 标记。workspaces.create 时还可能建子工作区目录)。两个会话的对话内容不会被拼接、共同摘要或合并成一份日志——没有合并对话框,也没有合并模式。挑一种:
# 本地 checkout(开发时用的就是这条)
dsh plugin --profile web add /absolute/path/to/dsh-branch-tree
# GitHub tag 的 tarball(不需要本机 git)
dsh plugin --profile web add https://github.com/YB313/dsh-branch-tree/archive/refs/tags/v1.3.1.tar.gz
装完重启 web GUI(或刷新页面),再看左侧工作区。
卸载:
dsh plugin --profile web remove dsh-branch-tree
暂未发布到 npm——GitHub tarball 与本地路径是目前支持的两条路。
已在
dsh开发者预览版下验证。宿主仍在变动——若某个客户端挂载点被改名或抛异常,插件会自动退回原生会话列表,不会搞坏工作区(见下方 takeover 开关)。
制图/<母会话>/<分支>/。树接管了原生的侧边栏会话入口。若宿主挂载点抛出异常,插件会把 dsh.branch-tree.takeover 置为 off,让原生列表继续工作——你可以在 localStorage 里把它改回 on 重试。
全部存放在以 dsh.branch-tree. 为前缀的 localStorage 键里(树结构、折叠状态、当前会话提示、分支任务状态、分支计数显隐、归档/隐藏标记)。清掉它们只会重置视图,不会动任何会话数据。
dsh),profile 需支持 webdsh.client.inject):@deepseek-ai/dsh-client-ui-sidebar@deepseek-ai/dsh-client-ui-conversation@deepseek-ai/dsh-client-ui-primitives@deepseek-ai/dsh-api-session-controller@deepseek-ai/dsh-api-workspace-files宿主半部(index.js)刻意留空——所有行为都在客户端模块(client.js)里,通过 window.__ModuleLoader__ 加载。
node --check client.js # 语法
node test/smoke.mjs # 冒烟测试,零依赖
CI 会在每次 push 时跑这两条(.github/workflows/smoke.yml)。
MIT © Yige Bao (YB313)
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。