DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Enterworktree — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
E

dsh-enterworktree

Enterworktree

DSH 版 enterworktree:创建(或复用)一个 git worktree,并自动开启一个指向该 worktree 路径的隔离 session,相当于 Claude Code 的 /enterworktree。

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:scccy/dsh-enterworktree#06f05362ecc56f1937b05d690b6532dba3f696cb
READMECompatibilityVersions

Compatibility and provenance

Enterworktree is published as dsh-enterworktree and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/2/2026

Versions

0.1.0stable
10/2/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/2/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in developer-tools.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk Minimal@deepseek-ai/dsh-sdk-minimalThe standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessionsSdk App@deepseek-ai/dsh-sdk-appThe dsh SDK profile bundle: stdio JSON-RPC serving and process lifecycle over dsh-baseExperimental Inspector@deepseek-ai/dsh-experimental-inspectorExperimental cross-realm CDP hub for Host debugging and Client Runtime inspection

README

dsh-enterworktree

DSH 版的 Claude Code /enterworktree —— 一个 DSH 宿主(Host)插件,注册 enter_worktree 工具。

等价于 Claude Code 的 EnterWorktree:在隔离的 git worktree 里并行工作,不污染主树。

它做什么

Claude Code 的 EnterWorktree 会创建一个 git worktree,并把 agent 切换进去并行工作。 DSH 里每个 session 的工作目录(session.header.cwd)是只读的,无法原地改当前 session 的目录,所以"进入 worktree"在 DSH 下的等价做法是:

  1. 在 .worktrees/<branch>/(嵌套布局)或 ../<repo>--<branch>(兄弟布局)创建一个 git worktree;
  2. 用 ctx.remote.session.create({ cwd }) 在该 worktree 路径开一个全新的隔离 session;
  3. 把 sessionId + 路径返回给你,你在 Web GUI 打开该 session 即等于"进入"。

工具在 Host 进程里通过 ctx.tools.register(defineTool(...)) 注册,与 dsh-speckit-workflow 的注册方式一致。

工具参数(enter_worktree)

参数说明
branch新分支名;省略自动生成 wt/<timestamp>;已存在本地分支则直接 attach。
base切新分支的基点,默认 HEAD。
path显式绝对路径,提供后忽略 layout。
layoutnested(默认)或 sibling。
openSession是否开隔离 session,默认 true。
inPlacetrue 时不开 worktree,直接返回仓库根目录(安全阀)。

输出

{
  "ok": true,
  "branch": "wt/...",
  "worktreePath": "/abs/path/.worktrees/wt/...",
  "created": true,
  "sessionId": "session-xxxxx",
  "sessionOpened": true,
  "message": "已创建 worktree 并开隔离 session ..."
}

安装

方式 A:从 Git 仓库安装(推荐,DSH 原生支持)

在 Web GUI 的 plugin_manager 里用仓库地址安装:

plugin_manager action=install_bundle target=github.com/scccy/dsh-enterworktree

安装后 enter_worktree 即在会话里可用;改 lib 后重启 dsh-desktop 让宿主重载。

方式 B:从 npm 安装(发布后)

plugin_manager action=install_bundle target=dsh-enterworktree

配置

bundle patch(cordis.patch.yml)把插件挂载进 profile,配置项:

配置默认说明
layoutnestednested=.worktrees/<branch>,sibling=../<repo>--<branch>。
dotworktreesDir.worktreesworktree 目录名(嵌套布局下)。
autoOpenSessiontrue是否自动开隔离 session。

限制

  • 当前 session 不会被移动;它仍指向原目录。所有后续改动在你打开的那个 worktree session 里发生。
  • 仅当 profile 提供 dsh-api-remotes(即 ctx.remote.session)时才能自动开 session;否则只创建 worktree 并返回路径。

许可证

MIT