Introduction¶
The plugin-based architecture of DeepSeek Harness (DSH) makes extensibility flexible, but a mechanism for sharing context and handing off tasks between multiple devices was still missing. TheTwo (dsh-thetwo), as a DSH plugin, provides LAN session synchronization and cross-device task handoff capabilities. You can ask a question on one device, let the model choose the execution location based on the hardware of another device, or directly delegate a task to a specified device mid-conversation, with the response synced back.
What Is This¶
TheTwo is a plugin for DeepSeek Harness (DSH) that synchronizes sessions and attachments over a local area network and supports task handoff from one device to another. It is built on DSH Session V4, does not rely on any third-party cloud service, and uses only UDP broadcast/multicast for discovery and TCP for transport. The system clock difference between the two ends must be less than 5 minutes. The plugin employs X25519 + HKDF + AES-256-GCM encrypted authentication. The initial pairing requires both parties to verify device names and addresses and click Allow. It is intended for trusted LAN environments.
Core Features¶
- LAN Discovery & Pairing: Automatically discovers devices within the same reachable LAN—no account or PIN required. After pairing, you can view device status in the left-side TheTwo Session Sync panel (Syncing, Synced, Updates Pending, Paused, Offline).
- Session & Attachment Sync: Regular sessions are auto-synced by default, preserving messages, tool history, event ordering, and branch history. Images and uploaded files are transferred with the session by default and are imported only after verification and saving.
- Task Handoff: After pairing, a summary is generated for each online device, including OS, architecture, CPU, logical threads, memory, and GPU name. You can simply say in a conversation, “Based on the configurations of both machines, pick one to handle this step” or “Run it on the work Mac.” On the receiving end, select “Execute Locally” or “Decline” in the TheTwo panel under “Task Handoff.”
- Offline & Conflict Handling: Offline devices only use previously received content. If different devices continue writing from the same history independently, the full branches are saved and merging is paused. You can click “View Other Versions” from the conflict record to restore a saved copy as a resumable, syncable session.
- Sync Content Control: Regular sessions, images/attachments sync by default. API keys and third-party plugins are off by default and must be enabled separately by both parties. Model configuration, OAuth, environment variables, plugin settings, project directories, delete/archive states, and internal subtasks remain local to each device.
Installation & Activation¶
Desktop DSH: Go to “Plugins → Add Plugin → Install Third-Party Plugin,” enter the npm package name dsh-thetwo, and click “Activate Now” after installation. For offline installation, download the .tgz from the latest stable release and enter the absolute local file path at the same entry point.
Web profile: Use the official CLI to install.
dsh plugin --profile web add dsh-thetwo
DSH with custom plugin index support: Enable “Plugins → Discover → Index Source,” add the TheTwo publishing index, and after refreshing you can search for TheTwo, Session Sync, or LAN in the Discover section.
https://raw.githubusercontent.com/YunongDai2005/dsh-thetwo/main/market-index.json
Typical Usage¶
- Install and activate
dsh-thetwoon two DSH devices where you need to share sessions. - In the TheTwo Session Sync panel on either end, find the other device, click “Sync,” and on the other end click “Allow Sync.”
- After pairing, click “Open” in the shared session library. When a session receives new records, click “Open Latest” to resume the conversation—no need to restart DSH.
- Once paired and connected, describe the task in the conversation, e.g., “Based on the configurations of both machines, pick one to handle this step” or “Run it on the work Mac.”
- On the receiving end, in the TheTwo panel under “Task Handoff,” select “Execute Locally” or “Decline.” After confirmation, the receiving DSH instance processes the task using its own model configuration and tools.
- Once generation is complete, return to the initiating end and click “Open Latest” in the shared session library to view the response. Files required for the task can be sent as session attachments; project directories remain on their respective devices.
Use Cases & Cautions¶
Ideal for developers and model users who need to share context across multiple devices and switch execution locations. The plugin runs with the current DSH process permissions—review the source code and license before installing. Only private IPv4 transport is supported; the system clock difference between the two ends must be less than 5 minutes. Public network addresses or direct domain connections are not supported. The system firewall may need to allow DSH’s dedicated network communication; the plugin does not modify the system firewall.
Brief Closing¶
TheTwo allows DSH users to share a session library over a LAN and hand off tasks across devices—no cloud service or account required. The plugin maintainer is YunongDai2005; see the directory page below and the GitHub repository for the project.