dsh-plugin-subagent-manager
Agent 与会话 活跃维护

dsh-plugin-subagent-manager

greatwhitesharklab/dsh-plugin-subagent-manager

支持查看完整模型目录,可按绑定的服务商或模型快速启动子智能体,同时支持枚举当前会话下的所有子智能体,实现模型优先的子智能体全流程管理,操作便捷高效。

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

dsh-plugin-subagent-manager

English · 中文

Subagent routing convention for the DeepSeek Harness, as a profile-mounted static plugin. Two focused contributions:

  1. Routing prompt — a systemPrompt.context section telling every session: analysis and implementation are delegated to subagents on the cheap/fast worker model; design decisions and final acceptance stay with the main model. Without it, the native tools' generic descriptions leave this discipline to chance.
  2. subagent_run — the only delegation tool that can pin a provider/model per call (the native subagent / subagent_fork expose no model parameters). Defaults to the worker route; explicit provider/model overrides it per task (e.g. send one job to glm-5.3 or deepseek-v4-pro).

Deliberately NOT included (covered elsewhere): the default model routes for the native tools live in the profile's cordis.patch.yml (tool-subagent / tool-subagent-fork rows); listing children is covered by the native list_agents.

⚙️ Configuration

Edit CONFIG at the top of src/index.js and restart dsh web:

const CONFIG = {
  workerProvider: 'deepseek-official',   // cheap/fast route for analysis + implementation
  workerModel: 'deepseek-v4-flash',
  mainProvider: 'deepseek-official',     // fallback label; live value follows agentDefaultModel
  mainModel: 'deepseek-v4-pro',
}

🚀 Install (profile-mounted, loads on every boot)

  1. link: dependency in ~/.dsh/profiles/web/package.json, then pnpm install there.
  2. Loader row in the profile's cordis.patch.yml:
    - insert:
       - id: subagent-manager
         name: dsh-plugin-subagent-manager
  3. Restart dsh web. Verify with dsh web --dump-config.

🔒 Notes

  • Optional services (subagents, agentDefaultModel, systemPrompt) are read lazily at use time — boot ordering can never strand them as undefined.
  • UI strings are in Simplified Chinese; the logic is locale-agnostic.

📦 Files

src/index.js    Static host plugin — routing prompt + subagent_run (per-call model override)

License

MIT