Noelune/dsh-agent-relay

Plugin插件 Native原生 ⭐ 3 MIT Subagents & Orchestration子代理与编排

DeepSeek Harness 的本地多智能体协作中继——为 dsh、Codex、Claude Code 和 Hermes 提供基于 HMAC 认证的回环消息代理。

Project Overview项目介绍

dsh-agent-relay is a native communication relay bus plugin built specifically for DeepSeek Harness (DSH) to enable local multi-agent collaboration. It fills a gap in existing agent frameworks that lack standardized peer-to-peer communication between independent agents running on the same host. It supports cross-agent collaboration between DSH, Codex, Claude Code, Hermes and other local agent clients, providing an HTTP broker, native DSH Cordis plugin, multi-language adapters, and CLI tools. Developers can use it to quickly build a local fleet of collaborating agents without complex infrastructure setup.

This relay uses a loopback-first security architecture that binds the broker only to 127.0.0.1 by default, eliminating cloud deployment costs and reducing the attack surface from external networks. All HTTP requests are verified via HMAC-SHA256 signatures, with built-in protections against timestamp replay attacks, 5-minute lockouts after 5 consecutive authentication failures, and per-IP rate limiting. It also includes reliable delivery features like incremental polling, 7-day TTL, local SQLite or JSONL persistence, exponential backoff retries, and idempotent message deduplication. Messages are only stored locally, never logged or sent to third-party telemetry, so sensitive data never leaves the host.

To install and deploy dsh-agent-relay for DSH, you can run the one-line command dsh plugin --profile web add dsh-agent-relay to trigger automated end-to-end deployment. DSH will automatically generate a secure HMAC key, start the broker process on the local port, configure credentials for all supported agents, and run a self-check to verify the communication link. The project requires Node.js 20 or newer, recommends DSH 0.1.0-rc.6 or newer, and optional Python adapters need Python 3.10 or newer, with zero external npm dependencies for the core broker. It is released under the open-source MIT license, allowing commercial use, and community contributions are welcome.

dsh-agent-relay 是 DeepSeek Harness 原生的本地多 Agent 轻量级通信中继总线组件,用于解决同一宿主机上多个独立 Agent 之间缺乏标准化对等通信机制的问题,支持 DSH、Codex、Claude Code 等多个 Agent 跨平台协作。它提供了 HTTP 消息代理、原生 DSH Cordis 插件、多语言客户端和 CLI 辅助工具,帮助开发者快速搭建本地多 Agent 协同工作链路。

它采用解耦设计,仅专注于消息路由与可靠投递,不侵入 Agent 自身的推理与决策逻辑。默认绑定本地回环地址 127.0.0.1:19121,全程使用 HMAC-SHA256 签名校验,内置重放防护、鉴权失败安全锁定和单 IP 速率限制机制。所有消息仅保存在本地 TTL 队列,数据不会离开宿主机,隐私保护设计到位。

该项目要求 Node.js ≥ 20 版本才能运行 Broker 服务、CLI 客户端和 DSH 插件,推荐使用 DSH 0.1.0-rc.6 及以上版本,可选的 Python 客户端仅要求 Python ≥ 3.10,整体零额外 npm 依赖。它支持 DSH 全流程自动部署,也支持手动命令行部署,采用 MIT 开源许可,允许商业使用,欢迎社区提交 Issue 与 Pull Request。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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 dsh-agent-relay

把 Noelune/dsh-agent-relay 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

⚡ dsh-agent-relay

Local Multi-Agent Collaboration Relay for DeepSeek Harness & Local Fleets

DeepSeek Harness 本地多 Agent 轻量级通信中继总线 — 基于 HMAC-SHA256 鉴权与 Loopback 优先架构的安全消息路由组件

npm version License: MIT Zero Dependency Loopback First Security HMAC

产品定位与设计动机 • 核心技术特性 • 系统架构与流程 • Agent 全流程自动部署 • Wire Protocol 规范


📌 产品定位与设计动机

现有的 Agent 框架多数专注于单体 Agent 内部的推理链条与工具调用(Task Execution),但缺乏标准化的 Agent 间对等通信机制(Peer-to-Peer Inter-Agent Communication)。当在同一宿主机上并行运行 dsh、Codex、Claude Code 与 Hermes 等多个独立 Agent 时,代理之间无法直接发起代码评审(Code Review)、事实交叉验证或协作任务分发。

dsh-agent-relay 旨在填补这一架构空白:它是一个完全解耦、轻量且自建的 Agent 通信总线(Communication Bus),包含 HTTP Broker、dsh Cordis 插件、JS/Python 客户端与 CLI 辅助工具,助力开发者构建 Agent 舰队协同链路。


🚀 核心技术特性

  • 通信与编排解耦 (Decoupled Transport)
    区别于强侵入性的工作流编排引擎(Orchestration Frameworks),Relay 仅专注于消息路由与可靠投递,保持 Agent 内部推理与决策逻辑的完整解耦。
  • Loopback 优先的安全架构 (Loopback-First Architecture)
    Broker 默认仅绑定本地回环地址 127.0.0.1:19121,免去云端部署成本与外部网络攻击面风险。
  • HMAC-SHA256 鉴权体系 (Cryptographic Verification)
    所有接口调用均经由 HMAC-SHA256 签名校验,内置 300 秒时间戳重放防护与常量时间比较;投递层再以「每次认领一枚租约令牌」约束确认与续租。速率限制与鉴权失败锁定属于已删除的 v1 世代,现在没有这两道闸,所以边界由「只绑回环」承担。
  • 高可靠投递与容错机制 (Reliable Delivery & Idempotency)
    请求默认留存 7 天、SQLite 单一路径持久化、租约投递 + 令牌化确认、服务端长轮询唤醒(落库即达)、失败/过期由服务端定时扫描自动回发未送达通知,并以幂等键去重。
  • 隐私保护设计 (Privacy-by-Design)
    消息体只为可靠投递保存在本机 TTL 队列中,Broker 与参考客户端不会把消息体写入应用日志或遥测;默认回环部署时数据不离开本机。
  • dsh 一级工具无缝集成 (First-Class Cordis Plugin)
    针对 DeepSeek Harness 提供原生 Cordis 插件,注册 agent_relay_send / agent_relay_status / agent_relay_history / agent_relay_peers / agent_relay_retry 模型工具,自适应退避轮询 + per-root relay 会话 + read/write 权限预设,并提供图形化侧边栏状态面板。
  • v2/v3 线协议(与自用版 Python 客户端字节兼容)
    canonical-JSON 签名、snake_case 信封、execution mode、per-mode ACL、租约令牌、undelivered 通知;v1 世代已于 2026-09-19 移除。

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-voice-assistant 下一个 Next dsh-deepseek-quota →