rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
Silasvanceneo/dsh-dynamic-multiagent
Dynamic multi-agent orchestration for DeepSeek Harness (dsh): task graphs of child agents with per-node role, model, reasoning effort, and tools, plus a settings UI and per-conversation switch.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Silasvanceneo/dsh-dynamic-multiagent
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Dynamic multi-agent orchestration for DeepSeek Harness
The conversation's model becomes a Leader that can split a task into a graph of child agents,
each with its own role, model, reasoning effort, and tool set.
English | 中文

read, grep, edit, bash, web_search, …); reviewers are read-only and return a structured verdict.| Overview | Routing |
|---|---|
![]() |
![]() |
| Models and reasoning effort | Per-conversation switch |
![]() |
![]() |
Open Plugins → Add plugin, enter dsh-dynamic-multiagent, and confirm. The plugin page appears under Installed plugins.
Installing with
dsh plugin --profile web add …on a machine with Desktop installs into the CLI'swebprofile, not into Desktop. Use the in-app installer for Desktop.
dsh plugin --profile web add dsh-dynamic-multiagent
dsh web
Open Settings → Multi-agent (多智能体).
git clone https://github.com/Silasvanceneo/dsh-dynamic-multiagent.git
cd dsh-dynamic-multiagent
npm install && npm run build
dsh plugin --profile web add /absolute/path/to/dsh-dynamic-multiagent
spawn) as ready.off for explore and a strong one with max for code-reviewer.The Leader reads the catalog, submits a plan, tells you the plan in one or two sentences, runs it, verifies the results, and reports back. Progress shows in the composer chip and on the Runs tab.
flowchart LR
U[You] --> L[Leader<br>conversation model]
L -->|dynamic_multiagent_status| C[(Models · roles<br>categories · skills)]
L -->|dynamic_multiagent_plan| G{{Task graph}}
G -->|ready nodes in parallel| A1[explore]
G --> A2[worker]
A1 -->|result| A2
A2 -->|result| R[code-reviewer]
R -->|verdict| L
L -->|verified answer| U
| Tool | Purpose |
|---|---|
dynamic_multiagent_status |
Without a run id: available models (with efforts), routing defaults, roles, categories, skills. With a run id: graph, results, events. |
dynamic_multiagent_start |
Opens a run and records the user's constraints. |
dynamic_multiagent_plan |
Validates the graph (ids, acyclic dependencies, roles, models, efforts) and returns each node's model and effort. |
dynamic_multiagent_execute |
Runs the graph through the host's ctx.subagents provider. |
dynamic_multiagent_derive_role |
Derives a specialized role that may only narrow its base role's tools, write access, and delegation. |
dynamic_multiagent_cancel |
Cancels a run and every unfinished child. |
Each child is a regular dsh subagent, so it shows up in dsh's own subagent views. It receives a role-specific prompt — not the Leader's — with its task, acceptance criteria, real tool names, write scope, and a fixed report format.
A node's effort is resolved in this order: the node's effort → the role default → the category default → the model's own default.
| Source | Where the efforts come from | On the wire |
|---|---|---|
| dsh model | ctx.llm.resolveModelInfo(), for example DeepSeek off · high · max |
the dsh adapter's own mapping |
| Custom connection, OpenAI-compatible | declared per model | reasoning_effort |
| Custom connection, Claude 4.6+ / Fable | declared per model (Suggest from id) | thinking: {type: "adaptive"} + output_config.effort |
| Custom connection, Claude 4.5 and older | declared per model | thinking.budget_tokens |
An explicit effort the model does not offer is rejected when the plan is submitted; an unsupported default is dropped with a note. dsh 0.2.x applies a child's reasoningEffort natively. dsh 0.1.x children only inherit provider, model, and output cap, so the plugin re-applies the effort on every request of that child.
| Switch | Where | Effect |
|---|---|---|
| Enable orchestration | top of the settings page | Off: no conversation gets the Leader prompt or the six tools. |
| On for new conversations | top of the settings page | Default for conversations without their own setting. |
| This conversation | Multi-agent chip next to the composer | Per-conversation override; Follow default clears it. |
When orchestration is off for a conversation, the Leader prompt section is not rendered and the tools are masked for that agent, so the model never sees them. Overrides are stored in the plugin's data directory, not in the dsh session log, so logs stay readable if the plugin is removed. Child agents never see the orchestration tools.
Settings are edited in the UI and stored in ${DSH_HOME}/dynamic-multiagent/config.json (~/.dsh by default). Deployment options go in the profile's cordis.patch.yml:
- id: dynamic-multiagent
config:
dataDir: ${DSH_HOME}/dynamic-multiagent # where config, runs, and switches live
subagentProvider: spawn # host subagent provider used for children
exposeTools: true # false hides the six tools entirely
autoInstallSkills: false
Custom connections never store secrets: credentialRef names an environment variable or dsh credential, such as RELAY_API_KEY.
| Host | Settings page | Browser ↔ host channel |
|---|---|---|
| dsh 0.1.0-rc.6 (CLI) | Settings → Multi-agent | loopback /dynamic-multiagent/* |
| dsh 0.2.1-rc.3 (Desktop) | Plugins → Dynamic multi-agent | authenticated /api/dynamic-multiagent/* |
The settings page, switches, model catalog, and saving were exercised in the real Web UI of both versions. A full end-to-end delegation against a live model provider is not yet covered by automated tests.
npm install
npm run build # client/ → lib/client.js (React, slots, and primitives come from the dsh shell)
npm test # node --test
npm run check # build + syntax check + tests
| Path | Contents |
|---|---|
src/index.js |
Host plugin: prompt section, tools, switches, effort bridge, settings channel |
src/core/ |
Runtime, model routing, roles, prompts, task graph, persistence, connection adapter |
client/ |
Browser half: settings page, composer chip, tool cards |
docs/design/ |
Original design documents (Chinese) |
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。