Introduction¶
When performing reviews, parallel exploration, or multi-step tasks in DSH, it is common practice to repeatedly verbalize “do A first, then B, run both in parallel” within the session, or rely on the memory of a single conversation. When tasks are interrupted, need to be re-run, or when you wish to solidify a set of steps into a project, the lack of a composable and resumable execution model results in costs associated with manual verification of artifacts and repetitive dispatching.
Below is an introduction to the community plugin dsh-workflow (Repository: gulagala001/dsh-workflow, maintained by gulagala001, categorized as a workflow). It provides saveable and composable JavaScript workflows on DSH, leveraging DSH’s native subagents, Jobs, Token budgets, and Git worktree isolation, while supporting resumption from a prefix of successful calls.
What is this?¶
DSH Workflow (installation ID dsh-workflow-plus) is designed for scenarios requiring the orchestration of multi-step subagents within the Harness, where workflows need to be reusable and resumable. The README summarizes it as: save, compose, and resume workflows, leveraging DSH’s native subagents.
The plugin is distributed via a fixed GitHub Release (currently marked as release 0.1.1 in the README, compatible with DSH 0.2.1-rc.2) and is licensed under MIT. SkillHub directory page: gulagala001/dsh-workflow.
Core Features¶
The following capabilities are derived from the repository’s README and package.json descriptions.
Workflow Expression and Reuse¶
- Use
parallel(),pipeline(),phase(), andlog()to describe dependencies and execution status. - Workflows can be passed directly into scripts or reused via
scriptPathand named workflows within the project. - Exports
meta(such asname,description,phases) to provide phase information for display on the session side.
Native Subagents and Jobs¶
- Subagents inherit the host’s model and permissions, generating normal model usage.
- When
run_in_background: trueis set, native Jobs are used;job_outputcan be used to view them, andjob_killto stop them.
Resumption and Isolation¶
resumeFromRunId: Reuses unchanged and successful call prefixes within the same session, re-executing subsequent calls.isolation: 'worktree': Creates an independent directory from the current Git HEAD; preserves results with changes, without automatic merging.- Nested workflows are supported up to one level, sharing concurrency, total call counts, cancellation signals, and budgets.
Token Budget¶
- A shared output token target can be set using formats like
+500k/+1mat the end of a user message; once the target is reached, new dispatches stop, and running calls can wrap up. - If trustworthy usage data is lacking, further dispatching stops; model requests, network, and file permissions remain the responsibility of the host and tool providers.
Data Storage Locations¶
- Project side:
.omd/workflows/,.omd/worktrees/. - Independent run and budget data:
DSH_HOME/dsh-workflow/. - Uninstalling the plugin does not actively delete saved scripts, run records, or worktrees.
Environment and Installation¶
Applicable Environment: DSH 0.2.1-rc.2, Node.js 22.19+ (see engines in package.json).
Before installation, please review the Release package and repository source code as well as the MIT license yourself; the plugin runs with the current DSH process permissions, and subagent and tool calls are consistent with the host.
In the DSH instance you intend to use, open Plugins → + Add Plugin, and paste the official installation address (do not construct other installation commands based on the name; the README also warns against installing npm packages of similar names from other authors):
https://github.com/gulagala001/dsh-workflow/releases/download/v0.1.1-dsh.0.2.1-rc.2/dsh-workflow-plus-0.1.1-dsh.0.2.1-rc.2.tgz
After the current task ends, enable or fully restart the instance as prompted by the host, retaining the original profile and data. For upgrades, uninstallation, and checksums, refer to the repository’s Installation Guide and the corresponding Release’s SHA256SUMS.
Try One Thing First¶
In a session with a configured model, input:
Use workflow to review auth and storage in parallel, summarize findings; do not modify files.
Success Indicator: The session workflow panel displays real phases, members, and statuses, and subagents run in native sub-sessions.
Typical Usage: Minimal Workflow¶
The following example comes from the README, demonstrating phase and parallel running two read-only review subagents in parallel:
export const meta = {
name: 'review-modules',
description: 'Review two modules',
phases: [{ title: 'Review' }],
};
phase('Review');
return await parallel([
() => agent('Review auth for correctness. Do not edit files.', { label: 'auth' }),
() => agent('Review storage for correctness. Do not edit files.', { label: 'storage' }),
]);
The workflow entry next to the session title will display phases and members; subagents are carried by native sub-sessions. For more complete APIs and boundaries, see the repository’s workflow.md.
Runtime Boundaries and Resumption Notes¶
| Capability | Conditions and Behavior |
|---|---|
| Nested Workflows | Supports one level, inheriting shared concurrency, total call counts, cancellation signals, and budgets |
resumeFromRunId |
Reuses successful prefixes within the same session; subsequent calls are re-executed |
isolation: 'worktree' |
Independent directory, no automatic merging |
| Shared Output Token Target | +500k / +1m etc. at the end of the message |
Resumption only reuses qualified successful call prefixes; it does not treat resumption as a transactional replay of arbitrary operations. The README clarifies: resumption re-executes calls following the successful prefix; existing artifacts and external side effects should be verified before operations.
Use Cases and Cautions¶
Suitable for DSH users who need to script repetitive patterns such as “parallel review of multiple modules,” “multi-stage pipelines,” or “background Jobs + foreground summarization” and run them repeatedly within the same session or project.
Not suitable for treating this as a sandbox to bypass host permissions or usage controls: subagents still consume model tokens, and file and network capabilities still depend on DSH and enabled tools. The community directory SkillHub is an independent site and has no official affiliation with DeepSeek / High-Flyer; rely on the GitHub Release and documentation when selecting plugins.
Documentation and Feedback¶
| Purpose | Link |
|---|---|
| Installation, Upgrade, Uninstallation | docs/install.md |
| Usage and Boundaries | docs/workflow.md |
| Architecture | docs/architecture.md |
| Versions | Releases |
| Issues | Issues |
When providing feedback, please include the full DSH / plugin version, actual entry point, minimal reproduction steps, and expected versus actual performance; logs and screenshots must have private data removed first.
Directory Page: https://www.skillhub.cn/plugins/gulagala001/dsh-workflow
Source Code and Releases: https://github.com/gulagala001/dsh-workflow