返回目录
Agent 与会话 插件

dsh-session-bridge

FuWenLianggit/dsh-session-bridge

Session-level multi-thread orchestration for DeepSeek Harness: create ordinary sessions, send queued or interrupt prompts to any session by id, and enumerate sessions. Installs globally, independent of any agent preset.

Stars
0
Forks
1
Issues
0
更新
28 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:FuWenLianggit/dsh-session-bridge

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

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_list and cold-session session_send read snapshot.header.
  • 0.1.7-rc.1 and later 0.1.x — the same listing returned bare SessionHeader rows; the normalization in headerOf() 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 shared kind: '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.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类Agent 与会话
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agent、session、sessions、prompt、prompts。