Skip to content
dsh.fish
Bundle

dsh-subagent-setting

Configure the default provider, model and reasoning effort for new subagents from the Web settings page; optionally apply changes to existing idle subagents. · DSH 插件:在设置页可视化配置 subagent 默认的提供商、模型与思考等级,新创建的 subagent 立即生效,可选的让空闲 subagent 也跟随新设置。

Source
marshfolx
stars
1 stars
License
MIT
Updated
Updated 14 days ago

Readme

# 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](pics/README/image-20260821012945376.png)

## 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:

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

Open **Settings → Subagent Model** to configure the defaults.

## License

MIT

Install

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

Profile: web

  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source