Introduction¶
When running DeepSeek Harness (DSH) on multiple machines, sessions often remain isolated within local workspaces. Using USB drives, cloud storage, or manual export/import involves multiple steps and makes it easy to overlook specific conversations. If the computers are on the same Local Area Network (LAN), a more ideal approach is for them to automatically discover each other, list peer sessions, pull or push them as needed, and verify content consistency before writing.
Below is an introduction to the community plugin dsh-session-sync (maintained by XXGxiaoyu), which provides session browsing, pulling, pushing, and SHA-256 verification for DSH within a LAN. Device nicknames are stored locally only.
What is this¶
dsh-session-sync is a networking plugin for DSH: DSH instances with the plugin installed discover each other within the LAN, browse peer session lists via HTTP, and pull sessions back to the local machine or push them to peers. The nickname you assign to a device is stored in the local state file and associated via a stable device id (uuid), independent of IP or hostname; even if the peer goes offline, restarts, or changes addresses, you can still see the name you assigned.
The plugin is categorized as a “Networking Tool” in the SkillHub community directory; source code and documentation are available in the GitHub repository, licensed under MIT. At the time of writing, the repository has approximately 1 star.
Core Features¶
The capabilities described in the documentation can be summarized into the following categories (subject to the plugin README).
Discovery and Device List
- Sends UDP broadcasts on each IPv4 network interface (approx. 4-second beacon); newly appearing peers receive unicast replies and do not need to wait for the next broadcast round.
- For cross-subnet scenarios, “Cross-subnet scan” allows configuring CIDR, single IP, or
ip:port: CIDR still uses UDP discovery; single IPs also attempt HTTP on ports 47802–47817 to mitigate issues where “firewalls drop UDP causing peers to remain invisible.” - Local nicknames and locally-stored peer nicknames are saved in
<home>/session-sync/state.json, indexed by device id.
Browse, Pull, Push
- View sessions on each device (title, working directory, time, etc.); pull a session locally or push a local session to a peer; imported rows are marked as pulled.
- Supports search (via
/), filters for All / Not Pulled / Pulled, and sorting by time or title; optional auto-pull every 20 seconds for unpulled sessions, using content fingerprints to prevent mutual pushing when auto-pull is enabled on both machines. - Supports multi-selecting sessions to drag onto known folders or DSH sidebar workspace rows; the target workspace is confirmed before dropping. Provides batch operations like “Sync all” and “Push all”; items that already exist (based on content fingerprint) are skipped.
Integrity Verification
- Exports carry
sha256 = SHA-256(JSON.stringify({format, session, events})); imports compare this before writing, returning HTTP 409checksum-mismatchif inconsistent. - The interface provides a “Verify” action to re-fetch the peer payload and recalculate the digest. The README notes: the digest proves byte-level consistency but does not prove the sender’s identity; for strong identity verification, full digests should be compared via off-band methods.
Interface and Integration
- Session Sync appears under Plugins in the sidebar; the same panel is also registered under Settings → Session Sync.
- The interface uses DSH design tokens and follows the host’s light/dark theme; language defaults to following DSH but can be explicitly selected as Chinese or English.
Once ready, the log may show output similar to:
[dsh-session-sync] ready: device <hostname>, sync port 47802, discovery port 47801
[dsh-session-sync] discovered <peer name> (192.168.1.7:47802)
Installation and Activation¶
The plugin requires DSH 0.2.1-rc.2 (the README specifies this matches the currently bundled version in the desktop app) and Node 22+. The official installation command is as follows (with profile as web):
dsh plugin --profile web add github:XXGxiaoyu/dsh-session-sync
After installation, the DSH desktop application needs to be restarted (host-side changes are loaded at startup; simply refreshing the page allows you to see the new UI). The footer displays the actual running build version; if it is lower than the latest release, it usually indicates the process has not been restarted. The package declares dsh.bundle, and dsh plugin add will automatically add the plugin to dsh.profile.bundles and activate it.
You can also install via the release pre-built tarball; for local checkout manual linking, refer to the package.json example in the repository README.
Typical Usage¶
- On each machine that needs to sync, execute the above
dsh plugin addcommand using the same profile (e.g.,web), and restart DSH. - Open sidebar Plugins → Session Sync (or Settings → Session Sync), confirm the local name (visible to peers); if necessary, use Rename in the device row menu for devices other than the local one (visible only locally).
- Select an online peer in Devices, view Sessions on the right; use pull or push for individual sessions, or use Verify to check if the local copy matches the peer.
- If the peer is on another subnet, configure the CIDR or IP for Cross-subnet scan in advanced options, then refresh the device list.
- For batch synchronization, use Sync all / Push all; the transfer queue shows progress in the bottom bar and details drawer. In case of conflicts, you will be prompted to keep local, overwrite, or skip the item.
When dragging sessions to the DSH sidebar workspace, you will be asked to confirm the target workspace name to avoid accidental drops into wrong directories.
Use Cases and Notes¶
Who is it for
- Users running DSH on multiple computers at home or in the office within a mutually accessible LAN (or willing to configure cross-subnet scanning).
- Users who want to migrate or backup sessions between machines without manually exporting JSON every time.
- Multiple DSH instances/profiles on the same machine: The README classifies other local instances under “Other DSH instances on this machine”; browsing and pushing remain available, facilitating cross-profile sync.
Please Note Before Use
- The plugin runs with the current DSH process privileges and opens discovery and HTTP sync ports within the LAN; before installation, you should read the source code and MIT license, and assess network boundaries and firewall policies.
- Syncing uses plain HTTP (the README describes it as plain HTTP), suitable for controlled internal networks; do not assume it implies encrypted or authenticated transmission by default.
- The community directory SkillHub plugin page and GitHub are maintained by the community and have no official affiliation with DeepSeek / High-Flyer; versions are subject to the package you installed and the footer build number (the plugin version in
package.jsonis 0.7.1, which is distinct from the DSH version number in the README badge—do not confuse them).
Conclusion¶
dsh-session-sync consolidates “multi-machine DSH session alignment” into LAN-based discovery, listing, pull/push, and SHA-256 verification. Nicknames remain local, reducing the cost of re-identification after IP changes. If you use DSH on multiple devices, you can check the instructions and updates via the community directory or GitHub:
- Directory Page: https://www.skillhub.cn/plugins/XXGxiaoyu/dsh-session-sync
- Repository: https://github.com/XXGxiaoyu/dsh-session-sync