DeepSHPlugins
dsh-bridge 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-bridge

會話與訊息JavaScript

面向 DSH Agent 的本地跨會話訊息橋:支援會話發現、冷會話喚醒投遞與可審計訊息記錄。

3 Starsbaixianger 更新時間 2026-09-10
訪問 GitHub 倉庫
dsh-bridge 專案預覽

專案介紹

中文

面向 DSH Agent 的本地跨會話訊息橋:支援會話發現、冷會話喚醒投遞與可審計訊息記錄。

English

Local cross-session messaging for DSH agents, with discovery, cold-session wake-up delivery, and auditable message history.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
baixianger
倉庫
baixianger/dsh-bridge
GitHub Stars
3
Forks
1
開發語言
JavaScript
許可證
未記錄
最近推送
2026-09-10
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

60/ 100
維護活躍
100
文件與實用資訊
74
生態關注度
25
安裝便捷訊號
75
專案宣告訊號
80

近 1 天仍在更新;關注度尚低(3)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add github:baixianger/dsh-bridge

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-bridge

English | 简体中文

Local, cross-session messaging for DeepSeek Harness.

DSH Bridge is the local messaging foundation of the DSH family. It lets live sessions in one DSH host discover one another and exchange messages. It has no Web UI and no network transport.

dsh-weave can extend Bridge across machines; dsh-chat can present its messages as a human-facing group chat. Neither is required for local use.

What it gives you

  • Session discovery and direct delivery inside one DSH Host.
  • Human-readable title lookup as well as exact session-id targeting.
  • Cold-session resume before delivery, preserving the recorded agent preset and model.
  • Clear idle, running, waking, offline, archived, and missing states.
  • One controlled inbound seam for trusted transports such as dsh-weave.

Quick start

dsh plugin --profile web add dsh-bridge@next
dsh web

After installation, agents can use session_list, session_send, and session_messages directly. There is no separate settings page or Web UI.

How delivery works

The plugin exposes the ctx.dshBridge service and registers session_list, session_send, and session_messages for agents. The old ctx.sessionMessaging accessor remains as a temporary compatibility alias.

ctx.dshBridge.deliverExternal() is the controlled inbound seam for a trusted transport such as Weave: it emits the same session follow-up and audit record as local delivery, rather than letting a transport manipulate agents directly. Delivery uses the public ctx.agents registry and Agent.followup(). An idle target is woken, a running target receives ordinary queued work, and a persisted offline target is resumed through DSH's configured Host agent resolver before delivery. Concurrent messages to the same cold session share one resume operation. The resolver reconstructs the recorded agent preset and model selection exactly as the Web host does. A bounded in-memory recent log (the latest 1,000 delivered messages) is kept only for session_messages replay and diagnostics; it is not a second delivery queue. Messages carry sender, target, UUID, and timestamp metadata.

ctx.dshBridge.status(sessionId) reports a session's presentation state: waking while a cold resume is in flight, archived when the id is in the workspace registry's archive set, idle/running for live agents, offline for persisted sessions, and missing otherwise. Archive takes precedence over live presence: archiving a session hides it from live surfaces (such as dsh-chat room member indicators) without stopping its agent. Delivery to an archived session is rejected: session_send and deliverExternal refuse to wake or reach an archived target, so an archived agent stops receiving messages entirely rather than merely dropping off live surfaces.

session_send accepts a target session id or its human-readable title. The optional mode parameter controls interpretation: auto (default) tries the id first then the title, id accepts an exact known id only, and name matches titles only. Titles resolve accent-insensitively through the live sessionTitle service and the persisted projection cache; an unknown name or an ambiguous title rejects with the candidate ids.

This package intentionally does not implement cross-host transport. dsh-weave will provide the authenticated network backend while preserving the local message semantics.

Known Limitations and Deferred Work

  • Process boundary — sessions in another process or host are not visible;

add an authenticated relay/backend before advertising cross-host delivery.

  • In-memory retention — messages are lost when the plugin process exits and

older than the latest 1,000 are evicted; durable inbox/outbox persistence is still deferred until a cross-process relay needs it.

  • Delivery acknowledgement — the current result means the target was live

(or successfully resumed) and accepted the follow-up call, not that the target model processed it.

Model Experience

None, as session_list, session_send, and session_messages expose their schemas directly through the tool registry.

KV Cache effect

Independent tool schemas; sending a message changes only the target session's queued input and does not alter the sender's cached prompt prefix.

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案