dsh-subagent-setting
Agent 与会话 活跃维护

dsh-subagent-setting

marshfolx/dsh-subagent-setting

该工具支持在DeepSeek Harness网页设置页面自定义子代理的默认服务供应商、调用模型及推理力度参数,无需手动修改配置文件,配置生效后子代理将自动应用对应参数运行。

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

dsh-subagent-setting

Configure the default provider / model / reasoning effort for subagents from the DeepSeek Harness Web settings page. Newly created subagents pick the values up immediately; an optional switch also lets later settings changes reach subagents that were created earlier.

image-20260821012945376

Features

  • Settings page (Settings → Subagent Model): pick provider, model and reasoning effort from the live model catalog — no manual YAML editing.
  • New subagents use the new settings immediately — the override is applied per child at creation time.
  • Optional live propagation (Apply setting changes to subagents created earlier): when enabled, a settings change also updates every existing idle subagent — the new values apply on its next request (a running subagent picks them up from the next step). When disabled, only subagents created after the change are affected.
  • Empty provider / model / effort means inherit the parent — the subagent keeps whatever the parent session uses.
  • WebView-friendly custom dropdowns: the settings form uses fully controlled custom dropdowns instead of native <select> popups, so it behaves the same in the browser and inside a Tauri (WebView2) shell.

How it works

  • Host (lib/index.js) registers the dsh-subagent-setting settings namespace and, on agent/created for every agent whose session header has origin: 'subagent', installs an agent-scoped agent/request waterfall listener that rewrites the call config to the configured route.
  • The listener reads the child's live route holder, so applyToIdle only needs to replace that holder to re-point an existing child on its next request.
  • Client (client/client.js) renders the settings section and talks to the official connection API (settings.describe / settings.replace /llm.models).

Install

Install the package into your profile, then add it to the bundle list:

dsh plugin --profile web add github:marshfolx/dsh-subagent-setting

Open Settings → Subagent Model to configure the defaults.

License

MIT