dsh-worktree
Run the following command in DeepSeek Harness:
dsh plugin install CSY656/dsh-worktree
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install CSY656/dsh-worktree inside DeepSeek Harness to install this plugin; the source repository is https://github.com/CSY656/dsh-worktree
About this plugin
Harness subagents already isolate messages, permission policies, and tool sets, yet they all share the same working tree — one child's writes can directly affect another's. dsh-worktree fills that gap with git worktrees: every subagent runs in its own directory under /.dsh/worktrees/, sharing the repository object store while keeping its working tree fully private. The ctx.worktree service covers the full lifecycle of creating, restoring, listing, and removing worktrees, with strict slug validation, fail-closed change detection, automatic config and hooks-path inheritance on creation, and per-repository mutation serialization with idempotent concurrent acquires. Human operators get /worktree create, list, and remove slash commands, and stale temporary worktrees are swept periodically. The plugin suits developers running multi-subagent parallel tasks in Harness and plugin authors who need isolated filesystems for children without hand-rolling git logic — a single acquire() call yields a private environment.
Use Cases
- Run parallel subagent tasks in Harness without working-tree conflicts
- Build isolated filesystem sandboxes for subagents via the ctx.worktree service API
- Experiment with feature branches in throwaway worktrees, then merge or discard cleanly
Best For
- Developers running multi-subagent parallel tasks in Harness
- Plugin authors who need filesystem isolation for child agents
- CI engineers and script authors who want to manage git worktree lifecycles programmatically
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.