rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wzciczw/dsh-worktree-toggle
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A one-click git worktree launcher for DeepSeek Harness. A compact switch sits beside the composer's branch pill: flip it and the session continues in a fresh git worktree on its own branch — no command line, no copy of the main checkout, no dirty working tree.
Parallel work in one repository normally means juggling branches or cloning the repo again. This plugin turns "isolate this session" into a single click: the new checkout is created by the harness's own worktree service, the session directory moves into it, and the main checkout is left exactly as it was.
worktrees
service, so the existing sandbox and file policy apply, and the checkout is retained exactly
like the create_worktree tool's.From the plugin market (after it is listed):
Plugins → Discover → search for dsh-worktree-toggle.
npm:
dsh plugin --profile <profile> add dsh-worktree-toggle
GitHub:
dsh plugin --profile <profile> add github:wzciczw/dsh-worktree-toggle
Then restart the host (or let the profile reload) and refresh the page.
Requires DeepSeek Harness 0.2.1-rc.2 or newer. Tested on Windows with the desktop build.
Worktree switch shows up in the composer's tool row, right after the branch pill.The host creates a branch and a linked checkout under <repo>/.agents/worktrees/, moves the
session's working directory into it, and the switch turns into a checked, read-only Worktree
chip. Everything you do in that session — tools, edits, commands — now happens in the new
checkout.
The switch stays hidden for a session that already started outside a worktree, and for directories that are not git repositories.
A host-side sweep runs 20 seconds after mount and then hourly:
deferred);<repo>/.agents/worktrees/ are considered — never a linked checkout
created elsewhere;git worktree remove --force, which deletes the checkout's files (including
uncommitted and untracked ones) but keeps the branch.The last sweep is written to ~/.dsh/dsh-worktree-toggle/gc-state.json, and the worktrees this
plugin created are tracked in ~/.dsh/dsh-worktree-toggle/worktrees.json. Worktrees created
another way are adopted when a live session is seen in them.
.agents/worktrees/ under the repository root.PATH.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。