dsh-session-tools: Enable Agents to Create Sessions and Delegate Tasks to Other Sessions

Introduction

When handling complex tasks in DeepSeek Harness (DSH), a common practice is to manually create new sessions in the sidebar, copy background context, and relay results back and forth between two windows. Tasks involving research, solution comparison, and organization can often be broken down into independent conversations, but manual switching costs are high and context is easily lost.

Below is an introduction to the community plugin dsh-session-tools (npm package name @ryuu-64/dsh-session-tools). It exposes “creating new sessions, sending messages to other sessions, and waiting for/retrieving results” as tools callable by the agent. New sessions appear in the sidebar and can be opened at any time to continue the conversation. The plugin is maintained by Ryuu-64 and categorized as Workflow in the SkillHub plugin directory; source code and documentation can be found in the GitHub repository.

What is this

In short: It allows the AI in DSH to create ordinary sessions, send tasks to other ordinary sessions, and bring the results back to the current conversation via receipts.

It does not automatically copy the current conversation to the target session; you must clearly state the background, paths, and expected results within the natural language task. The plugin runs with the permissions of the current DSH process. Before installation, it is recommended to review the source code and the MIT License, and read the official compatibility notes.

Core Features

The agent side primarily corresponds to five types of tools (see the Tool Reference for parameters and error handling):

What you want to do Tool
Create a session that can be continued independently, specifying an existing workspace session_create
Send a new message to another ordinary session session_send
List sessions filtered by title or workspace, paginated by recent activity list_sessions
Query the result of a specific message or session overview session_wait
Check the current communication toggles for a known target on demand session_communication_status

A title can be specified upon creation; if not specified, a fixed title is generated from the first task without additional model calls.

Session Communication (UI and Toggles). The top of the right-side “Sessions” tab allows separate control of “Receive messages from other sessions” and “Send messages to other sessions”; the “Session Communication…” option in the left-side session “…” menu shares the same status and saving logic as the right panel. Sessions without saved settings default to having both enabled; disabling sending also prevents creating a new session with an initial message. This is the communication control for this plugin, not host-level security isolation. The README also states: candidate versions not published to npm require DSH 0.2.0-rc.2 and retain the session discovery and message receipt capabilities of 0.7.0; do not treat the 0.7.0 installation command below as the installation method for candidate versions.

Pre-send Check & Receipts. list_sessions displays a snapshot of the sender/receiver toggles from the current caller to the target; session_send will still re-check before actual delivery, and if refused, it will clearly indicate that it was not delivered or queued. After successful delivery, use messageId and session_wait to track status: being queued and being handed over to the target are different concepts from the session ending its current turn, and the end of the turn does not equal task success. A single wait defaults to 60 seconds and maxes out at 5 minutes; if it times out, you can continue to query without needing to re-dispatch the task.

Installation and Enablement

Prerequisites: DSH and model configuration are available; Node.js 22.19+ (22 series) or 24.x; dsh plugin uses pnpm to manage plugins, so ensure the command line is available.

Before installing, please read the compatibility notes to confirm that your current DSH and host configuration are supported. Taking profile web as an example, execute the following in the terminal:

dsh plugin --profile web add @ryuu-64/dsh-session-tools@0.7.0

Restart the corresponding DSH host after installation. The plugin has no additional global configuration items; custom hosts must also meet the service requirements in the documentation.

Typical Usage

Simply describe it in natural language within the conversation; there is no need to manually fill in tool parameters.

Create a session and wait for the result:

Help me create a session called “Solution Comparison”, comparing the pros and cons of SQLite and PostgreSQL in a local single-person accounting app, and provide a recommendation and reasons. Wait for its answer and then tell me the result.

Following the steps above, the general flow is: the AI prepares the task and requests confirmation to create a new session; once allowed, the new session starts processing, which can be opened via the “Session Created” card; the AI can wait for the result of that message before returning to the current conversation to answer.

Search first, then send follow-ups:

First, find sessions with titles containing “Solution Comparison”, list the titles and statuses; if there are more results, continue to the next page. Do not send messages yet.

After confirming the target:

Ask the “Solution Comparison” session found earlier to supplement notes on data export, and tell me the result after it answers.

Be sure to write the task background completely; the plugin will not automatically copy the current conversation to the target session.

Scenarios & Caveats

Suitable for: Workflows where independent investigation, comparison, or organization needs to be handed over to another session for parallel or serial processing, without the hassle of manually creating sessions, copying context, and pasting results back and forth.

Permissions and Limitations (excerpted from official instructions):

  • Creation and sending usually require confirmation; they may only be skipped if the host enables both full access permissions and auto-approval, but host rejection rules still apply. Listing and waiting are read-only.
  • A wait timeout does not equal failure; cancelling a wait does not cancel the target task. To continue querying the same message, you must use both the sessionId and messageId from the receipt; do not automatically resend.
  • Only operates on ordinary sessions: cannot send messages to the current session itself, nor to sub-agents; the list includes archived ordinary sessions and indicates their status.
  • The workspace must already exist; the plugin does not create workspaces, nor does it provide cross-workspace migration after creation.
  • The target depends on DSH running; sending can reopen a closed session that has a saved working directory, but read-only waiting will not wake up the target.

SkillHub is a community plugin directory site and has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem emphasizes “everything is a plugin”, so please evaluate the version and permissions yourself when selecting third-party plugins.

Conclusion

dsh-session-tools converges multi-session collaboration into an agent-executable flow of creating, sending, listing, and waiting, supplemented by session communication toggles and receipt queries, reducing the manual transfer of information between multiple sessions. For more details, see the GitHub README and the SkillHub directory page; issues and suggestions can be submitted in the repository’s Issues (please attach DSH, Node.js, and plugin versions along with reproduction steps; do not post keys or private conversations).

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

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

Xiaoye