adlternative/dsh-subagent-qoder-cloud ↗★ 0
dsh-subagent-qoder-cloud
Qoder Cloud Agent subagent provider for DeepSeek Harness
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗dsh-subagent-qoder-cloud
DeepSeek Harness (dsh) subagent provider — 将任务委派给 Qoder Cloud Agents 执行。
安装
dsh plugin --profile web add github:adlternative/dsh-subagent-qoder-cloud
然后编辑 ~/.dsh/profiles/web/cordis.patch.yml,添加插件注册(详见 INSTALL.md)。
零配置启动
只需一个环境变量 QODER_CLOUD_PAT,插件自动完成:
- 查找/创建 Cloud Agent("深度研究"、"仓库分析")
- 查找/创建 Cloud Environment(首个 cloud + unrestricted)
- 根据 prompt 内容自动路由到合适的 agent
export QODER_CLOUD_PAT="pt-your-token-here" # 从 https://qoder.com/cloud/secrets 获取
dsh --profile web --patch ./qoder-cloud-patch.yml
自定义配置
用户可以指定自己的 agent 和 environment:
# qoder-cloud-patch.yml
- insert:
- id: subagent-qoder-cloud
name: /path/to/dsh-subagent-qoder-cloud/src/index.js
config:
# ─── 认证 ───
patEnv: QODER_CLOUD_PAT # 环境变量名(必填)
# ─── 可选:指定 Agent ───
agentId: agent_xxxxxxxxxxxx # 指定后跳过自动路由,所有任务用此 agent
# ─── 可选:指定 Environment ───
environmentId: env_xxxxxxxxxxxx # 指定后跳过自动发现
# ─── 可选:其他 ───
apiBase: https://api.qoder.com/api/v1/cloud # API 网关地址
providerName: qoder-cloud # 注册到 ctx.subagents 的名字
timeoutMs: 600000 # 单次运行超时(默认 10 分钟)
- id: tool-subagent
config:
provider: qoder-cloud
toolName: subagent
backgroundMode: one-shot
maxDepth: provider-managed
配置优先级
| 配置项 | 指定时 | 未指定时(默认行为) |
|---|---|---|
agentId | 所有任务固定用该 agent | 根据 prompt 自动路由:含 GitHub URL → "仓库分析",其他 → "深度研究" |
environmentId | 固定用该 env | 自动查找首个 type=cloud + network=unrestricted 的 env;没有则创建 |
patEnv | 从指定的环境变量读 PAT | 默认读 QODER_CLOUD_PAT |
apiBase | 用指定地址 | https://api.qoder.com/api/v1/cloud |
timeoutMs | 用指定超时 | 600000ms (10 分钟) |
自动路由规则
当 agentId 未指定时,插件根据 prompt 内容选择 agent: