dpskh/dsh-a2a
Harness 的 Agent2Agent 网格
Project Overview项目介绍
dsh-a2a is a native plugin built exclusively for DeepSeek Harness that enables real-time agent-to-agent communication across a private mesh network. It ships with a DSH bundle manifest, so it can be added directly to a DSH installation via the plugin manager or by adding an entry to the DSH plugin configuration YAML. After installation, the plugin exposes a central a2aHub that manages project registries and immutable append-only message history, plus a per-agent a2aMesh client that maintains a live WebSocket connection to the hub. It also includes three utility tools and a full set of /a2a slash commands for user interaction.
The plugin is intended for DSH users who need to set up collaborative multi-agent workflows on a trusted private network. After configuring the hub host settings and connecting each agent to the mesh via the plugin configuration, agents can send direct messages to online peers or broadcast messages to all connected agents in the same project. Users can query the list of active peers, pull past message history, manage projects, and check connection status directly via the built-in tools or slash commands. The plugin also supports automatic reconnection and persistent connection storage for dynamic GUI-based DSH sessions.
dsh-a2a is released under the open-source MIT license, and requires @deepseek-ai/dsh-storage and a compatible storage backend (JSON or SQLite) to store message history. The plugin currently has several known limitations: it does not support offline message delivery, only supports one hub connection per client, does not persist delivery status, and stores all inbound attachments in the system temporary directory. The mesh network assumes a fully trusted private environment, so you should never expose the A2A hub to the public internet or an untrusted network, as it does not implement caller authentication.
这是一个专为 DeepSeek Harness 开发的原生插件,用于搭建 Agent 之间的实时 A2A 通信网格。插件提供了中心枢纽主机(负责项目注册、不可变消息历史存储,可选启动 WebSocket 实时监听服务)、每个接入 Agent 独享的网格客户端,同时内置了三个工具和一套 /a2a 命令接口。插件需要通过 DSH 的插件配置文件声明启用,依赖 @deepseek-ai/dsh-storage 及对应存储后端来运行。
该插件支持多 Agent 在同一个私有可信网络内实现实时协作,开发者可以通过配置指定枢纽主机的绑定端口、项目信息、自动重连规则等参数。用户可以通过内置工具查询在线节点、发送消息、拉取历史消息,也可以通过命令行管理项目、连接枢纽、查看状态。适合需要搭建多 Agent 协作网络的 DSH 用户使用,支持持久化连接记录和自动重连。
该插件采用 MIT 许可证开源,目前存在一些已知限制:仅支持在线接收消息,不支持离线投递和持久化成员名册;单个客户端一次只能连接一个枢纽;投递结果仅存在内存中不持久化;入站附件默认存储在系统临时目录。使用时需要注意不要将枢纽暴露在公网或不可信网络中,因为当前枢纽不对调用者做身份验证。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-a2a(dpskh/dsh-a2a)
仓库:https://github.com/dpskh/dsh-a2a
本站详情页:https://www.yhbd.top/plugins/dpskh-dsh-a2a/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 11 · 最近提交 2026-08-21 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 11 stars - an early-stage project星标 11,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:dpskh/dsh-a2a
把 dpskh/dsh-a2a 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
@dpskh/a2a — Agent2Agent realtime mesh for the DeepSeek Harness
English | 中文
One package, one entry plugin. Mounting @dpskh/a2a 0.3 provides the realtime A2A mesh: the hub host (ctx.a2aHub: project registry + immutable message history over the storage domain, with an optional listening hub server that also serves the realtime WebSocket), the mesh client (ctx.a2aMesh: one WebSocket presence per joined agent with serial injection), the a2a_peers / a2a_message / a2a_history tools, and the /a2a command surface. Presence is a live socket; messages are the durable record — realtime chat on a trusted private network.
Configuration
- id: a2a
name: '@dpskh/a2a'
config:
hub: # optional: run the mesh hub server
host: 127.0.0.1
port: 43123 # base bind port
maxPort: 43223 # optional: walk up on EADDRINUSE
mesh: # optional: mesh client
project: main # project to connect to (defaults to main)
agentId: main # local agent this presence belongs to
name: main # roster name; defaults to the agent id
autoConnect: true # connect when the configured agent registers
persistConnections: false # remember each session's last connection and rejoin it
reconnectMs: 500 # initial reconnect delay (doubles to 10 s)
The hub needs a routed storage backend: mount @deepseek-ai/dsh-storage, a backend (storage-json or storage-sqlite), and @deepseek-ai/dsh-storage-domain with the backend routed to the a2a domain. The entry plugin composes the hub host service (ctx.a2aHub), the mesh client (ctx.a2aMesh), and — when a mesh is configured — the tool and command plugins (cordis activates them by their inject dependencies). Removed 0.2 mesh fields (persistBindings, autoRejoin, pollIntervalMs, heartbeatMs, caps) are ignored for compatibility with copied 0.2 configs.
The mesh
- Hub (
ctx.a2aHub): authoritative project registry and the append-only message history (per-project monotonic sequences, project-scopedmessageRefs likedemo:42). The optional hub server serves the project/history routes over HTTP and the realtime WebSocket at/v1/connect(protocol version 3). - Presence: a presence exists if and only if one WebSocket is alive. Claimed roster names are unique per project; a same-named later connection is a new presence and inherits nothing. Hub restart clears every presence while the message history survives.
- Messages: immutable, idempotent by
messageId(retrying the same body returns the original message; reusing the id for different content fails withMessageIdConflictError). Direct sends resolve the recipient's current presence at accept time and fail immediately when absent; project broadcasts freeze the current presence snapshot (excluding the sender) and never backfill later joiners.replyToprovides causality inside the same project history. Text and attachments share a 4 MiB decoded-content budget; up to eight attachments per message travel as base64 (gzip when it shrinks). - Delivery: in-memory outcomes reported to the sender —
deliveredproves the receiving client injected the message,faileda materialization/injection error,disconnecteda socket that closed before acknowledging. - Mesh client (
ctx.a2aMesh): each joined agent owns one connection (project + roster name). Inbound messages are pushed serially in hub-assigned sequence and injected into the owning agent's session (follow-up turn when idle, plain context when busy), with attachments materialized under the system temp dir. Unexpected drops auto-reconnect with backoff while the connection is desired; a rejected claim (name in use, unknown project, protocol mismatch) stops wanting the connection.a2a/presence-changedevents announce local connect/disconnect;a2a/deliveryevents announce delivery outcomes. Disposed agents drop their presence automatically. WithpersistConnections, each successful connect recordsagentId → (project, name)in thea2a-connectionssettings namespace, and an agent registering with a stored record rejoins it — the GUI path, where session ids are dynamic and no staticagentIdis configured; an explicit disconnect forgets the record. Each membership also tracks a local conversation-activity view (idle/conversing/working, inferred from sends, deliveries, and inbound messages — no activity state crosses the hub wire) and exposes it instatus()for the connection-graph animations; activity transitions emita2a/changeso the browser refreshes live.
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
lehhair/dsh-split-panes