rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:MicroWearld/dsh-a2a-server
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
独立的 DeepSeek Harness A2A Server 插件。
将 DSH agent 暴露为 A2A(Agent2Agent)协议端点:
http://127.0.0.1:4123/.well-known/agent.jsonhttp://127.0.0.1:4123/a2aSendStreamingMessage/metricspersistTasks + persistenceRoot)input-required approval 映射user / ROLE_USER 都支持)agentPreset + 请求体 metadata.agentPreset 覆盖)需要本机有 DeepSeek Harness 源码 checkout,并设置:
export DSH_CHECKOUT=/path/to/deepseek-harness
bash scripts/build.sh
或直接:
$env:DSH_CHECKOUT = "D:\workspace\dsh\deepseek-harness"
bash scripts/build.sh
$env:DSH_CHECKOUT = "D:\workspace\dsh\deepseek-harness"
powershell -ExecutionPolicy Bypass -File scripts/build.ps1
或:
npm run build:ps1
每次向 main 推送代码、更新 Pull Request,或手动运行 GitHub Actions 的
Build 工作流时,都会生成可安装的 npm .tgz 包。
dsh-a2a-server-<commit SHA>。dsh-a2a-server-<version>.tgz。GitHub Actions 构建产物保留 14 天;长期分发请使用 GitHub Release。
使用 DSH 官方插件装配命令:
cd D:\workspace\dsh
dsh plugin --profile desktop add .\dsh-a2a-server\
安装完成后重启 DSH Desktop(或对应 profile 的运行时)使插件加载。
说明:
dsh plugin add会将该插件写入 profile 的dependencies与bundles,并按官方装配流程加载cordis.patch.yml。
- id: a2a-server
name: 'dsh-a2a-server'
config:
path: /a2a
agentCardPath: /.well-known/agent.json
host: 127.0.0.1
port: 4123
cwd: /workspace
provider: deepseek-official
model: deepseek-v4-pro
agentPreset: standard
auth:
type: bearer
tokenEnv: A2A_TOKEN
taskTtlMs: 3600000
metricsPath: /metrics
persistTasks: true
persistenceRoot: ./.sessions
agentCard:
name: DeepSeek Harness A2A Agent
description: A DeepSeek Harness agent exposed over A2A
在 A2A SendMessage / SendStreamingMessage 请求的 params.metadata 中传入 agentPreset(或兼容别名 preset),即可覆盖全局配置:
{
"jsonrpc": "2.0",
"id": 1,
"method": "SendMessage",
"params": {
"message": {
"messageId": "req-001",
"role": "ROLE_USER",
"parts": [{ "text": "你好" }]
},
"configuration": {
"acceptedOutputModes": ["text/plain"]
},
"metadata": {
"agentPreset": "coding"
}
}
}
优先级:请求 metadata.agentPreset / metadata.preset > 全局配置 agentPreset。
AgentCard 会在 capabilities.extensions 中声明 preset 选择扩展:
{
"uri": "https://dsh.local/a2a/preset-selection",
"description": "To select an agent preset for a task, include \"agentPreset\" (or \"preset\") in SendMessage/SendStreamingMessage params.metadata.",
"required": false,
"params": {
"metadataKey": "agentPreset",
"aliases": ["preset"],
"default": "standard",
"presets": ["standard", "router-standard"]
}
}
调用方读取 AgentCard 即可知道:
params.metadata 里传 agentPreset(或 preset)params.presetsparams.default@deepseek-ai 官方包,使用无 scope 包名 dsh-a2a-server。@deepseek-ai/* 包与 @a2a-js/sdk,不依赖其他第三方插件。lib/index.js 已自包含打包 @a2a-js/sdk 等运行时依赖。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。