dsh-orchestrator: Decomposing Planning, Execution, and Review into an Auditable Multi-Model Pipeline in DSH

Introduction

In DeepSeek Harness (DSH), single-turn dialogue code editing often packs planning, persistence, and self-checking into the same session: the model switches roles, but the context remains on a single chain, making it hard to distinguish whether the plan is flawed, write boundaries were violated, or the review simply didn’t receive structured results.

The community workflow plugin dsh-orchestrator (maintainer Dawnivers, current package version 0.2.12) takes a different path: using independent sub-sessions to handle planner, worker, feasibility, and reviewer. The host validates plan shape and permissions, writes in waves based on dependencies, and finally separates “statically reviewed” from “still require you to run commands locally for verification” using a structured review checklist. Below, we introduce its capabilities and boundaries in terms of installation, interface usage, and execution semantics.

What is it

dsh-orchestrator is a multi-model coding orchestration plugin for DSH (Category: Workflow). It registers dedicated tools within the host without modifying the installation directory, replacing workflowEngine, or requiring effort patches for built-in workflows.

One-sentence workflow: The planner produces a plan with per-task source code self-checks in a read-only planning session; the host decides whether to add an independent feasibility review based on the plan shape (independent routing, defaults to inheriting the planner); after confirming feasibility, a snapshot is saved, and workers are launched in waves based on consumes dependencies to write; finally, an independent reviewer performs a read-only review of the actual files, entering targeted repair rounds if necessary.

The planner, worker, feasibility, and reviewer configurations can each select a provider, model, and reasoning effort.

Core Features

Four Routing Paths & Typical Chains

The settings page provides four model cards (Planning / Execution / Pre-Write Review / Review). Since v0.2.8, feasibility is a fourth independent routing, defaulting to inheriting the planner, but can be specified separately on the settings page to trade for a third-party perspective.

  • Single task without cross-task consumes dependencies: After the planner self-check passes, a snapshot is taken directly and workers are started; the chain is approximately Planner → Worker → Reviewer (3 sub-sessions, planning retries counted separately).
  • Multiple tasks or cross-task dependencies: An independent read-only feasibility session is added in addition to the planner self-check; a snapshot and write are only performed after both pass. The chain is approximately Planner → Feasibility → N Workers → Reviewer.

Trigger rules are calculated by the host based on the plan shape and do not read the planner’s “skip” flags; single-task pseudo-external consumes will be rejected.

Per-Task Feasibility Self-Check (Feasibility)

Each task plan carries a mandatory structure feasibility: {status, summary, evidence, questions}. The planner provides evidence synchronously when reading the source code (max 20 items, max 4000 characters each) without opening an extra planner session for this. The host validates the structure and boundaries but cannot prove natural language evidence as true, nor can it replace building and testing.

If a task can form a compliant candidate but still has questions, the top level may be ready, while the individual self-check is needs_clarification or blocked; the host returns report.status=blocked and nextAction.questions before additional review, snapshot, and write.

Dependency Waves & Task-Level Failure

consumes determines execution order: parallel within the same wave, the consumer waits for the provider to finish writing before starting. Circular plans are rejected during the validatePlan phase. A single worker failure only skips its downstream, while siblings in the same wave can continue; files of failed tasks can be rolled back individually, while successful task results are preserved.

Structured Plan & Review Delivery

Planning and repair rounds require delivery of a valid plan via structured_output; the body does not count as delivery. The prompt embeds a PLAN_SCHEMA (source of validatePlan, planDelivery) consistent with validatePlan. If a sub-session ends normally but does not deliver a structured result, the host can use a read-only receipt sub-session with the same routing to attempt delivery again (up to 3 times per run), recorded in report.structuredRecoveries.

Review conclusions are tiered: verified_statically, issues_found, unable_to_verify (old value ready_for_validation is normalized to verified_statically when read). Pending verification items are structured checks[{id,kind,statement,command,expected,owner?}], where kind is build|runtime|visual|static|data|process.

Since v0.2.12, a single check format issue degrades to status:"unverifiable" and is aggregated into degraded, no longer dragging down the entire review round; checks[].owner can be run (default) or main—the latter indicates only the main session can close it (billing verification, manual visual inspection, real browsers, etc.), allowing for no command. Envelope-level errors (e.g., invalid conclusion, missing summary, checks not an array, etc.) still cause failure and closure.

issues_found triggers targeted repair when maxRepairRounds > 0 (default 1): the planner outputs a repair plan with review evidence, a separate snapshot is executed, and then reviewed once.

Permissions, Snapshots & Failure Semantics

Planner / Feasibility / Reviewer are read-only (read, glob, grep); only Worker can add write, edit. Shell, network, browsers, etc., are not on the whitelist; tool guard checks project boundaries and worker file ownership.

After confirming feasibility, the plan file’s original bytes and SHA-256 are saved before starting the worker (single file max 5 MiB, total max 50 MiB per run). The changedFiles declared by the worker are compared with the disk; false reporting or missed reporting will be recorded in the report.

Review failure (review_failed) no longer rolls back all written results for the entire round; safety gates (permissions, budget, boundary violations) still fail and close. Write-phase failures can be auto-rolled back according to strategy; review_failed and needs_validation do not roll back.

Interface & Observability

The session toolbar provides an entry for “✦ AI Orchestrate”. After running orchestrate_run, the flowchart panel can pop up automatically according to the activity API, showing the status of stages such as Environment Check → Planner → Feasibility → Snapshot → Worker (topologically separated) → Reviewer → Optional Repair. Degraded reviews, main-session-specific entries, reasons for repair failure, etc., are marked on the corresponding cards.

Plugin data is located by default at $DSH_ORCHESTRATOR_HOME, and $DSH_HOME/storages/orchestrator is used if not set (commonly ~/.dsh/storages/orchestrator).

Installation & Enablement

Runtime environment: Node.js 22+; the README states it is tested on DSH 0.2.0-rc.2. The host must provide tools.guard, agent/created creation barriers, native spawn sub-agents, and precise model capability parsing. package.json declares a peer dependency: @deepseek-ai/dsh-tools >=0.2.0-rc.2 <0.3.0, license MIT.

You can install the corresponding version of the local package from the DSH plugin manager and enable it, or use the CLI (the README example filename is dsh-orchestrator-0.2.4.tgz; please replace it with the 0.2.12 package name of this release for installation):

dsh plugin --profile desktop add ./dsh-orchestrator-0.2.4.tgz

For Desktop, CLI package installation is best performed after completely exiting the application; after installation, refresh the DSH page and, if necessary, perform a full restart to load the server-side JavaScript and bundle. This package has no additional installation scripts and does not come with a browser or model SDK.

The DSH ecosystem is “everything is a plugin”; the SkillHub directory is a community site and has no official affiliation with DeepSeek / Hyperscience.

Typical Usage

Starting from Session Button (Daily)

  1. Click “✦ AI Orchestrate” at the top of the target DSH session or next to the input box.
  2. In the popup, confirm the target session and working directory, and set the models and tiers for planner / worker / reviewer (and feasibility if necessary), task description, allowedGlobs, protectedFiles, etc.
  3. Click “Start Orchestration”. The plugin saves the task and delivers execution to the current session; busy sessions are queued by the host.
  4. After orchestration ends, the main session executes build and tests in the project according to nextAction.checks (and the flat compatibility field checksNeeded). needs_validation means modifications and read-only review are complete, does not represent that the reviewer has run these commands.

Tool API

  • orchestrate_settings(): Entry point for the configuration page and data location.
  • orchestrate_task({ action: "create", config }) / get / list: Save and query tasks.
  • orchestrate_run({ task_id, plan_only?, run_in_background? }): Execute; plan_only plans without modifying the project.

Task configuration example (model IDs need to be replaced with locally configured routes):

{
  "task": "给现有速度设置添加边界检查,并保留现有导出接口",
  "projectRoot": "D:/projects/example",
  "planner": { "provider": "my-claude-route", "model": "configured-claude-model" },
  "worker": { "provider": "my-worker-route", "model": "configured-claude-model" },
  "reviewer": { "provider": "my-gpt-route", "model": "configured-gpt-model" },
  "maxWorkers": 2,
  "maxPlanRetries": 1,
  "allowedGlobs": ["src/**"],
  "protectedFiles": ["src/core.js"],
  "allowProtected": false,
  "verifyHint": "使用项目已有的测试命令验证,不生成新锁文件"
}

Old flat fields (e.g., strongProvider / reviewerProvider, etc.) are also accepted; nested planner / worker / reviewer objects are recommended. If the reviewer is completely missing, the planner is inherited.

Concurrent orchestration in the same project (or parent/child directories) is not recommended; a task is only allowed to start once, and reruns require a new task ID.

Suitable Scenarios & Notes

Suitable: Wanting to use different models in DSH to share planning, writing, and review; needing file-level permissions and snapshot rollback at the plan level; wanting the review output to be an executable verification checklist rather than a simple “should be fine”.

Not suitable or requires awareness: Relying on OS-level sandbox isolation, or requiring the plugin to run all test commands on behalf of the user—the host only validates the checks shape, does not execute the command; actual verification is still completed in the main session or your CI.

Security: The plugin runs with the current DSH process permissions; please read the GitHub source code and the MIT license before installing. Settings page links contain local access tokens; do not leak them. Tool-layer constraints cannot prevent other programs from concurrently modifying the database or malicious plugins from writing directly to disk.

Upgrade: After server patch updates, stop active orchestration and perform a full restart of DSH; verify on a test project before using it in a production repository. The repository on GitHub currently has 1 stars (as of the directory page info), and quality and time-to-benefit still need to be verified on your own tasks.

Conclusion

dsh-orchestrator condenses multi-model coding collaboration into configurable four-segment routing, verifiable plan and review contracts, and in v0.2.11–0.2.12 strengthened behaviors such as structured delivery recovery, preserving results on review failure, and single check degradation, reducing the friction of “format is correct but the whole round is judged dead”.

  • Directory page: https://www.skillhub.cn/plugins/Dawnivers/dsh-orchestrator
  • Source code & README: https://github.com/Dawnivers/dsh-orchestrator
羽毛球分组比赛记分
小程序二维码

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

Xiaoye