dsh-session-bridge
Session-level multi-thread orchestration for DeepSeek Harness. Installs as a bundle in a profile and registers globally — every session can use the tools regardless of agent preset.
Tools
| Tool | Purpose |
|---|---|
session_create |
Create an ordinary session in the caller's workspace (optional initial prompt); returns the session id. The child binds to the caller's standing composition via composeFrom — never re-mounts another preset. |
session_send |
Deliver a prompt to any ordinary session by id. queue = next-turn FIFO (busy targets finish their turn first); interrupt = insert at the next step boundary. Cold sessions resume automatically with their recorded preset mounted. Subagent sessions are refused. |
session_list |
Enumerate ordinary sessions (id, title, cwd, running); optional workspace filter. |
Install
From the Git repository (recommended):
dsh plugin --profile web add https://github.com/FuWenLianggit/dsh-session-bridge
Or from a local checkout:
dsh plugin --profile web add <path-to-this-checkout>
Restart the profile (or the desktop app) and hard-refresh the browser. Uninstall
with dsh plugin --profile web remove dsh-session-bridge.
Runtime compatibility
The plugin reads every service structurally through ctx.get, so one build
serves both DSH lines:
- 0.2.x (incl. DSH Desktop 0.2.0-rc.2) —
sessionPersistence.list()returns detached snapshots ({ header, revision, sizeBytes });session_listand cold-sessionsession_sendreadsnapshot.header. - 0.1.7-rc.1 and later 0.1.x — the same listing returned bare
SessionHeaderrows; the normalization inheaderOf()still accepts them.
Cold resume mounts header.agentPreset through agentPresets.mount() inside the
setup callback. Without that, agents.resume() restores history but leaves the
agent without the preset's tools and prompt.
Notes
- Send/creation use the harness's built-in session/agent services; the plugin only wraps them into model-facing tools.
- Cross-session messages are recorded with
source: { kind: 'session-bridge' }. DSH 0.2 removed the sharedkind: 'plugin'source kind (each producer declares its own), and every consumer falls through an unknown kind to its generic rendering. - Only ordinary sessions are addressable; subagent-owned sessions keep the subagent routing fence.
No comments yet. Be the first to write one.