dsh-svn-worktree: SVN Working Tree and Changes Panel for DeepSeek Harness

Introduction

The plugin system of DeepSeek Harness embodies the “everything is a plugin” philosophy. When developing agents locally, you often need to handle version control, view changes, and switch branches. The traditional approach is to manually run commands like svn status and svn diff, then navigate to different branch directories — a fragmented and error-prone workflow. dsh-svn-worktree provides DSH with a unified entry point for SVN operations: the right sidebar displays changes, and the agent creates worktrees via tool calls, reducing reliance on the terminal.

What is this

dsh-svn-worktree is a client plugin for DeepSeek Harness, maintained by pengxiaozi. It adds an “SVN Changes” panel to the current session and exposes a create_svn_worktree tool on the model side, using svn copy + svn checkout to create and manage branch worktrees. The plugin is open-sourced under the MIT license.

Core Capabilities

  • Change viewing: Lists the modifications in the current session’s working directory (via svn status) under the “SVN Changes” tab in the right sidebar. Click any entry to view the unified diff for that file.
  • Commit: After checking the desired files, write a commit log in the panel and commit using svn commit -F <log> --targets <list>. The log can be written directly in Chinese.
  • Basic operations: Supports adding files not yet under version control to the repository (svn add), reverting changes (svn revert), and updating the working copy (svn update).
  • Worktree creation & management: Copies from trunk (or a specified base) to <repo-root>/branches/<name>, then checks it out to <project-root>/.agents/worktrees/<name>. Supports switching the session’s working directory to the new worktree upon creation. Deleting a worktree only removes the local checkout; the remote branch is not deleted.

Installation & Activation

The plugin is installed via plugin_manager and supports multiple methods:

plugin_manager install_bundle  target: <absolute-path-to-this-directory>

You can also reference the package from GitHub / npm directly:

plugin_manager install_bundle  target: github:pengxiaozi/dsh-svn-worktree
plugin_manager install_bundle  target: dsh-svn-worktree

In the GUI, navigate to “Plugins → Add Plugin” and enter dsh-svn-worktree@0.1.2 or the package directory path.

After installation, click the “SVN” button in the session title bar, or select the “SVN Changes” tab in the right sidebar to get started.

Prerequisites

  • The current session’s working directory must be an SVN working copy (the directory must contain a .svn folder); otherwise, the panel will display “The current directory is not an SVN working copy.”
  • The system PATH must include the svn executable. If it cannot be found, specify the absolute path in the plugin configuration:
- id: svn-worktree
  name: 'dsh-svn-worktree'
  config:
    svnCommand: 'C:/path/to/svn.exe'

Typical Usage

  1. Open a session and set the working directory to the location of the SVN working copy.
  2. View changes under “SVN Changes” in the right sidebar; click an entry to inspect the diff.
  3. Check the files to commit, enter a commit message in the log box, and click Commit.
  4. On the model side, invoke the create_svn_worktree tool with a branch name. The plugin performs the copy and checkout, and optionally switches the current session directory to the new worktree.

Use Cases & Notes

  • Suitable for scenarios in the DSH environment where frequent change viewing, code commits, and SVN branch worktree management are needed.
  • The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license before installation.
  • Apart from explicitly triggered add / revert / update / commit operations, all interactions with the repository are read-only.
  • SVN has no pull request concept; the plugin does not register a change request provider.
  • If conflicts exist at commit time, they must be resolved outside the plugin using svn resolve first. The plugin blocks commits that have unresolved conflicts.
  • Deleting a worktree only removes the local checkout; the remote branch is not deleted.

Conclusion

dsh-svn-worktree integrates SVN branch management and change viewing into DeepSeek Harness, offering agent developers a more streamlined workflow. For further details, refer to the plugin’s documentation and GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye