dsh-subagent-response-promoter
Agent 与会话 活跃维护

dsh-subagent-response-promoter

JachinShen/dsh-subagent-response-promoter

轻量级Cordis宿主侧插件,可优化后台可续跑子代理的响应输出质量,无需额外复杂配置,开箱即用体验流畅。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:JachinShen/dsh-subagent-response-promoter
git clone https://github.com/JachinShen/dsh-subagent-response-promoter.git
git clone git@github.com:JachinShen/dsh-subagent-response-promoter.git
README.md main

dsh-subagent-response-promoter

A small Host-side Cordis plugin for DeepSeek Harness.

Continuable background subagents already wake their parent when an activation settles. If a parent is busy, the runtime places the manager-authored subagent-settled response in the next safe Agent step. This plugin stably promotes those responses ahead of ordinary context in that step, so the parent handles child callbacks first without polling or interrupting an in-flight model/tool call.

The built-in send_message tool submits a coordinator relay as the child's next turn. This plugin moves that relay to the child's next-step inbox while preserving the original wake, so a running child receives it at its nearest later step boundary instead of waiting for its current turn to finish.

Behavior

Given one proposed Agent step:

ordinary A, child response A, ordinary B, child response B

The model receives:

child response A, child response B, ordinary A, ordinary B

A coordinator relay inserted into next-turn is durably removed and reinserted into next-step. The relocation does not cancel an active model request or tool call; it becomes visible only when the Agent reaches a safe step boundary. Other follow-up messages retain their ordinary next-turn behavior.

Install in a DSH profile

Add the repository as a profile dependency and bundle:

{
  "dependencies": {
    "dsh-subagent-response-promoter": "github:JachinShen/dsh-subagent-response-promoter#v0.2.0"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "dsh-subagent-response-promoter"
      ]
    }
  }
}

Then reinstall that profile and restart its DSH process. The package's cordis.patch.yml inserts the Host plugin automatically.

Development

npm test

License

MIT