miint-sunny/dsh-plugin-sync: Syncing DSH Desktop Plugins Between Two Macs

Preface

When using DeepSeek Harness (DSH) across multiple Macs, replicating the plugin environment from one machine to another typically requires manual installation and configuration of each plugin one by one. As the number of plugins grows, this process becomes error-prone and difficult to keep consistent.

miint-sunny/dsh-plugin-sync is a DSH desktop plugin for synchronizing desktop plugins between two Macs. It only supports macOS and uses an export/import approach to migrate the plugin list, versions, enabled states, component toggles, and compatibility exemptions from another machine.

What Is This

This is a client-side plugin for DeepSeek Harness, developed by the maintainer Miint-Sunny. It installs into DSH and provides synchronization functionality through three tabs: “Import,” “Export,” and “Settings.”

The core value proposition is: configure plugins on one machine, export the state, and import it on another machine to quickly build a consistent plugin environment.

Core Features

The plugin sync covers:

  • Which plugins are installed and their respective versions
  • Plugin enabled states, including official plugins
  • Individual component toggles within each plugin
  • Compatibility exemptions

It does not sync:

  • Sessions, login state
  • .credentials.yaml
  • Plugin configuration contents (which may contain secrets)
  • MCP, skill, dsh-tui profiles
  • The app itself

Installation & Enabling

It has not yet been published to npm; you need to download the installer from GitHub Releases.

  1. Go to GitHub Releases to download the .tgz installer and save it to your local machine.
  2. In DSH’s “Plugins” page, click “Add,” enter the absolute path to the .tgz file, e.g. /path/to/miint-sunny-dsh-plugin-sync-0.4.0.tgz, then install.
  3. After installation, restart the app and confirm on the plugins page that this plugin’s component row is mounted and running.

Once published to npm, you can install it by entering the full package name @miint-sunny/dsh-plugin-sync in the same input field.

You can also use the app’s built-in CLI to install a local package:

"/Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh" plugin --profile desktop add /path/to/miint-sunny-dsh-plugin-sync-0.4.0.tgz

This plugin is fixed to manage the desktop profile under the same DSH_HOME; it does not support replacing the profile name in the command with a different profile as the sync target. Before using the command-line installation for the first time, open the DSH desktop app once to let the app initialize desktop, then fully quit it. The CLI will not create it on the app’s behalf.

Typical Usage

Export

Open dsh-plugin-sync in DSH’s plugins page and click the “Export” tab.

  1. Choose the export destination: a zip archive or a Git repository. The last selection is remembered.
    - Zip archive: Generates a .zip containing snapshot.json and the local plugin packages. Click “Download” to save it and transfer it to the other machine.
    - Git repository: Commits to machines/<machine-id>/ and pushes. If the push fails, the commit is retained in the local copy, and you can “Retry Push.”

  2. Select the plugins to export. Local third-party plugins and official plugins each have a checkbox per row. Unchecked plugins are excluded from the export, and their rows turn gray. Checks are saved immediately.

There are two types of local plugins:
- Local repositories installed via link:: Requires the workspace to have no uncommitted changes. The plugin records the commit hash and packages it using the app’s built-in pnpm.
- Local packages under local-plugins/: Taken as-is.

A secret scan is performed before export: values that look like secrets are collected from the local profile patches, then every file in the snapshot is scanned. If a match is found, the export stops and only the filename and hit count are reported—no content is displayed.

Import

Click the “Import” tab.

  1. Choose the source: a zip archive or a Git repository.
    - Zip archive: Click “Choose File…” and select the .zip exported from the other machine.
    - Git repository: Lists the machines in the repository. The most recently exported one is selected by default, and a comparison is triggered automatically upon selection. The page only reads the local copy and does not connect to the network; to fetch new remote commits, click “Pull.”

  2. Review the snapshot and changes. The snapshot displays the source machine, export time, and DSH version. If the source’s DSH is newer than the local one, import is blocked—you must upgrade the local app first.

Changes are displayed per plugin, with tags indicating the change type: install, upgrade, downgrade, uninstall, enable, disable, component, compatibility exemption. Multiple changes for the same plugin share a single checkbox and are applied or skipped together. Checked by default. Downgrades and compatibility exemptions are unchecked by default.

A plugin appears in the “Uninstall” list only when all three conditions are met simultaneously:
1. It was present in the last import from the same source machine;
2. It is absent from this snapshot;
3. The source machine did not mark it as excluded from export.

  1. Apply changes. Click “Apply N Changes.” The confirmation dialog states that the app will quit, ongoing conversations and tasks will be interrupted, and lists any downgrades, compatibility exemptions, and newly allowed install scripts. Check “I understand the risks and choose to proceed,” then click “Quit & Apply”:
    - The app quits
    - The profile is backed up, files are written, plugins are installed and verified
    - The app reopens

After the app reopens, the result is displayed above the tabs. You can expand each step and view the locations of backups and logs.

Use Cases & Notes

Suitable for migrating DSH plugin environments between two Macs, or maintaining consistent plugin configurations across multiple Macs.

Notes:

  • The plugin runs with the current DSH process’s permissions. Review the source code and license before installation.
  • Import will quit and reopen the app; ongoing conversations and tasks will be interrupted.
  • If the source machine’s DSH is newer than the local one, import is blocked—upgrade the local app first.
  • Compatibility exemptions are only provided when the snapshot and the local machine are on the exact same DSH version.
  • Plugins installed locally on this machine will not be uninstalled by an import.

In Short

miint-sunny/dsh-plugin-sync provides the ability to sync DSH desktop plugins between two Macs. Through export and import, it quickly builds a consistent plugin environment. The plugin is released under the MIT license and is available at GitHub for source code and installers.

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

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

Xiaoye