Community plugin

00wz / dsh-subagent-forge

Configurable subagents for DeepSeek Harness: per-child system prompt, model allowlist, reasoning effort and an explicit delegation grant.

  • JavaScript
  • MIT
  • 1 stars
  • Nov 22, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-subagent-forge is a DSH plugin published from the 00wz/dsh-subagent-forge repository.

  • Listing statusManifest verified
  • Manifest checkedNov 19, 2026
  • Packagedsh-subagent-forge
  • Package version1.3.0
  • DSH engine>=0.2.1
  • Source commit7ec7474
  • Repository createdNov 7, 2026

Capabilities and topics

agent-orchestrationai-agentscordiscordis-plugin
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

Cached versionView on GitHub

Subagent forge

license: MIT dsh-plugin

Replaces the built-in delegation tools with one configurable tool: the calling agent writes the child's system prompt, optionally its first user message, picks its model from a configurable allowlist (with descriptions the agent reads), sets a reasoning effort, and decides whether that child may start subagents of its own. The allowlist is seeded from the providers the profile configures, so it always matches the installation.

# from a GitHub repository
dsh plugin --profile <profile> add "github:<owner>/dsh-subagent-forge"

# from a local checkout
dsh plugin --profile <profile> add /absolute/path/to/dsh-subagent-forge

Requires DeepSeek Harness >=0.2.1 (engines.dsh). No build step: the package ships plain ESM and declares no runtime dependencies or peer dependencies.

Tools

Two symmetric tools replace the built-in pair:

ToolProviderChild
spawn_agentspawnfresh session, gets your system_prompt
fork_agentforkseeded with this conversation's completed turns; inherits the system prompt and tool set, so it takes no system_prompt

Shared parameters:

ParameterMeaning
descriptionshort label, required
promptfirst user message / task; omitted uses emptyPrompt
system_promptonly spawn_agent: durable role and rules for this child
model_idone of the model_id values listed in the tool description (provider/model); pass the value verbatim, not its description. Omit to inherit the parent route
reasoning_effortreasoning effort advertised for that model (effort is an alias)
can_delegaterequired: whether the child may start its own subagents. Pass true when the task may need decomposition; pass false only for a terminal, single-shot task
cwdinitial child working directory

model remains accepted as a deprecated alias of model_id, for prompts and scripts written before the rename.

Recursion

There is no depth counter. Delegation is gated per child by the can_delegate flag the parent states on every call; a child that receives the grant decides the same question for its own children. Children without the grant also lose workflow, because it can start agents indirectly.

The flag bounds recursion; it is not a default to opt out of delegation. A task that spans files, needs research, or would be split by the parent itself should give the child the grant, and that child decides in turn whether to delegate.

The plugin hides the delegation tools from a child without the grant where the runtime allows it, and refuses the call otherwise.

Built-in delegation is blocked twice

The plugin replaces the whole tool surface of @deepseek-ai/dsh-tool-subagent: subagent, subagent_fork and list_subagent_models (REPLACED_TOOLS in index.js). One list, one mechanism:

  1. tools.guard denies execution of those names in every scope, including steps whose tool list was resolved before this plugin loaded.
  2. tools.restrict hides them from each agent's tool list, so the model does not see a tool it cannot use.

The route-discovery tool is part of that surface: it reports the built-in tool's routes, which are not this allowlist, so the model would get a second, disagreeing answer right after reading the tool description. The allowed routes live in the spawn_agent / fork_agent descriptions.

blockedTools adds extra names for a deployment that has another delegator to replace; the replaced surface itself is not configurable. The single switch is blockBuiltinDelegation, which turns the guard and the restriction off.

Settings

The page lives in Settings → Built-in plugins → Subagent forge (a tab in the Plugins settings section). It edits the model allowlist: one row per route with the description the agent reads when it chooses.

On the first start the allowlist is seeded from the providers the profile configures, so a fresh install can choose models immediately and never offers a route the installation does not have. A model whose catalog entry has no description is seeded with a one-line summary of what the catalog proves: modalities, context window and output limit, for example text+image · 1M context · 384k output. A model that declares no input is treated as text-only, never as image-capable. The model name is not used, so a route whose provider states nothing gets text only rather than a copy of its id. That snapshot is persisted: edit it on the page, press Add models from my providers to re-read the live catalog, or delete $DSH_HOME/subagent-forge/config.json to seed again on the next start. A blank row is dropped and a repeated route keeps its first row.

Edits are validated, applied to the live tool at once, and stored in $DSH_HOME/subagent-forge/config.json, which takes precedence over the bundle patch on the next start. A saved file always wins — including an empty list, which is honoured as-is: the tool then only inherits the parent route. The write path is:

page → POST /subagent-forge/config (loopback only)
     → reconfigure(value): sanitize → file → re-register the tool
page → GET /subagent-forge/catalog
     → discoverModels(ctx): llm.listProviders → llm.listModels

The route is registered by the plugin itself through the optional webServer service, so a headless profile keeps the tools and loses the page.

Durability

Each child's spec is stored as JSON under $DSH_HOME/subagent-forge/children/<sessionId>.json and re-applied when the child resumes (the plugin re-registers the persona section and the restrictions on agent/created, which fires for resumes too). Losing that directory does not break a child; it only loses the custom persona on later resumes.

Repository checks

npm run check   # encoding guard for shipped text files
npm test        # behaviour tests for the plugin

Both scripts use Node built-ins only; neither test/ nor scripts/ is part of the published package.

Known limits

  • The child's composition (tool set) is inherited from the parent; only the persona and the delegation grant are overridden per child.
  • workflow is not blocked for agents that hold the grant.
  • The seeded allowlist is a snapshot of the providers registered at that moment; after changing the provider configuration, run the discovery again or delete config.json.
  • Changing code of the installed package needs an application restart; the settings page itself needs one page refresh after installation.
  • After installation the browser must be reloaded once to load the client half.

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/00wz/dsh-subagent-forge)