Introduction¶
In DeepSeek Harness (DSH), the workflow engine itself is not lacking: @deepseek-ai/dsh-workflow-ptc provides ctx.workflowEngine, and the workflow tool lets the model write JavaScript to fan out tasks to a large number of sub-agents, with concurrency limits, cancellation, spawning, and result validation all in place. The gap is mainly in “how humans use it, how to reuse it, and how to clearly see what’s happening”: triggers can often only be done by the model writing ad-hoc scripts; the dsh-client-ui-workflow-run card within a session mostly presents a list of stages and member states, making it difficult to see what each sub-agent is writing, and lacking structural relationships between agents; progress scrolls along with the conversation, so it’s hard to cross-reference which step is currently running while typing.
Below we introduce the community plugin dsh-workflow-studio (maintainer VCPr0j3k7, category: workflow). Without replacing the official engine, events, or session cards, it adds a /workflow entry point, a savable workflow library, and three types of views — a persistent bar above the input box and a sidebar workbench — making it easier to observe structure and progress.
What This Is¶
dsh-workflow-studio is a bundle plugin for the DSH desktop shell (desktop profile, declared as dsh.bundle.patch in package.json). In one sentence: use /workflow to launch workflows (via natural language or saved names), display in a GUI what each sub-agent is doing and the structural relationships between them; click a pill to jump to the official sub-agent session, without mirroring transcripts inside the plugin.
Repository: github.com/VCPr0j3k7/dsh-workflow-studio
Catalog page: skillhub.cn/plugins/VCPr0j3k7/dsh-workflow-studio
The current package version is 0.1.0, licensed under MIT (subject to the repository’s package.json). SkillHub is a community plugin catalog and has no official affiliation with DeepSeek / HFQ.
Core Features¶
Two Ways to Launch /workflow¶
/workflow <any sentence>— This sentence is passed verbatim to the model; the model determines the topology in its thinking, writes the script, then calls theworkflowtool to start it in the background. The command itself does not execute the workflow./workflow <saved name>— Directly runs the corresponding script under<DSH_HOME>/workflows/, suitable for fixed, repeatable processes.
Both forms share one command: if the first word matches a saved workflow name, it uses the library; otherwise it goes through natural-language orchestration.
Workflow Library and Script Format¶
Workflow files are located at <DSH_HOME>/workflows/*.js, using YAML frontmatter + JavaScript body, reusable and versionable. Filenames are restricted to lowercase letters, digits, dots, underscores, and hyphens.
Scripts can use agent, pipeline, parallel, phase, log, args injected by the official engine; this plugin additionally provides structural hooks wfRun, wfNode, wfEdge, wfGroup (reported via log(); removing them does not affect script execution). wfRun is the most commonly used: declare a node and immediately run a sub-agent.
UI: Persistent Bar and Workbench¶
- Persistent bar above the input box: appears when there is a workflow in the current session; expanded by default while running, collapsed by default after completion. Shows a stage column and sub-agent pills; clicking a pill opens that sub-agent’s official session window (same destination as the top-level sub-agent menu).
- Sidebar workbench: structural diagram (stages + pills + “runs after” lines between columns), timeline (swim lanes + real time, for verifying true parallelism), narration (
phase()/log()output), and workflow-library-related views.
The plugin deliberately does not rewrite user message content; orchestration instructions are handled by the system prompt registered by the plugin. Sub-agent content is not re-rendered within this plugin, avoiding duplicated maintenance with the official session view.
Installation and Activation¶
Standard installation (from the README):
git clone https://github.com/VCPr0j3k7/dsh-workflow-studio
dsh plugin --profile desktop add file:<cloned directory>
You must restart DSH after installation. The host loads it at startup; it will not take effect without a restart.
If dsh plugin add fails due to issues with other file: dependencies within the profile, the README provides manual equivalent steps: link to the plugin directory under the profile’s node_modules, register dsh-workflow-studio in the dependencies and dsh.profile.bundles of package.json; do not duplicate the cordis.patch.yml insert lines in the profile. The repository’s tool can be used to verify:
node tools/verify-profile.mjs
Uninstallation:
dsh plugin --profile desktop rm dsh-workflow-studio
For manual installation, reverse the link deletion and registration entries; workflow files under <DSH_HOME>/workflows/ are not removed on uninstallation.
Activation Requirements¶
The plugin depends on the DSH workflow engine and the client UI slot (dsh.client.inject includes @deepseek-ai/dsh-client-ui-slots). package.json requires Node ^22.19.0 || >=24. The specific “when available” is subject to the README’s “Activation Requirements” section and the current DSH version.
Typical Usage: Save and Run a Workflow¶
Write the frontmatter and script into <DSH_HOME>/workflows/audit-docs.js (example from the README, adjust args.files as needed):
---
name: audit-docs
description: Audit the accuracy of each file under docs/
whenToUse: When batch verification of documentation is needed
phases:
- title: Scan
detail: List files to audit
- title: Audit
detail: One sub-agent per file
graph:
- id: scan
label: Scan targets
phase: Scan
- id: audit
label: Audit files
phase: Audit
deps: [scan]
---
const files = args?.files ?? []
if (files.length === 0) return { error: 'Missing files argument' }
phase('Scan')
const plan = await wfRun('scan', { label: 'Scan targets', phase: 'Scan' },
`Files to audit:\n${files.join('\n')}\nFirst provide audit points for each file.`)
phase('Audit')
const findings = await pipeline(files, async (file) =>
wfRun('audit', { label: 'Audit files', phase: 'Audit' },
`Audit ${file}. Coordinator's points: ${plan}\nOutput three sections: conclusion / evidence / recommendation.`))
return { total: files.length, findings: findings.filter(Boolean) }
Execute in the session:
/workflow audit-docs
Or first let the model orchestrate and launch in the background via natural language:
/workflow Help me batch audit documents in the docs directory
After running, check the persistent bar above the input box or open the sidebar workbench; when you need to see the full output of a sub-agent, click the corresponding pill to enter the official session.
Use Cases and Notes¶
Who it’s for: Those already using the workflow tool in DSH for multi-sub-agent tasks who want a fixed entry point, savable scripts, and the ability to cross-reference stages, structure, and timelines while typing; developers willing to maintain <DSH_HOME>/workflows/*.js themselves.
Permissions and security: The plugin runs with the current DSH process’s permissions, within the same trust boundary as workflow scripts and sub-agent calls. Read the source code and the MIT license before installing to confirm it meets your environment policy; do not assume SkillHub or third-party repositories have undergone security audits.
Known boundaries (README summary): A restart is required after installation; the natural-language path depends on the model correctly calling the workflow tool; the distinction between dashed/solid lines in the structural diagram represents “declared dependency” vs. “temporal adjacency”, with interpretation described in the panel. See the repository README’s “Known Limitations” for more restrictions.
Conclusion¶
dsh-workflow-studio does not replace @deepseek-ai/dsh-workflow-ptc or the official in-session workflow card, but builds on the same engine to add /workflow entry point, workflow library, persistent progress bar, and sidebar structure/timeline views, and hands “viewing sub-agent details” back to the official session navigation.