baixianger/dsh-bridge
Lets sessions inside one DSH host find each other and exchange messages, with delivery that respects session state.
Three tools, one local host. session_list discovers sessions and their current state; session_send delivers a message by exact session id or by human-readable title; session_messages reads back a bounded recent delivery log. The delivery model is the thoughtful part: an idle agent wakes, a running agent receives queued work, a persisted session resumes with its recorded preset and model, concurrent requests to the same cold session share one resume operation, archived sessions reject delivery and are not woken, and cancelling during a cold resume prevents a late follow-up even if the shared load finishes. Title lookup is case-insensitive and an ambiguous name returns candidate ids instead of picking a recipient for you. The README also sets expectations honestly: a delivery acknowledgement means the session accepted the follow-up, not that the model has processed it. For plugins, ctx.dshBridge is the public service and trusted transports call deliverExternal() so local and external delivery share one follow-up and audit path.
Install
dsh plugin --profile web add dsh-bridge@latestThe README's quick-start line, with the author's @latest tag; run dsh web afterwards. It adds tools directly and has no separate settings page, so there is nothing to configure to get local messaging working. The README notes that its sibling plugins are optional — DSH Weave supplies cross-host transport and DSH Chat supplies rooms and a web conversation view, and neither is required for local messaging.
Compatibility
This is a release candidate line (0.1.0-rc.17), which the version field states plainly. The boundary that matters is retention: Bridge operates inside one host process, and its recent-message log and duplicate-ID table live in memory, so they reset on plugin unload or reload — it is not a durable mailbox. Configuration is three knobs: recentMessages (default 1000 retained messages per host), dedupeCapacity (default 10000 remembered external message IDs) and maxMessagesPerRead (default 100). The old ctx.sessionMessaging accessor remains as a temporary compatibility alias.
Details
- Repo: baixianger/dsh-bridge
- Category: Sessions & Messages
- Stars: 3
- Version: 0.1.0-rc.17 (npm)
Alternatives
ishuowang/dsh-rolehub-bridge · ishuowang/dsh-sideband · heartmove/dsh-session-bridge