dsh-takeover: Session Takeover and Relay Plugin

Preface

The DeepSeek Harness (DSH) plugin architecture allows developers to extend Agent capabilities. In multi-agent collaboration scenarios, developers often face two specific problems: first, how to safely pass the current Agent’s context to another Agent; second, how to pull historical progress from another Agent’s (such as Claude, Cursor) local session. dsh-takeover is a DSH plugin implementing the handoff: 1 open protocol, providing three core capabilities—pull, register, and takeover—designed to solve inter-Agent session relay issues.

Core Capabilities

This plugin primarily includes the following features:

  1. Session Pull: Supports read-only pulling of local sessions from eight external Agents, distilling them into a six-segment protocol card injected into the current session. Supported Agents include Claude, Codex, OpenCode, Zcode, Pi, WorkBuddy, Cursor, and Grok.
  2. Session Register: Registers the current DSH session as a handoff card according to protocol specifications, persisting it to a shared inbox.
  3. Pickup at Startup: Any Agent can pick up items from the inbox after starting, consuming and discarding them to achieve relay.
  4. Workbench Takeover: Provides a “Relay” button in the session input box, floating a workbench to browse external sessions and take over with one click.
  5. Filesystem Bus: Uses ~/.handoff/ as a shared bus, supporting multi-machine synchronization.
  6. Git Integration: Supports patching uncommitted Git changes with the card, which can be applied by the receiver.
  7. Configuration Matrix: Provides switch controls for eight readers.

Installation and Activation

Before installation, confirm the environment meets the following requirements:

  • DeepSeek Harness (DSH) >= 0.2.0-rc.2
  • Node.js >= 22

Install via the following command:

dsh plugin --profile web add github:IKEASven69/dsh-takeover

Or use a local path:

/path/to/dsh-takeover

Typical Usage

The plugin registers the following tools and commands:

Tools
* foreign_session_read: Read-only pull of eight sessions.
* handoff_push: Register the current session as a protocol card.
* handoff_inbox: List or load items to pick up.

Slash Skills
* /handoff: Distill the current session into a six-segment card and persist it.
* /inbox: List items to pick up and pick them up.
* /resume-claude / /resume-codex … /resume-grok: Pull and inject sessions from specified Agents.

Use Cases and Notes

  • Permission Scope: The plugin requires write access to the ~/.handoff/ directory (can be overridden by the HANDOFF_HOME environment variable), read access to Git status, and read-only access to the local session databases of eight Agents.
  • Security Restrictions: Does not access the network, does not revive external processes, does not replay historical tool calls, and does not include original text in cards.
  • Data Persistence: Session data is stored on the local filesystem, suitable for cross-device relay (requires sync drive or Git repository).

Conclusion

dsh-takeover provides a complete loop from external pulling, local registration to pickup at startup. Through six-segment protocol cards and a filesystem bus, it achieves deterministic context passing between Agents. For more details, refer to the GitHub repository.

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

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

Xiaoye