DeepSeek Harness Plugin

kouyichi/dsh-plugins#dsh-a2a

Stars ★ 2 Downloads (30d) 237 Category Tools & Capabilities Added 2026-08-21 npm dsh-plugins-a2a

Native A2A (Agent-to-Agent) server for dsh: expose this dsh as a callable agent over HTTP with JSON-RPC tasks.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-plugins-a2a

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:kouyichi/dsh-plugins#path:/dsh-a2a

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

把 dsh 暴露为 A2A v1.0(Agent-to-Agent,JSON-RPC over HTTP)agent——其他 agent(Hermes 等)可直接调 tasks/send 让本 dsh 干活。生态空白:截至 2026-08-16 无第三方 A2A server(官方示例只覆盖 ACP/JSON-RPC)。

工具

工具 功能
a2a_start 启动 server(默认 127.0.0.1:9917;require_token=true 加 Bearer 认证)
a2a_stop / a2a_status 停止 / 状态
a2a_tasks 任务列表与状态

协议

  • tasks/send {id, message:{role, parts:[{type:"text",text}]}} → Task
  • tasks/get / tasks/cancel / tasks/list / agent/get

每个任务独立 agent 执行(会话落盘可审计)。token 优先读 DSH_A2A_TOKEN 环境变量;DSH_A2A_AUTOSTART=1 可在启动时自动开。

示例(curl)

curl -s -X POST http://127.0.0.1:9917 -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tasks/send","params":{"id":"t1","message":{"role":"user","parts":[{"type":"text","text":"运行 echo hello"}]}}}'

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.