ryubyte/dsh-a2a 预览 preview

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使用入站功能需手动注入执行器,否则入站任务会被拒绝执行。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 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)
连接的 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 →

← 上一个 Prev dsh-pdf-mineru 下一个 Next dsh-trajectory-governor →