ryubyte/dsh-a2a
DeepSeek Harness (DSH) 插件:提供 A2A 服务与连接面板
Project Overview项目介绍
This is a native DeepSeek Harness (DSH) plugin that implements the Linux Foundation’s Agent2Agent (A2A) version 1.0 protocol, supporting both outbound client mode and inbound server mode. You can install it with a single command dsh plugin --profile <your-profile> add @ryubyte/dsh-a2a then restart DSH to activate it, no manual configuration changes are required after installation. In client mode, it discovers remote agents via their AgentCard, maps each remote skill to a native DSH model tool, and executes remote tasks via A2A JSON-RPC. In server mode, it exposes your local DSH instance to other A2A-compliant agents and hosts all standard A2A discovery and invocation endpoints.
The plugin includes a built-in web UI configuration panel that lets you complete all setup without editing the underlying a2a.json configuration file manually. For outbound client use, you can add, edit, remove, reconnect to or disable remote agents, and all changes are automatically saved to the a2a.json file in your active DSH profile directory. For inbound server use, you can edit your service identity, toggle the service on or off, configure authentication, and all changes take effect immediately without a restart. This plugin is built for users who need to connect their local DSH instance with other A2A-compliant agents across the network.
This plugin is released under the open source MIT license, and it has a few key caveats for production use. All Bearer tokens (for authenticating outbound connections and protecting inbound endpoints) are stored as plain text in a2a.json, so you must ensure proper file system permissions for your profile directory. If you expose your inbound A2A service to the public internet, you must add a TLS reverse proxy and configure a shared Bearer token for authentication, and you should never expose an unauthenticated service to untrusted networks. If you use a minimal DSH profile without a preconfigured agent loop, you will need to manually inject an executor or inbound tasks will be rejected.
这是一个原生DeepSeek Harness(DSH)插件,实现了Linux基金会的Agent2Agent(A2A)v1.0协议,同时支持客户端出站和服务端入站两种模式。客户端模式可通过AgentCard发现远程Agent,将每个技能映射为DSH模型工具,通过A2A JSON-RPC执行远程任务。服务端模式将当前DSH实例暴露给其他Agent,提供标准A2A发现与调用端点,可通过一行dsh插件命令安装,重启DSH后即可生效。
插件自带可视化配置面板,所有配置都可在UI中完成,无需手动编辑配置文件。出站场景可添加、编辑、删除、重连或禁用远程Agent,配置自动持久化到对应profile目录的a2a.json中;入站场景可一键编辑服务身份、开启下线服务、配置鉴权,修改即时生效。适合需要让DSH和其他符合A2A规范的Agent互联互通的用户使用。
插件遵循MIT开源许可,配置文件以明文存储Bearer令牌,用户需自行保证文件权限。对外暴露入站服务时,建议添加TLS反向代理并配置共享Bearer令牌鉴权,不要向不受信网络开放无鉴权的服务。最小profile使用入站功能需手动注入执行器,否则入站任务会被拒绝执行。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-a2a(ryubyte/dsh-a2a)
仓库:https://github.com/ryubyte/dsh-a2a
本站详情页:https://www.yhbd.top/plugins/ryubyte-dsh-a2a/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 12 · 最近提交 2026-09-30 · 主语言 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 更稳。
- 12 stars - an early-stage project星标 12,属于早期项目
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:ryubyte/dsh-a2a
把 ryubyte/dsh-a2a 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-a2a
English | 中文文档
一个 DeepSeek Harness (DSH) 插件,实现 Agent2Agent (A2A) 协议 v1.0(Linux 基金会,a2aproject/A2A,Apache-2.0)。
让一个 DSH 实例成为完整的 A2A 双端节点:
- Client 模式(出站)——通过远程 Agent 的 AgentCard 发现它,把每个 skill 映射为 DSH 模型工具(
a2a__<name>__<skill>),通过 A2A JSON-RPC 执行远程任务。 - Server 模式(入站)——把本 DSH 暴露给其他 Agent:在 DSH webserver 上提供
/.well-known/agent-card.json与 JSON-RPC 端点(SendMessage、GetTask、ListTasks、CancelTask、基于 SSE 的SendStreamingMessage)。
安装
一行命令装进 profile,重启即生效:
dsh plugin --profile web add @ryubyte/dsh-a2a
dsh --profile web
dsh plugin 会把包装进 profile 并自动加入插件层(本包在 package.json 里声明了 dsh.bundle.patch),无需手动改任何配置。
截图
| 连接的 Agent(本 DSH 作为客户端) | 对外服务(本 DSH 作为 Agent) |
|---|---|
![]() |
![]() |
功能
协议能力(A2A v1.0)
- 发现:
GET /.well-known/agent-card.json(优先 well-known,配置的 URL 兜底) - 单次调用:
SendMessage、GetTask、ListTasks、CancelTask、GetExtendedAgentCard - 流式:
SendStreamingMessage(SSE)/SubscribeToTask,含TaskStatusUpdateEvent+TaskArtifactUpdateEvent - 任务生命周期:
SUBMITTED → WORKING → COMPLETED / FAILED / CANCELED / REJECTED / INPUT_REQUIRED / AUTH_REQUIRED - 鉴权:出站按 Agent 配置 Bearer Token(
Authorization: Bearer …);入站可选共享 Bearer Token 保护端点——配置后 AgentCard 声明bearerAuth安全方案,未带/错误 token 的请求返回 401(单次调用与 SSE 流均生效) - 类型:
Task、Message、Part(text/raw/url/data)、Artifact、AgentCard、安全方案、扩展
连接面板(设置 → A2A 连接)
面板按角色分为两个 tab,全部配置都可在 UI 里完成,无需手改 a2a.json:
「连接的 Agent」(本 DSH 作为客户端,出站)
- 列出已连接的远程 Agent(名称、连接状态、AgentCard URL、技能/工具数、最近活动),展开可看每个 skill 的名称/标签/描述;每个 Agent 支持 重连 / 设置 / 禁用 / 删除(已禁用的 Agent 显示为灰化占位卡,操作按钮变为 启用)。
- 设置:就地编辑该 Agent 的 超时(timeoutMs)、技能拆分(mapSkills)、Bearer Token,保存后自动以新配置重连生效。
- 添加 Agent:填 AgentCard URL(可选 Bearer Token)→「导入」预览远端名称/描述/技能 →「连接」。配置写回
a2a.json。
「对外服务」(本 DSH 作为 Agent 对外,入站)
- 服务身份可视化编辑:只读展示服务名/描述/版本、端点、Agent Card URL(一键复制)与 Skills;点「编辑」就地改这些字段并完整增删改 Skills,保存即时重建 AgentCard 生效(无需重启)。
- 引导式初始化:全新安装(无
a2a.json)时,本页显示预填好合理默认值的表单,用户按需修改后点「创建并上线」即可发布服务——一步生成a2a.json并启动。 - 上线 / 下线 开关;显示 入站任务由谁执行(自定义 executor / 本 DSH agent 会话 / 未配置)。
- 入站鉴权:设置或清除保护入站端点的共享 Bearer Token(持久化到
a2a.json,实时生效)。 - 入站连接:谁在调用本 DSH(来源、地址、首/末次连接、任务数、流式标记),支持关闭。
- 面板每 3 秒自动刷新;
/a2a/api提供 JSON 快照与控制接口,受 loopback/same-origin 保护(token 值不会通过快照回传,只暴露「是否已配置」)。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →


biociao/dsh-science
amlyczz/dsh-lark-link
Walvez/dsh-codex-sync
aiworkskills/dsh-wechat-article
LAN-TINA-WS/dsh-windows-shell-policy