DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-agent-dispatch

N

dsh-agent-dispatch

Manifest valid

Visible dispatch panel for DeepSeek Harness — decide whether other agents help, pick free-lane helpers, and inject the division-of-labour policy.

UI (client)hasBundlePatch
Chinese (Simplified)  English

dsh-agent-dispatch · Agent Dispatch

One settings pane: decide whether the main agent gets help, which helpers play — and it actually works. Policy is injected as a systemPrompt section; save and it takes effect.

  • Visible: one settings section showing status, channels, and helper roster (with measured TTFT).
  • Actionable: master switch / three-mode selector / channel checkboxes / helper checkboxes / concurrency limit / extra notes — change and save.
  • Actually effective: policy text is a function, re-evaluated every step; when disabled it injects an explicit "no dispatch this turn" instruction.

What it solves · Why it saves tokens

The main agent resends the full context (system prompt + history) every step, billed by cacheMiss — the biggest line on the token bill. Independent helpers each have their own context, and the free lane has zero cost for input and output. So the key to saving money isn't "talk less", it's moving self-contained work out. This plugin manages "what to move, to whom, how many".

Division of labor (hard-coded in injected text): simple, mechanical, self-contained work that does not depend on main-session context (bulk retrieval, item-by-item audit, copy-edit-reorder, list making, translation, formatting, first drafts) goes to free-lane helpers; the hardest, most judgment-heavy, consequence-sensitive parts (architecture and key design, cross-module reasoning, correctness and safety judgments, dispute resolution, final delivery) stay with the main agent.

Install

Plugin directory: D:\dsh-agent-dispatch (this repo). Two ways:

A. Auto-edit profile manifest (recommended)

node scripts/install-into-profile.mjs            # dry run, prints the two lines to change
node scripts/install-into-profile.mjs --apply    # actually edit (auto-backup package.json)
node scripts/install-into-profile.mjs --revert   # restore from backup

The script touches only one file: <DSH_HOME>/profiles/<profile>/package.json in two places — the link: dependency in dependencies, and the package name in dsh.profile.bundles. After editing, run pnpm install in that profile directory (to turn the link: into a junction in node_modules) and restart dsh (patchReload: "live" handles hot reload, but not a new bundle; restart ends the current GUI session).

Note: pnpm install aligns node_modules to the versions declared in package.json — if a plugin was previously updated to a higher version by the plugin manager, this step will downgrade it to the declared value. To keep the newer version: pnpm add <pkg>@<version> then restart.

B. Manual

Equivalent to manually editing C:\Users\qq167\.dsh\profiles\web\package.json in two places:

  1. In dependencies add:
    "dsh-agent-dispatch": "link:D:/dsh-agent-dispatch"
    
  2. In the dsh.profile.bundles array add the package name: "dsh-agent-dispatch"

Then pnpm install + restart dsh.

After install: Settings → Agent Dispatch.

Panel overview

Six sections, top to bottom:

SectionContent
Master switch & three-mode selectorOn / Off; three modes: Off / Ask me / Auto
Helper channelsworkflow fan-out / single subagent / Agency experts / Agent Teams; unchecked channels go to the deny list
Helper rosterThree merged sources (host-registered / lane probe / manual + built-in reference), each row labeled with source; ★ marks the default primary
Dispatch scaleMax simultaneous helpers (1–8), step threshold for dispatch, whether short tasks are blocked from dispatch
Extra notesWritten verbatim into injected text
View injected textExpand to see the actual policy sent to the agent, not a mockup

Top also has first-run guide (four steps, shown once) and host adaptation check (explains why each feature is present or absent).

Configuration keys

Persisted to $DSH_HOME/agent-dispatch/config.json (default C:\Users\qq167\.dsh\agent-dispatch\config.json), atomic write (tmp + rename). Panel re-reads on every open; hand-editing this file is equivalent to panel changes.

KeyTypeDefaultPurpose
versionnumber2Config structure version; v1 bare model keys get provider prefix auto-added on load
enabledbooleantrueMaster switch; off = injects explicit "no dispatch" instruction
mode'off' | 'ask' | 'auto''ask'Dispatch mode
peerstring'our-free-model'Roster default provider name (only decides which provider the reference roster sits under; does not require this machine to actually have it)
discover.llmbooleantrueWhether to ask host LLM service to enumerate provider/model
discover.siblingsbooleantrueWhether to scan sibling plugins' status files under $DSH_HOME
channels.workflowbooleantrueAllow workflow fan-out
channels.subagentbooleantrueAllow single subagent dispatch
channels.expertsbooleanfalseAllow Agency experts
channels.teamsbooleanfalseAllow Agent Teams
helpers.{provider}:{model}objectsee belowKey is provider:model, value { enabled: boolean, label?: string }
primarystring'our-free-model:nemotron-3-ultra-free'Default primary helper; must be an enabled model, otherwise falls back to first enabled
maxHelpersnumber4Max simultaneous helpers (clamped to 1–8)
minStepsnumber3Task must exceed this many steps to be worth dispatching (clamped to 1–20)
longTaskOnlybooleantrueWhen on, tasks answerable in one sentence are not dispatched
onboarding.seenbooleanfalseSet true after first-run guide viewed
notesstring''Extra notes, written verbatim into injected text (truncated to 2000 characters)

Factory default helpers enables six verified-available our-free-model models: nemotron-3-ultra-free, nemotron-3.5-lightning-free, space-bunny-free, longcat-2.5-preview-free, ling-3.0-flash-fin-free, mimo-v2.5-free (v1 config keys without provider prefix auto-prefixed with our-free-model:).

Channels and roster

Channels (CHANNEL_IDS order = panel order)

idLabelDescription
workflowworkflow fan-outRun multiple independent sub-tasks side by side in one script, each can specify its own provider/model
subagentsingle subagentDelegate one whole independent task to another context, only get the result back
expertsAgency expertsSummon expert personas by domain (requires enabling in settings)
teamsAgent TeamsMulti-member shared task board collaboration (only created when user explicitly requests)

Roster three sources

Every row has a source tag; panel displays as "lane probe / host-registered / manual / built-in":

  1. Host LLM service actual enumeration (source llm, tag "host-registered") — the only source that can prove "this provider/model can actually be called right now".
  2. Sibling plugin status files (source peer, tag "lane probe") — scans $DSH_HOME/<any plugin dir>/catalog.json + availability.json, no hardcoded names, gets measured TTFT.
  3. Panel manual entry (source manual, tag "manual") — user can enter any provider:model, even other paid lanes.
  4. Built-in reference roster (source seed, tag "built-in") — 11-row our-free-model model snapshot, ensures panel is not empty on first open. Not a factual source, only shows "what it looks like".

Merge priority: llm enumeration → verified=true; sibling plugin availability → state / ttftMs; built-in reference → only fills appearance, does not override the above two judgments.

HTTP API

All routes under same-origin /api/agent-dispatch/*, co-located with host half in the same process. Only serves local browser; non-loopback returns 403.

MethodPathPurpose
GET/api/agent-dispatch/summaryReturns current config, roster, preview policy, stats, host adaptation status
GET/api/agent-dispatch/healthReturns service connectivity status, config path, roster source counts
POST/api/agent-dispatch/configBody { patch } merges config and persists, returns full summary
POST/api/agent-dispatch/rescanRe-enumerates LLM and rebuilds roster
POST/api/agent-dispatch/resetRestores factory default and persists

Compatibility and graceful degradation

inject = [] + nested fiber opportunistic acquisition of webServer / systemPrompt / llm three services. Any one missing only loses the corresponding feature; plugin remains usable:

  • No webServer: panel API unavailable (browser half cannot read/write config), but systemPrompt section still injects.
  • No systemPrompt: policy not injected (panel changes don't take effect), but API and roster work normally.
  • No llm: roster only has lane probe + built-in reference + manual; manual entry of one provider:model still works.
  • No services at all: panel still usable (pure in-memory config + built-in reference roster).

Write failure is not fatal: config updates memory first and takes effect immediately; panel shows "write failed, will revert on restart".

Uninstall

node scripts/install-into-profile.mjs --revert (restore backup), then pnpm install + restart dsh. $DSH_HOME/agent-dispatch/ can stay or be deleted.

Development and self-test

node --check index.js                    # syntax check host half
node --check client.js                   # syntax check browser half
node scripts/check-i18n.mjs              # zh/en dictionaries same keys, and all t() keys in code exist in dictionaries
node scripts/check-links.mjs             # every relative Markdown link and image target exists in the repo
node scripts/selftest.mjs                # pure function self-test (policy render / config convergence / roster build), 71 checks
node scripts/smoke-host.mjs              # fake cordis ctx runs real apply(), includes 403, persist, instant effect, 26 checks
node scripts/smoke-client.mjs            # stub React + real /summary data, renders Panel three times, 20 checks

selftest.mjs creates fake peer states in a temp directory, verifies roster priority, region-blocked and unavailable degradation, config convergence (0 concurrency, illegal peer, illegal key names all clamped to safe values). smoke-host.mjs uses fake webServer / systemPrompt services to run real apply(), confirms routes mounted, config persists, segment text is a function (so "save then next step effective" is a structural fact), covers non-loopback 403, bad JSON 500, disposer callable. smoke-client.mjs uses mini hooks runtime as stub React, feeds Panel with actual /summary from host half, asserts render tree has roster keys, has actual injected policy text, guide card disappears after viewed — node --check can't catch "opens blank" crashes, this layer catches those specifically.

npm run check (syntax), npm run i18n (dictionary consistency), npm run links (relative link and image check), npm run test (self-test), npm run smoke (host half), npm run smoke:client (browser half), npm run verify (all six) are configured in package.json scripts.

Related documents

FilePurpose
README.zh-CN.mdChinese version (Simplified Chinese mirror)
AGENTS.mdWorking notes for AI coding agents: layout, contract, checks
INSTALL.mdInstall, verify and uninstall steps
docs/GLOSSARY.mdGlossary: single terminology source for all docs and UI strings in this repo
CONTRIBUTING.mdContributing guide: commit message format, branch flow, doc conventions
SECURITY.mdSecurity policy and how to report a vulnerability
CODE_OF_CONDUCT.mdCommunity code of conduct
CHANGELOG.mdVersion change log
docs/market-entry.mdDSH plugin market entry and inclusion rules
docs/publish.mdRelease process (including steps requiring manual authorization)

License

MIT. Repository: github.com/Napstablooky233/dsh-agent-dispatch. Chinese version: README.zh-CN.md.

Comments

Loading…

Similar plugins

dsh-collaboration

by Socialist-Sister

Multi-agent collaboration suite for DeepSeek Harness: specialist roster with on-demand dispatch, roundtable, model comparison and a multimodal vision bridge — models via the official provider flow.

Workflow & AutomationManifest valid

★ 4

MIT

TypeScript

Aug 19, 2026

dsh plugin --profile web add dsh-collaboration

by SugarFatFree

DeepSeek Harness plugin for workspace commands, skills, and path-scoped rules.

Development & InfrastructureTools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Sep 23, 2026

dsh plugin --profile web add dsh-agent-extension

Maintains reusable named subagent profiles for DeepSeek Harness and runs them with per-profile model, reasoning effort, and agent-preset settings.

Workflow & AutomationManifest valid

★ 0

dsh plugin --profile web add dsh-subagent-pool

by aaravarr

DeepSeek Harness (DSH) plugin — a subagent_with_model tool plus a live multi-panel subagent viewer.

Terminal & ClientsManifest valid

★ 3

↓ 62/wk

MIT

JavaScript

Aug 20, 2026

dsh plugin --profile web add @aaravarr/dsh-subagent-max

File-defined subagent roles for DeepSeek Harness: roles live in project and global .dsh/roles files, a delegating agent sees one catalog line per role, and each role's tool policy decides which tools

Models & ProvidersManifest valid

★ 1

MIT

JavaScript

dsh plugin --profile web add dsh-plugin-subagent-roles

by hanxuanliang

Durable multi-agent collaboration for DeepSeek Harness: channels, threads, tasks, and resumable agent sessions.

Workflow & AutomationManifest valid

★ 4

↓ 124/wk

MIT

TypeScript

Aug 24, 2026

dsh plugin --profile web add @hanxuanliang/dsh-chaos