dsh-workflow-worktree
Run the following command in DeepSeek Harness:
dsh plugin install lisycotana/dsh-workflow-worktree
Paste the following prompt into your AI chat to install this plugin:
Install the plugin in DeepSeek Harness by running dsh plugin install lisycotana/dsh-workflow-worktree in your terminal; the source code is available at https://github.com/lisycotana/dsh-workflow-worktree .
About this plugin
@dsh-external/workflow reserves a seam for worktree isolation but deliberately ships no implementation — its README states that tasks declaring isolation: "worktree" will fail when no adapter is registered. dsh-workflow-worktree is that missing adapter, giving the workflow engine the ability to lock every write-capable agent into its own Git worktree checkout that cannot touch your working tree and survives a crash.
The design commits to one principle above all: never degrade to the shared checkout. If the directory is not a valid Git working tree, or the worktree cannot be created, prepare() rejects outright and the task fails loudly rather than silently running the agent in your tree. Each lane manifest records runId, taskId, worktree path, branch, and base commit so the binding survives a crash. Uncommitted work is never discarded — dirty lanes are retained and marked retained-dirty, and Git itself refuses to remove a dirty worktree. The lane directory is added to .git/info/exclude rather than a tracked .gitignore, keeping git status clean so workflow verification fingerprints stay stable. dispose() is idempotent, safe for the engine to call on task settle, run failure, or explicit stop.
This plugin is not a manual worktree manager — it is built for the workflow engine. If you want to fork a workspace and keep working in it, a manual worktree plugin is the right tool. If you want spawnAgent with isolation: "worktree" to automatically isolate, recover after crashes, and clean up idempotently, this is the adapter. The two coexist without conflict.
Use Cases
- Isolating parallel write-capable agents in the same repo so they do not interfere with each other
- Recovering lane-to-worktree bindings after a workflow crash to reclaim the correct path and branch
- Keeping git status clean so isolation directories do not pollute workflow verification fingerprints
Best For
- DSH workflow engine developers who need worktree isolation to actually work end-to-end
- Teams running parallel multi-agent write tasks that require crash-safe isolation
- Engineers pursuing verifiable workflows who need the isolation backend to keep repo state clean
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.