DeepSeek Harness Cross-Session Tool Plugin: Session Listing, Delivery, and Creation

Introduction

In DeepSeek Harness (DSH), a session is the container that holds a workflow. When you need to hand off a task from the current session to another, or when multiple sessions need to collaborate, you often have to manually copy-paste messages and switch between interfaces — a process with a high operational cost. The core philosophy of the plugin ecosystem is “everything is a plugin,” extending native capabilities to reduce repetitive operations.

What Is This

laoyuehanni/dsh-session-tools is a workflow plugin for DSH, provided by the maintainer LaoYueHanNi. It gives the model six cross-session tools and adds a “Session Messages” row to the / menu, making it easy to quickly select a target session and send instructions.

Core Features

The plugin provides the following six tools:

  • session_list: Lists the currently visible sessions, including id, title, working directory, creation time, and archive/delegation flags. Used to confirm the target session before sending.
  • session_models: Lists the available model routes for a new session, including provider, model name, display name, reasoning efforts, and default selection. Can be used to choose a model before creating a session.
  • session_presets: Lists the available Agent presets for a new session, including id, display name, description, and default flag. Can be used to select a preset before creating a session.
  • session_send: Delivers a message to a specified session. This is a one-way delivery — once sent, the sender’s session concludes that portion of work. If a result is needed, set reply: true in the message; the receiver will use session_send to send the result back.
  • session_read: Reads recent user messages and assistant messages from a specified session. Only invoked when explicitly requested; it does not auto-track.
  • session_create: Creates a new session, supporting specification of directory, title, Agent preset, and model route, and delivers the first message.

Additionally, the plugin displays a clickable receipt card after a successful delivery or creation. In the Web interface, received deliveries show the sender session’s identifier and a brief preview; clicking the card reveals the full message.

Installation & Activation

Use the official install command:

dsh plugin --profile <name> add @laoyuehanni/dsh-session-tools

This package declares dsh.bundle, which is automatically added to the configured bundle stack — no manual profile editing required. After installation, restart the profile or reload the plugin to activate it.

Once installed, you can verify via model instructions:
- Ask the model to “list the sessions I can send messages to” to trigger session_list
- Ask the model to “send … to …” to trigger session_send
- Type / in the input box; a “Session Messages” row will appear in the menu.

Typical Usage

Session Listing & Selection

When a user mentions a session in natural language, the model can call session_list to retrieve available sessions, then perform a precise match by id or title. If the title is ambiguous, a candidate list is returned for the user to confirm.

Creating a New Session and Delivering the First Message

Creating a session requires a message, because a session that has never received a message will not appear in the sidebar, making it inaccessible to the user. When creating, you can specify:
- Directory: an absolute path, a path relative to the current session, or a session title/workspace name
- Model route: provider + model obtained via session_models, with optional reasoningEffort
- Agent preset: id or display name obtained via session_presets

If no effort is specified, it inherits the last manually selected model effort from the current session; if no preset is specified, the configured default is used.

Delivering and Requesting a Reply

When delivering a message, set reply: true. The plugin appends the return address and instructions after the message body, and the receiver then uses session_send to send the result back:

[From session "<sender title>" (<sender id>)]

<message>

[How to reply: When done, use session_send to send the result back to "<sender title>" (<sender id>). Send and end — do not wait or poll.]

Using the Session Messages Row

  1. Type / in the input box and select the “Session Messages” row.
  2. Choose the target session from the list (search supported).
  3. A session chip is inserted at the cursor position without overwriting existing content.
  4. Type your instruction, e.g., “sync this API change over and have it regenerate the docs.”
  5. After submission, the chip is converted to [Target session: <sessionId>]. The model reads the marker, composes the actual message, and calls session_send.

This marker is pure context and does not trigger the session-reference plugin’s read-only snapshot reading.

Applicable Scenarios & Cautions

This plugin is suitable for scenarios requiring task distribution across multiple sessions, splitting workflows into different sessions, or inter-session collaboration.

Cautions:
- The plugin runs with the permissions of the current dsh process. Review the source code and license (MIT) before installing.
- Delivery uses a one-way, fire-and-forget pattern. If the result matters, set reply: true.
- Creating a session requires the first message; otherwise, the session cannot be opened in the interface.
- The target session can be the current session or a delegated sub-session, but archived sessions will reject delivery.

Brief Closing

Through six tools and the Session Messages row, this plugin standardizes cross-session operations, enabling the model to handle inter-session collaboration and distribution more naturally. Project directory and source code: https://www.skillhub.cn/plugins/LaoYueHanNi/dsh-session-tools, GitHub repository: https://github.com/LaoYueHanNi/dsh-session-tools

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

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

Xiaoye