dsh-workflow-execute: Integrating Agent Workflow Templates into DSH Web

Introduction

In DSH (DeepSeek Harness), orchestrating multi-phase, multi-step agent workflows often requires manually maintaining state transitions in code or scripts, which makes reuse and collaboration difficult. What’s really needed here is a “workflow template” layer: something that can be browsed, edited, and validated like a regular document, yet also directly initiate real session executions from the Web panel and track the progress and deliverables of each step.

The dsh-workflow-execute plugin is designed precisely for this purpose. It plugs “workflows” into dsh web, providing dual-repository browsing, YAML editing and validation, import/export, AI generation, and an execution dashboard.

What It Is

This is a DSH plugin maintained by xiao0o0, categorized under “Workflows.” It integrates “workflows” (multi-phase, multi-step agent workflow templates) into dsh web, supporting browser-based browsing, editing, validation, import/export, and AI generation, as well as panel-level step-by-step real session execution, gate reviews, and dashboard tracking.

Core Features

Dual-Repository Browsing

Two workflow repositories are provided by default:

  • My Library: ~/.rjWorkflow/workflows (writable)
  • Bundled Library: ~/.rjWorkflow/bundled/workflows (read-only)

The plugin recursively scans subdirectories. The sidebar entry displays the workflow count for both libraries. The root directory and scan depth can be adjusted in settings.

Three-View Detail Page

Each workflow offers three views:

  • Overview: metadata, limits, diagnostic checklist
  • Structure: phase → step tree, containing complete fields such as prompt / executor / skill / gate / transition
  • YAML: line numbers + syntax highlighting; diagnostic errors are clickable to jump to the corresponding line

Editor & Validation

  • Line numbers displayed, with live validation as you type (300ms debounce, silent auto-validation with no popups)
  • Syntax errors / missing name / empty phases / duplicate step IDs / on_gate_fail goto: pointing to a non-existent step = errors that block saving
  • Missing guid, unknown keys = warnings, indicated only by a yellow badge
  • Keyboard shortcut for saving (⌘/Ctrl+S); cursor remains in the editor after save
  • Optimistic locking: if the file has been modified externally, a 409 is returned, and the UI presents a “Reload / Overwrite Anyway” choice

Full CRUD

  • Create: generates a commented skeleton
  • Copy from bundled to My Library: guid is automatically replaced
  • Rename
  • Delete: moved to a .trash directory

Import & Export

  • Multi-file import (with optional overwrite on name conflicts)
  • Single YAML download
  • Full library zip export

Real-Time Sync

The plugin uses fs.watch to monitor both root directories. Changes are pushed to the frontend via SSE, achieving near-instant UI refresh.

AI-Generated Workflows

After describing the requirement and setting the complexity level, the plugin generates a YAML draft through a real agent session, then validates it, previews for confirmation, and finally writes it to My Library.

Execution & Dashboard

  • Initiate a run from the panel by selecting a workflow, launching real sessions step by step
  • Two session modes are supported:
  • Single session: the entire flow shares one session, saving tokens
  • Multi-session: each step gets its own session, offering better isolation
  • Gates can be scored by AI review, or paused for manual approval
  • The dashboard displays phase/step progress, elapsed time, token usage, and artifacts

Artifact Management

  • Artifact files declared for each step can be viewed directly in the dashboard
  • Before each run starts, the artifacts directory is archived to workflow/<flow>/.history/<runId>/

Agent Collaboration

The plugin exposes four tool interfaces: workflow_list, workflow_get, workflow_validate, workflow_save, paired with a systemPrompt section to drive workflow progression: one deliverable per step, with gate failures triggering transitions per on_gate_fail. The bundled library is equally read-only for agents.

Installation & Activation

The official installation command is:

dsh plugin --profile web add dsh-workflow-execute

After installation, restart dsh web and refresh the page. A “Workflows” entry appearing below “New Session” in the sidebar indicates success. No additional configuration is needed by default—the plugin reads and writes workflow directories under ~/.rjWorkflow. The root directory and scan depth can be modified in settings.

Typical Usage

  1. Install the plugin and restart dsh web; find the “Workflows” entry in the sidebar.
  2. Select “New” to create a workflow with a commented skeleton, or copy one from the bundled library to My Library.
  3. Switch to the “Structure” view on the detail page to define phases and steps, filling in prompts, executors, skills, gates, and transition rules.
  4. Switch to the “YAML” view to check fields using line numbers and syntax highlighting; clicking an error line allows quick navigation.
  5. Confirm metadata and the diagnostic checklist on the “Overview” page, then save the file.
  6. Select the corresponding workflow in the panel to start a run, choosing “Single Session” or “Multi-Session” mode.
  7. Monitor the dashboard to review per-step progress, elapsed time, token usage, and artifact content.

Use Cases & Notes

Ideal for developers and teams who need to templatize, reuse, and collaborate on agent workflows. The plugin runs with the permissions of the current dsh process. It is recommended to review the source code and license before installing.

In Short

dsh-workflow-execute bridges agent workflow templates into DSH Web through dual-repository browsing, editing & validation, AI generation, and an execution dashboard, making reuse and collaboration straightforward. For more details, visit the plugin directory page and the GitHub repository.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye