b-iurea/dsh-profile-sync ↗★ 0

dsh-profile-sync

Keep DeepSeek Harness providers, plugins and settings aligned between machines over Git or a LAN sidecar.

Package
dsh-profile-sync
Compatibility
Unverified
Version
0.2.0
License
MIT
Last updated
Nov 13, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:b-iurea/dsh-profile-sync

Usage

First machine (already configured):

profile_sync { action: "push" }

Second machine (fresh DSH install, plugin installed):

profile_sync { action: "configure", repo: "" }
profile_sync { action: "status" }
profile_sync { action: "pull", dryRun: true }   # preview
profile_sync { action: "pull" }

Restart DSH if the result says restartRequired (new or changed bundles).

  • status compares local, snapshot and last sync, and shows the plan.
  • push refuses to overwrite a snapshot changed elsewhere: pull first, or use force: true.
  • pull refuses to overwrite local changes made after the last sync: force: true lets the snapshot win.
  • Every pull writes a backup to ~/.dsh/profile-sync/backups/-before-pull/.
  • Last-sync state lives in ~/.dsh/profile-sync/state.json; in Git mode each machine also leaves machines/.json in the repository.

Tool actions

ActionPurpose
statuslocal hash, remote hash, pending changes, drift
pushwrite the snapshot to the repo (or send it to a LAN peer)
pullapply the remote snapshot (dryRun, force)
configureset repo, branch, excludeEntries, prune
lan-status / lan-enable / lan-disableLAN sidecar lifecycle
lan-pair / lan-approve / lan-reject / lan-forgetpairing
lan-push / lan-pull / lan-checksend, fetch, compare

Configuration

In the profile, row profile-sync:

- id: profile-sync
  name: dsh-profile-sync
  config:
    repo: 'git@github.com:user/dsh-profile.git'
    branch: ''            # optional
    file: dsh-profile.json
    excludeEntries: []    # row ids to keep machine-local
    prune: false          # true = also drop local overrides missing from the snapshot
    lanEnabled: false     # first-run default; afterwards the panel switch wins
    lanPort: 47931
    lanDiscoveryPort: 47932
    lanAutoApply: true
    manualPeers: []       # explicit URLs when UDP broadcast is blocked (VLANs)

repo accepts:

  • a Git URL (https://, git@, ssh://, file://): cloned to ~/.dsh/profile-sync/repo, with pull --ff-only / commit / push;
  • a folder path (also ~/...): ideal with Syncthing, Dropbox or iCloud.