dsh-taskforce: Decomposing long-horizon multi-agent collaboration in DeepSeek Harness

Introduction

When handling large-spanning, multi-step requests in DeepSeek Harness (dsh), a common approach is to let the main agent in a single session handle everything end-to-end. The context continuously accumulates planning, execution details, and intermediate conclusions, increasing pressure on the context window and making subsequent steps more susceptible to interference from previous noise.

The following introduces the community plugin dsh-taskforce (Repository: LiSheng5/dsh-taskforce, Directory: SkillHub). It decomposes long tasks into a task graph (DAG). A planner breaks down the work, and each worker executes within a one-shot context containing only the information necessary for that task, returning a structured report rather than a full conversation transcript; the main flow then reviews, passes, or redoes the work. The DeepSeek Harness ecosystem operates on the principle of “everything is a plugin”; directory sites like SkillHub are maintained by the community and have no official affiliation with DeepSeek or High-Flyer.

What is this

dsh-taskforce is a multi-agent orchestration plugin for DeepSeek Harness, maintained by LiSheng5. The package version is 0.1.0 (see the repository package.json).

The core loop (from source materials): plan → dispatch (parallelizable) → structured reports → review → pass | redo. Beyond the complete loop, the plugin includes graph recovery across process restarts, a web orchestration panel, and system prompt snippets used for “selecting orchestration even when a large request does not explicitly name it.” Regarding the behavior of “whether the model will actively call orchestrate_plan without being named,” the README indicates that verification was not completed due to an invalid API Key.

Naming conventions (intentionally retained): The local directory history name is dsh-orchestra, while the GitHub and package names are dsh-taskforce; the tool names orchestrate_*, the service name orchestra, and the projection key orchestraGraph are bound to the host tool-call logs. Renaming them would break the recovery of old sessions and should not be “cleaned up” arbitrarily.

Core Features

Task Graph and Context Routing

  • The planning phase generates a task graph; src/graph.js handles DAG validation, readiness checks, and state transitions (CAS).
  • src/router.js prepares a “task brief” for each worker, routing only the context required for that specific task.
  • Protocol and validation: src/protocol.js (Task / Report / Verdict JSON Schemas) and src/json-schema.js (a subset for argument validation).

Orchestration Toolchain

The plugin provides capabilities such as plan, status, dispatch, review, reroute, finalize, and ping in src/tools/; external tool names use the orchestrate_* prefix. For example, orchestrate_status answers based on the recovered graph after a host restart.

Review and Re-dispatch

The reviewer issues a pass or fail verdict on the worker’s structured report; if it fails, the task can be rerouted and re-dispatched until finalize wraps it up. Worker reports should be treated as “claims” to be verified by the reviewer—consistent with the Safety section in the README.

Restart Recovery

By default, the graph is saved in memory per session and is lost upon process restart; recovery relies on the existing dsh session logs:

  • The host records tool/call (full arguments) and tool/result (rendered output); the plugin does not write separate session events.
  • It registers the orchestraGraph session projection to fold these events back into the task graph; loading occurs when a new process first accesses that session.
  • Call effects take place after the result is settled, preventing duplicate application to currently executing calls; dispatches interrupted by a restart are not half-applied, and tasks remain in the state last seen by the orchestrator.

If the composition lacks a projection registry, the plugin can still run in pure memory mode (consistent with legacy behavior). Old sessions predating a specific render contract can recover plans, attempt counts, verdicts, and finalized flags, but cannot recover dispatch result details—the materials explicitly state that success flags should not be faked.

Web Panel and Prompt Injection

  • client.js provides an orchestration panel above the conversation composer (lazy __ModuleLoader__ factory); package.json injects @deepseek-ai/dsh-client-ui-conversation via dsh.client, targeting the web platform with immediately: true.
  • src/prompts.js contains adoption snippets and planner guidelines; if the composition lacks @deepseek-ai/dsh-system-prompt, only the “auto-select pipeline” section is missing, and tools remain available when explicitly named.

Security and Worker Permissions

The plugin launches sub-agents with real permissions: reading/writing files within the session workspace and executing shell commands, constrained by the tool whitelist of each worker profile. By default, it strips the host agent-plane’s control tools (send_message, interrupt_agent, list_agents, subagent, subagent_fork) to prevent worker text from entering the orchestrator session directly or interfering with the parent agent; this can be retained by setting denyControlPlane: false (the README notes this list was calibrated via actual testing).

State is isolated per session; worker tool access whitelists are configurable; src/profiles.js maps agent_type to persona / reasoning effort.

Quality and Compatibility

  • Offline Regression: node test/local-loop.mjs (no dsh, API Key, or network required); CI runs on Node 20 / 22 / 24 for every push/PR (.github/workflows/offline-regression.yml); the README claims 16 offline test groups pass.
  • Compatibility (from README table):
dsh Version Description
0.1.7-rc.2 Development baseline version; full loop, restart recovery, and web panel verified
0.2.0-rc.2 Desktop app runtime; installation, mounting, and prompt assembly verified in headless environment—full orchestration loop and web panel not yet re-run on this version

dsh is a developer preview, and the official team may introduce breaking changes; it is recommended to run the offline suite mentioned above after upgrading dsh.

Installation and Activation

The plugin bundle includes the npm dependency @deepseek-ai/schemastery; for local directories, pnpm install is required first (see README Install section).

CLI (Web profile example): Install from a local absolute path:

pnpm install
dsh plugin --profile web add <path-to>/dsh-taskforce

<path-to> must be an absolute path. The README also explains that dsh plugin add can directly accept git specs, with pnpm resolving dependencies during installation:

dsh plugin add github:LiSheng5/dsh-taskforce

(Refer to your specific dsh configuration for the profile; --profile web is common for web scenarios.)

Desktop App: Use the built-in launcher, and note that the desktop profile is managed solely by the application; the CLI cannot boot/dump or install into it. Windows example:

"<DeepSeek Harness>\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add <path-to>\dsh-taskforce

The app’s sidebar Plugins page supports registry names, git addresses, tarballs, or local absolute paths, following the same method as above; bundles are enabled by default. You must restart the application to load changes after modifying plugins.

Before installing, please read the repository source code and license yourself (npm packages with private: true should still be checked for authorization and code on GitHub), and read the dsh SAFETY instructions. The plugin runs with the permissions of the current dsh process; it is not advisable to run large-scale orchestration on unaudited workspaces.

Typical Usage

The main path described in the materials involves the orchestrator driving orchestrate_* tools within a session, rather than a separate shell subcommand.

  1. Plan: Call the plan tool to get a task graph (nodes, dependencies, task descriptions for each worker).
  2. Check Status: orchestrate_status returns the current graph; after a restart, it answers based on the log projection recovery.
  3. Dispatch: Dispatch can launch multiple workers in parallel; each worker executes in a fresh one-shot context and returns a structured Report.
  4. Review: Review issues a Verdict (pass / fail) on the report; reroute and re-dispatch if necessary.
  5. Finalize: Finalize marks all work as complete.

In the conversation interface, the Web panel above the composer is used to view orchestration status (consistent with the “live verified” statement on 0.1.7-rc.2). If you want the model to potentially select the pipeline for large tasks even without verbally specifying “use taskforce,” the composition must include @deepseek-ai/dsh-system-prompt (the adoption snippet is located after the workflow and subagent sections; the prompt text reaching the model is verified; automatic calling behavior refers to the “not fully verified” note above).

After upgrading dsh or the plugin, run the following in the workspace root (inside the plugin repository):

node test/local-loop.mjs

If upgrading from a version prior to the “restart recovery fix,” the README points to “Upgrading from a version that predates the fix” and the maintenance scripts under scripts/ to repair old session logs; details should refer to that section on GitHub.

For more complete design explanations, see DESIGN.zh.md next to the repository (the README reference path is ../DESIGN.zh.md, subject to the actual repository layout).

Use Cases and Notes

Better suited for: Long-term development or analysis that requires splitting “research + multi-file changes + cross-validation” into parallelizable subtasks; desiring clean worker contexts and structured reports for easy review; needing to view graph status in the dsh Web / Desktop UI and relying on session logs to continue orchestration after restarts.

Requires caution: Any multi-agent orchestration that writes to disk or runs shell commands; strictly retain per-task timeouts and attempt limits (README Safety); run small-scale tests on important repositories first; do not mix Desktop and CLI profiles (desktop is managed only by the app).

Content not written or not asserted in the materials: The SkillHub directory page currently has 0 stars; specific cordis.patch.yml fields or complete configuration examples for worker profiles were not provided in the retrieved snippets—please read the repository’s cordis.patch.yml, src/profiles.js, and the inject/apply logic in index.js directly before implementation.

Conclusion

dsh-taskforce turns “plan → parallel dispatch → structured reports → review → pass or redo” into a recoverable, panel-observable closed loop, and deliberately aligns with dsh tool logs for restart recovery. If you are doing long-task multi-agent collaboration in the Harness, you can start with installation and the node test/local-loop.mjs self-check, then try running the in-session orchestrate_* flow.

  • Directory Page: https://www.skillhub.cn/plugins/LiSheng5/dsh-taskforce
  • GitHub: https://github.com/LiSheng5/dsh-taskforce
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye