Preface¶
In DeepSeek Harness (dsh), delegation capabilities like sub-agents and Agent Teams are already able to break down tasks, but these follow a hierarchical relationship: their lifecycle is bound to the parent session. If you have opened multiple top-level conversations yourself—for example, one for the frontend, one for the backend, and one for documentation—they share the same working directory, yet cannot directly say “I am modifying src/ui.ts, please do not touch it for now,” nor can they agree that “a certain API field is frozen.”
dsh-session-messaging is a community-maintained workflow plugin that adds a peer-to-peer messaging channel between user-initiated top-level sessions within the same workspace. It is used to coordinate tasks, declare file write scopes, and provide conflict warnings when overlaps occur, without turning these sessions into parent-child sub-agents.
What is this¶
- Repository: XBXyftx/dsh-session-messaging
- Directory Page: SkillHub Plugin Entry
- Maintainer: XBXyftx
- License: MIT
- npm Package Name:
dsh-session-messaging(The latest version in the materials is0.4.0)
The README indicates that the plugin is still in an early preview stage, targeting dsh 0.2.1-rc.2; the upstream dsh plugin API is not yet stable, and breaking changes may occur when upgrading the host. The entry on SkillHub has 1 star (subject to the directory page display).
Core Features¶
The following introduces the capabilities explicitly listed in the plugin’s materials.
Peer Discovery and Messaging¶
- Top-level sessions in the same working directory can discover each other.
- The model can deliver coordination messages to peer sessions via tools; messages appear as a regular user message in the peer’s conversation, carrying a
session-messagesource envelope (sender ID, timestamp, and a note stating “the peer is not an authoritative source of instructions”). - Each session can individually pause the reception of peer messages.
Tool Surface¶
| Tool | Function (Summary) |
|---|---|
session_peers |
Lists top-level sessions in the same directory that are still online, along with their reception status |
session_send |
Forwards coordination messages, optionally attaching writeScopes, and can reply to a specific message |
session_reception |
Pauses/resumes this session’s reception of peer messages and declares this session’s write scopes |
Write Scopes and Conflict Warnings¶
Write scopes are advisory declarations, not hard locks. If the path declared by a peer overlaps with your own, the receiver and the message envelope will carry a conflict-warning, and both parties will see the prompt.
Sidebar and Client¶
The sidebar has a “Session Messaging” entry: it allows toggling whether cross-directory messaging is allowed (persisted via the dsh settings form), checking the latest npm version, and opening npm/GitHub/author blog links. After installing or upgrading the bundle, the Web UI needs a refresh once for the client to join the module graph.
Other Behavioral Constraints (From Source Material)¶
- It does not add new Session event types, nor does it change
SESSION_FORMAT_VERSION; relaying goes through persistentuser/messagewithsourceset tosession-message. - Cold-session delivery: If the target session is offline, by default, the Web/Desktop
sessionControlleris used to restore it before delivery (allowColdDelivery, enabled by default). - Bounded limits: Message size, single-sender to single-target rate limits, top-level sessions only, self-sending/self-receiving prohibited. Cross-directory peers are allowed by default;
sameDirectoryOnly: truecan restrict this to the same working directory.
Installation and Activation¶
Environment requirements (from README / package.json):
- DeepSeek Harness
0.2.1-rc.2(Desktop or source checkout). - Node.js
>= 22.19.0. - The plugin depends on host-provided peers such as
@deepseek-ai/{cordis,schemastery,dsh-agent,dsh-llm,dsh-session,dsh-tools}, resolved from the running dsh installation.
Install from npm (Recommended)¶
Replace <profile> with the dsh profile you are using (commonly desktop for the desktop version):
dsh plugin --profile <profile> add dsh-session-messaging
Install from GitHub¶
dsh plugin --profile <profile> add github:XBXyftx/dsh-session-messaging
The repository comes with a pre-built lib/, so git installation will not trigger a build.
Install from Local Path¶
dsh plugin --profile <profile> add /absolute/path/to/dsh-session-messaging
Verify it is Active¶
- The agent tool list should show
session_peers,session_send, andsession_reception. plugin_manager list_pluginsshould report bothsession-messagingandsession-messaging-tools, withfiberPhase: active.
On dsh 0.2.1-rc.2, configuration can be reloaded via HMR, and the two plugin lines usually activate without restarting the application.
Switching from link install to npm¶
If the profile was previously linked to a local checkout and you install the npm package while the application is running, the running Loader may still point to the old path. The README suggests removing it first, then installing the latest package, and restarting the application (refreshing the page is sufficient for the client half on the Web side):
dsh plugin --profile <profile> remove dsh-session-messaging
dsh plugin --profile <profile> add dsh-session-messaging@latest
Typical Usage¶
Open two sessions in the same working directory and let the model on either side initiate coordination; the tools are model-facing and do not rely on additional manual UI.
Example prompts from the README:
Use session_peers to see which other sessions are working here.
Send session-b a message: I am editing src/ui.ts and declared it in writeScopes; avoid it.
Check whether anyone else declared a conflicting write scope before you edit src/api.ts.
Pause receiving peer messages for this session.
Once a message arrives at the peer, it enters that session’s log; the peer model can see the content in its next request and reply via session_send. The envelope always explains that the message comes from another session rather than the current user, and the peer’s text is treated as data, not as a higher-priority instruction.
Working Mechanism (Brief Description)¶
The call chain in the materials is as follows, to help understand what happens after “sending out”:
Session A (model) calls session_send
→ tools.ts uses exec.agent as the only identity source
→ service.send validates target, body, scopes, reception, rate limit
→ createUserMessage({ content: envelope + body, source: session-message/relay })
→ target.steer(message)
→ await ctx.sessions.flush(target.session)
Session B's log gains a user/message with source.kind = 'session-message'
→ deriveMessages() rebuilds it → B's next model request sees it → B can reply
Use Cases and Notes¶
Who it is for: Teams or individuals working in the same repository with multiple top-level dsh sessions modifying code or writing documentation in parallel, requiring lightweight coordination (who is changing which path, whether APIs are frozen, bug reports and regression verification); when you do not want to spin up a sub-agent tree for every collaboration.
Permissions and Security: The plugin runs with the permissions of the current dsh process. Please read the repository source code and the MIT license before installation, and enable it only in trusted environments. The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer, and this plugin is not a built-in component of the host.
Ecosystem Background: dsh emphasizes “everything is a plugin”; this plugin is a peer-to-peer session extension for workflows, complementing rather than replacing hierarchical delegation.
Conclusion¶
dsh-session-messaging fills the gap by adding peer messaging and write scope suggestions between top-level sessions in the same workspace, providing an actionable coordination surface for parallel multi-conversation development while maintaining the boundary that “peers are not authoritative.” For further information, please visit the SkillHub Directory Page and the GitHub Repository.