DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

sogeisetsu /

sogeisetsu/subagent-preset-select

仅 Topic 仓库

Adds a Lead Agent preset that lets the main agent assign a different preset to each spawned subagent, plus Worker and Reader teammate presets.

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@d4ed4d7c

中文

subagent-preset-select

npm version

Adds the Lead preset — it breaks the rule that a subagent only inherits its parent's preset: when Lead runs as the root agent, its subagent tool takes an agent_preset parameter and can assign a different preset to each child.

Two teammate presets ship with it: the writable Worker and the read-only Reader.

Requires DSH 0.2.2-rc.5 Desktop (DeepSeek Harness).

Lead vs standard

lead changes one thing in the standard preset: its subagent tool can assign a different preset to each child. Everything else — persona, instructions, tools, skills, and markets — is identical to standard. Think of it as an enhanced standard that can pick a preset for every subagent.

standard (built-in) lead (this bundle)
child preset inherits the parent's preset chosen per child via agent_preset
agent_preset values — worker, reader, cordis (configurable)
everything else the standard composition identical to standard
use it for default sessions sessions that delegate with a chosen preset

Assignable preset pool

Preset Edits files Runs commands Use it for
worker yes yes delegated implementation, tests, and reviews
reader no no read-only investigation and reporting
cordis (Creator mode) yes yes a child that develops plugins in Creator mode

The pool comes from the allowedAgentPresets field in the lead declaration. By default it holds worker, reader, and cordis, and a JSON file beside the profile can replace it with your own list — see Change the assignable preset pool. A preset must appear in that pool to be assignable.

Installation

DeepSeek Harness UI (recommended)

  1. Open Plugins in the sidebar and click Add plugin.
  2. Paste one of these and confirm:
    • npm: dsh-subagent-preset-select@latest — or pin a version, e.g. dsh-subagent-preset-select@1.5.0.
    • GitHub: https://github.com/sogeisetsu/subagent-preset-select.
    • A local checkout directory path.
  3. Wait until the bundle row appears and is enabled.

The UI install needs no profile name.

Command line

dsh plugin --profile desktop add dsh-subagent-preset-select@latest

--profile is required; Desktop uses the desktop profile, and another profile such as web can be named instead. The CLI only adds the package; enable or confirm the bundle row on Plugins.

Usage

Start on Lead

A session is bound to its preset when it starts, so choose Lead before the conversation:

  • Every new conversation: set Settings → Agent preset to Lead.
  • One conversation: pick Lead in the preset selector above the message box.

Sessions that are already running keep their previous preset.

Delegate with different presets

Ask for the teammate you want:

  • “Use a worker subagent to implement X and run the tests.”
  • “Use a reader subagent to investigate Y and report back.”
  • “Spawn one worker for the fix and one reader to review it.”
  • “Assign a subagent that does not inherit context, in Creator mode, to develop a plugin for what we just discussed.”

The lead calls subagent with agent_preset:

{ "prompt": "…", "agent_preset": "worker" }

Omit agent_preset and the child inherits the parent's preset.

To see which preset a child runs: open its conversation — the session header names the preset. While the parent stays on screen, hover the subagent catalog in its header: the popup lists every direct child with its preset at the bottom (<subagent name> · <preset id>). The catalog's own rows cannot show it — they are shipped markup with no per-row extension point.

Change the assignable preset pool

Two separate things: a custom preset must be declared (that still needs a bundle), while which presets lead may assign comes from a small JSON file beside the profile. The bundle-override route stays as the fallback when the pool has to live inside a versioned bundle.

1. Declare a custom preset

A preset is an @deepseek-ai/dsh-agent-preset declaration. Its config requires id (lowercase letters, digits, and hyphens) and plugins (which may be empty); name, description, and order are optional:

- insert:
    - id: preset-my-reviewer
      name: '@deepseek-ai/dsh-agent-preset'
      config:
        id: my-reviewer
        name: My reviewer
        plugins: []

Install the bundle that declares it from Plugins → Add plugin, then wait until its row is enabled.

2. List the ids in lead-presets.json

Create lead-presets.json in the profile directory — for Desktop, ~/.dsh/profiles/desktop/lead-presets.json — holding a JSON array of preset ids:

["worker", "reader", "cordis", "my-reviewer"]
  • The file replaces the built-in pool, so list every id you want to keep. Without the file the pool stays worker, reader, cordis.
  • Only ids made of lowercase letters, digits, and hyphens are used; duplicates are dropped and the order is kept.
  • A missing file, broken JSON, a non-array, an empty array, or a file with no usable id falls back to the default pool — DSH still starts.
  • The pool is read when this bundle's row mounts: toggle the bundle off and on in Plugins (or restart DSH), then start a new conversation.

The file is profile state, not package content, so upgrading the bundle does not reset it.

Fallback: override the lead declaration with a bundle

Pick this route when the pool must be reproducible from a repository rather than from profile state. In DSH's patch rules, an override replaces the whole config — it is never deep-merged — so the bundle must carry the complete preset-lead declaration and change only the allowlist line. Copy it first:

cp lead/preset.patch.yml ../my-lead-extended/cordis.patch.yml

(For an installed package, copy node_modules/dsh-subagent-preset-select/lead/preset.patch.yml from the same profile directory.)

The bundle only needs two files:

my-lead-extended/
├── package.json
└── cordis.patch.yml

package.json:

{
  "name": "@you/lead-extended",
  "version": "1.0.0",
  "private": true,
  "type": "module",
  "dsh": { "bundle": { "patch": "./cordis.patch.yml" } }
}

In cordis.patch.yml, replace the allowedAgentPresets line — the copied !!js expression reads the JSON file above; swap it for a literal when the list should live in this bundle instead — and add the custom preset's declaration to the same insert list:

allowedAgentPresets: [worker, reader, cordis, my-reviewer]

Then install that directory from Plugins → Add plugin. A declaration with the same id overrides this bundle's preset-lead, so it takes effect in the next new conversation. Keep this bundle installed; it still provides worker, reader, and cordis. A literal allowlist here ignores lead-presets.json.

Contributing

Development, repository layout, and the offline checks are covered in CONTRIBUTING.md.

License

MIT — see LICENSE. © 2026 sogeisetsu

—/ 5

暂无评分

需要先验证清单

Commit d4ed4d7c3351

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于