编者按

baixianger/dsh-chat

面向 DSH 会话的群聊室:支持明确 @ 提及、冷会话唤醒投递,并可通过 dsh-weave 跨主机通信。

这是一个 DeepSeek Harness(DSH)插件。本站汇总其 GitHub README、安装信息、维护状态与公开安全信号。

上游未提供中文 README,当前展示仓库原始内容。

DSH Chat

Web group chat for local DSH sessions and trusted remote nodes.

DSH Chat is the user-facing layer of the DSH family. It owns group rooms, members, the message timeline, and room sessions in the DSH Web client. It does not own local delivery or network transport.

PackageRole
dsh-bridgeLocal session events and same-process delivery
dsh-weaveTrusted cross-machine transport over Iroh
dsh-chatThe human conversation and task-control surface

Status

0.1.0-rc.27 represents every room as a dedicated DSH session inside a Chatrooms workspace. Opening that session uses the native Chat view: a conversation node renders the authoritative room timeline and a selector-routed composer sends room messages. The room timeline uses member avatars and keeps membership and Weave configuration in a dedicated settings drawer. Local members are selected from the host's live session catalog rather than entered as raw ids. Reachable paired Weave hosts contribute their own workspace-grouped session catalogs, labeled by host name; archived sessions are excluded. Iroh identity and pairing remain owned by dsh-weave's Settings page. Its composer follows the native session input layout. There is no separate Group Chat view tab. Existing rooms are assigned room sessions on startup. When Weave is installed, the same room service can also deliver to its explicit remote members. The Host → Workspace → Session picker follows the same token-based field, select, focus, and disabled-state contract as DSH Settings without depending on Settings' private CSS-module class names.

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

Product principles

  • A local chat and a remote handoff look like one continuous conversation.
  • A room has one authoritative host. Remote nodes store a room link (host id, capability, and cursor), not an endpoint ticket, second room, or message-history replica.
  • Public messages without @ belong only to the room view; @session-id directs delivery and @all is the explicit agent broadcast.
  • Without Weave, a room can contain local sessions only. When Weave is installed, the same room can include explicitly approved remote nodes.
  • Every remote action exposes its target node, requested capability, and approval state.
  • Network loss is visible; no hidden retries that make work appear completed.
  • Credentials and private workspace files stay with their owning DSH node.

Agent commands

Agents receive chat_create, chat_join, chat_invite, and chat_send. This makes plain requests such as “create group chat release” or “join group chat release” actionable without asking the operator for a session id. A send with no mentions is a room-only public event. The UI displays and inserts a session's human-readable alias, while a deliberate selection records its stable id in the separate mentions field. Plain text—including at, email addresses, or a literal @alias—never wakes an agent by itself. mentions: ["all"] remains the only agent broadcast.

An explicitly mentioned live agent is woken through Bridge. Its injected message explains that an ordinary assistant response remains private to that session and that replying to the room requires chat_send; the hint includes the room name and sender alias so an agent can answer without handling ids. Agent senders receive a structured reply mention. Human senders instead receive a room-only reply with no mentions, so the response is visible without waking another agent.

Same-host membership is immediate. Cross-host membership requires an explicit trusted peer and creates a capability-bearing room link, rather than copying room state from a text message. A remote room view cursor-long-polls its host; the host retains an unacknowledged targeted delivery for seven days and retries it without turning normal public room traffic into agent follow-ups.

The room session stores only a durable chat/room-link marker and a closed, step-free initialization turn so DSH treats it as a visible session. Room messages remain in the authoritative room store; linked machines keep the host id, room capability, cursor, and a bounded read-only timeline cache rather than copying room messages into their DSH session logs. The cache lets linked hosts retain visible history across page and process restarts while the room owner remains authoritative.

Roadmap

  • Native Chat room sessions with a composer takeover
  • Node and task handoff timeline
  • Remote approval and result cards
  • Session export, replay, and audit view

Development

npm run check

License

MIT © Xiang Bai

REPOSITORY SIGNALS

安全与安装证据

该分数只基于公开仓库元数据与本站登记的安装证据,不等同于代码安全审计。

来源可追溯

来自公开插件目录,并链接到公开 GitHub 仓库。

许可证

仓库声明 MIT 许可证。

维护活跃度

最近 180 天内有代码更新。

安装证据

尚未登记可复验的精确安装元数据,请按仓库说明手动检查。

安装生命周期脚本

已检查的包元数据未声明安装生命周期脚本。