dsh-workflow-presets: Workflow Presets Plugin for DeepSeek Harness

Introduction

When working with DeepSeek Harness (DSH), a single session often needs to manage multiple aspects simultaneously: skill directory visibility, global tool availability, persona settings, permission configuration, and prompt templates. These settings are typically scattered across five different locations, requiring manual adjustments every time you switch scenarios. The dsh-workflow-presets plugin (hereafter referred to as dsh-workflows) bundles these five configurations into a single preset, allowing you to make comprehensive adjustments with one switch.

Plugin Positioning & Maintenance

dsh-workflows is a workflow presets plugin maintained by patrickb46-hub under the MIT license. It provides per-session workflow presets for DSH, centralizing the management of five previously scattered configuration items.

Core Features

A single preset simultaneously controls five aspects:

  1. Skill Directory Tier
    - full: Display complete skill descriptions
    - compact: Retain only the first sentence, up to 60 characters
    - hidden: Remove from the model’s skill directory (/name commands remain available)
    - Default tier: tiers['*'], individual skills can be overridden separately

  2. Global Tool Gating
    - Hide skills with specified prefixes via hiddenPrefixes
    - Disable globally registered tools (MCP servers, configuration-layer plugins) via deniedGlobalTools
    - Per-turn tools cannot be hot-hidden; a preset switch is required

  3. Persona Paragraph
    - Appends an additional paragraph to the system prompt with order 900

  4. Permission Preset
    - Automatically applies a specified permission preset when switching

  5. Prompt Templates
    - Provides insertable prompt templates for the input box

Preset priority: explicit skill entry → hiddenPrefixes → tiers[‘*’] → full

Built-in Presets

The plugin ships with seven presets:

id Name Use Case
general General No compression, no disabling
exam Exams & Assignments Paper layout, de-AI style, hides video and chat skills
writing Writing & Documents Documents, speeches, bilingual drafts, diagrams
study Study & Research Book distillation, video learning, knowledge graphs
video Video Production Narration videos, storyboard analysis, voiceover, motion graphics
build Development & Plugins Plugin development, code graphs, releases
daily Daily & Email Email, calendar, disk, message archiving; retains email-sending tools

Built-in presets can be edited, duplicated, or deleted, but the skill names referenced in their definitions need to be adjusted to match your actual setup.

Installation & Activation

Marketplace Installation

Search for dsh-workflows in the DSH plugin marketplace and click Install.

Command-line Installation

Pin to version 1.0.0:

dsh plugin --profile <profile> add \
  https://github.com/patrickb46-hub/dsh-workflows/releases/download/v1.0.0/dsh-workflow-presets-1.0.0.tgz

Manual Installation

For scenarios requiring manual configuration management, add the dependency and bundle to the profile’s package.json:

{
  "dependencies": {
    "dsh-workflow-presets": "https://github.com/patrickb46-hub/dsh-workflows/releases/download/v1.0.0/dsh-workflow-presets-1.0.0.tgz"
  },
  "dsh": { "profile": { "bundles": ["dsh-workflow-presets"] } }
}

The plugin automatically injects a loader into cordis.patch.yml and loads the seven default presets. Custom configuration can be overridden via the profile’s cordis.patch.yml:

- id: dsh-workflows
  config:
    policy: '{"version":2,"defaultWorkflow":"general","workflows":[...]}'

Commands & Usage

List Presets

/workflow — Displays all presets, marking the currently active one.

Switch Preset

/workflow <id> — Switches the current session to the specified preset.

Check Status

/workflow status — Returns current preset information in JSON format.

Inspect Configuration

/workflow check — Returns skill and tool count statistics.

Text Rewriting

/enhance <text> — Rewrites text using the configured model without logging the original.

UI Interactions

Left Sidebar

  • Workflow Presets — Preset editor: create, duplicate, delete, rename, and edit persona, templates, tiers, hidden prefixes, denied tools, and model.
  • Prompts — Template library plus offline rewrite sandbox.

Composer

  • Workflow button (to the left of Prompt Optimization) — Opens the presets tab in the right panel.
  • Prompt Optimization button — Opens the prompts tab in the same panel.

Right Panel (Workflow Assistant)

  • Switch presets
  • Toggle for applying templates when switching presets
  • Select skill tier
  • Rewrite draft
  • When the draft is non-empty, three options are available: Replace, Append, or Skip

Switching presets does not write to skill files. Directory changes take effect on the next turn. Persona paragraphs are re-evaluated with each prompt. Permission presets take effect immediately.

Prompt Optimization does not modify the preset; it only generates a new draft, providing “Use Optimized” and “Restore Original” options.

Limitations

  • Skill tiers only cover disk-based skills (~/.dsh/skills, ~/.agents/skills, project skill root directory); plugin-bundled skills and skills from other plugins are unaffected.
  • deniedGlobalTools applies only to tools registered at the Host layer; per-turn tools cannot be hot-hidden.
  • The right panel requires an active session; without one, only the two left panels are available.
  • The /enhance command leaves a single entry in the session log, but the rewritten text is not written to history.
  • After a page refresh, the panel may display the previously cached preset until the host responds.
  • UI strings are only available in Chinese.

Use Cases

Ideal for DSH users who frequently switch between work modes, such as: students completing different types of assignments, developers switching between plugin development and release modes, or creators planning different content types. The plugin runs with the current DSH process permissions; review the source code and license before installation.

Conclusion

dsh-workflows bundles five scattered configuration items into quickly switchable presets, reducing the manual adjustment overhead. The seven built-in presets serve as a starting point; adjust them according to your actual skills and tools to build your own preset library. For further customization, refer to the configuration schema to define or override presets.

  • Plugin directory: https://www.skillhub.cn/plugins/patrickb46-hub/dsh-workflows
  • Source repository: https://github.com/patrickb46-hub/dsh-workflows
羽毛球分组比赛记分
小程序二维码

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

Xiaoye