DeepSeek Harness 插件

baixianger/dsh-chat

Star 数 ★ 0 分类 会话与消息 收录于 2026-08-19 npm dsh-chat

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

安装

# npm 包(预构建)

dsh plugin --profile web add dsh-chat

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

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

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

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.

Package Role
dsh-bridge Local session events and same-process delivery
dsh-weave Trusted cross-machine transport over Iroh
dsh-chat The 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

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →