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.

Next Worktrees — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@dsh-next/dsh-next-worktrees

Next Worktrees

DeepSeek Harness plugin: nested git worktrees in the workspace sidebar, with guarded one-click merge.

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

npx -y @deepseek-ai/dsh plugin --profile web add @dsh-next/dsh-next-worktrees@0.4.0
READMECompatibilityVersions

Compatibility and provenance

Next Worktrees is published as @dsh-next/dsh-next-worktrees and currently resolves to version 0.4.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/20/2026

Versions

0.4.0stable
9/11/2026
0.3.0stable
9/7/2026
0.2.1stable
9/7/2026
Show 3 more versionsCollapse versions
0.2.0stable
9/6/2026
0.1.1stable
9/6/2026
0.1.0stable
9/6/2026

Related plugins

Loading related plugins…

Latest
0.4.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
792.7 kB
Files
46
Surface
web
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
64
Last push
9/7/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-baseSubagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocol

README

worktrees

English | 中文

This DeepSeek Harness plugin lets two agents work on the same git repository without overwriting each other. Each session gets its own folder and branch. When the work is ready, Merge to <branch> copies those commits onto the branch you have checked out in the main folder. If the branches would conflict, choose Resolve in this session so this session's agent can fix the files first.

Create a worktree, work in that session, merge, then clean up

How it works

  1. In the sidebar, on the row for your git repo, click the branch icon (next to +). Name the folder. A worktree opens as a nested cluster under that repo, with one session inside it.
  2. Do the work in that session. The cluster + starts another chat on the same files. The main folder stays on its own branch.
  3. When you are ready, open Merge to <branch> on the cluster ... menu. The plugin checks first. If the branches would conflict, choose Resolve in this session — this session resolves the files and commits. Then Merge is a fast-forward.
  4. Keep the worktree or remove it. The branch and the chats stay either way.

Worktree sessions nested under the harbor repository

Features

Create

The branch icon opens a name field (a suggestion is filled in). Use lowercase letters, numbers, and hyphens (update-plugin). That name is the sidebar title and the folder on disk. Create stays off until the name is valid. The cluster appears under the repo; if the project has setup commands, that row's branch icon spins until they finish.

Repository row with the worktree create button

Find a session

Use Search sessions in the sidebar and select a result. Search closes and scrolls to that session. For a worktree session, its repository and cluster open automatically, including sessions hidden by the collapsed list. This also works in the In one list view.

Status

The branch icon is the status: gray when clean, amber with uncommitted changes, blue when this branch is ahead (with the commit count), green when already merged, red when a merge is in progress.

Five worktree rows showing clean, uncommitted, ahead, merged, and conflict icons

Cluster menu

The folder ... menu keeps stock Rename, then adds Refresh (re-read git status), Update from <branch> (bring that branch into this worktree), Merge to <branch>, and Delete worktree (this replaces stock Delete workspace). Session ... menus stay stock (Rename / Fork / Archive). The folder + starts another session in the same worktree. Merge to <branch> names the branch currently checked out in the main folder (for example, Merge to main).

Worktree menu with Refresh, Update from main, Merge to main, and Delete worktree

Hover details

Hover the cluster for its title, branch, status, and N sessions, same files.

Hover card with branch and ahead status

Merge and conflicts

Merge to <branch> checks that the merge would succeed, then lands the worktree on your current branch. Uncommitted files are listed; you can still Merge. Git will refuse if the main folder's files would be overwritten. Uncommitted worktree files are not included. If the branches would conflict, the next step is Resolve in this session: the plugin merges the main branch into the worktree (never the other way), this session fixes the files, and you Merge as a fast-forward. While a merge is in progress the dialog offers Abort merge. Closing it leaves the merge in the worktree; the main folder is untouched.

Conflict, resolve, in-progress, and landed merge dialogs

Delete

Removes the extra folder. The branch and session log stay. A worktree with uncommitted changes needs a second confirm (Remove anyway). The next Create suggests an available name, adding a number when needed (nimble-falcon-2). Suggestions avoid existing folders and retained worktree branches. A name you type yourself must still be available.

Delete worktree dialog warning about uncommitted changes

Unused worktrees

Switching away from a never-started session may hide that empty chat, but the worktree folder and sidebar cluster stay. They also stay if you archive every chat. Use the cluster + to open another session, or choose Delete worktree when you want to remove the folder.

Optional local files

A new worktree is a clean git checkout. Files git does not track stay in the main folder — .env, .env.local, and other local secrets. The new session would otherwise start without them.

Commit a .worktreeinclude at the repo root when those files must exist in every new worktree. One relative path per line (# starts a comment). On create, each listed file is copied from the main folder into the new folder.

.env
.env.local

Use it when:

  • The app or the session needs a local file git ignores (typical: .env)
  • Every new worktree should get the same copy from the main folder
  • You can commit the list of paths (not the secret files)

Skip it when:

  • You have no gitignored local files
  • What is missing is installed or generated (node_modules, lib/) — that belongs in setup commands
  • Each worktree should get its own file that you create by hand

Missing sources are skipped. It only copies files, not whole folders, and it does not run install commands.

Example .worktreeinclude listing .env and .env.local

Setup commands (optional)

Clicking the branch icon to create a worktree already runs setup when .worktrees.json is at the repo root (or .dsh/worktrees.json as a local override). The new session row appears first; setup then runs with that row's branch icon spinning. You do not click anything else. $ROOT_WORKTREE_PATH is the main folder. A failed command leaves the worktree and session; the error shows the command output so you can run setup yourself or delete the worktree. Gitignored writes (.env, node_modules) do not count as uncommitted changes. A file git can see (not ignored) does: Update waits until you commit or delete it; Merge lists it and still runs.

Use this for commands (pnpm install). Setup runs in the new folder with the harbor's npm/pnpm workspace env stripped, so a nested worktree is not treated as a missing workspace package. Use .worktreeinclude to copy local files such as .env.

{
  "setup-worktree": [
    "pnpm install"
  ]
}

That setup-worktree list is enough. setup-worktree-unix and setup-worktree-windows are optional, only when the commands differ by OS. A string value is a script path relative to the JSON file. .dsh/worktrees.json wins when both files exist.

Install

dsh plugin --profile <name> add @dsh-next/dsh-next-worktrees

<name> is your DSH profile (for example web).

Good to know

  • Needs DeepSeek Harness 0.1.2-rc.1 or newer.
  • Do not install alongside another plugin that replaces the sidebar.
  • The plugin never writes commit messages. This session's agent does.
  • Contributors: see CONTRIBUTING.md.