dsh-workflow-boost: Completing 15 Configurable Workflow Mechanisms for DeepSeek Harness

Introduction

In DeepSeek Harness (DSH), coding agents have native capabilities covering rule routing, compression, and target services. If you have used tools like ZCode, Cline, Aider, or Claude Code, you often notice they handle workflows more smoothly regarding “turn budgets, deadlock detection, post-edit self-checks, evidence-based completion, and visible cache costs.” Implementing these capabilities manually by modifying the host or stacking temporary scripts can easily disrupt DSH’s prefix KV cache discipline and is difficult to reuse across teams.

dsh-workflow-boost, released by community maintainer SlumberMin, is categorized as a workflow plugin. The current version is 1.3.2, adapted for DSH 0.2.x (source baseline 0.2.2-rc.1), under the MIT license. It consolidates the above mechanisms into 15 switchable modules, providing about 100 fields for immediate editing in the plugin settings page, with changes taking effect without restarting DSH. The plugin directory is also available on the SkillHub plugins page; the site is a community directory with no official affiliation with DeepSeek or Huanfuan.

The following sections explain positioning, modules, installation and configuration, typical usage, and precautions.

What is this

One sentence: Host plugin + lightweight Web settings client. Without rewriting native pruner/compaction or altering dynamic system prompts at every step, it transfers common coding agent workflow experiences to DSH using methods like “tail append, static segment registration, and model-on-demand invocation.”

The README explicitly states it does not do: rewrite native compression, replace rulesRouter, dynamic toolset per step, parallel sub-agent orchestration, pre-execute parameter modification, etc.

Core Features: 15 Modules

The design of each module includes a comparison table in the README regarding the source of inspiration and the impact on prefix caching. Here, they are grouped by responsibility for easier selection.

Context and Cost

  • microcompact: Cleans old tool results before a full summary; triggered by dual thresholds of pressure/remaining budget. It keeps the first task context and the latest few groups of tool results, uses surfaceOp replace to replace placeholder text, and writes compaction/prune shadow pricing. Cache invalidation starts from the first cleared position, with older ones cleared first.
  • cacheReport: Read-only display of expected/unexpected miss attribution, compression ledger, context breakdown, and cost estimation.
  • handoffNotes: When pressure is high, writes goal/todo/recent activity to .dsh notes, which are then injected once as a notice after compression.

Process and Quality Gates

  • focusChain: Injects a live checklist snapshot (including Next lines and acceptance criteria) to the user role every N tool calls; forced re-injection after compaction; appended only to the history tail.
  • duplicateGuard (also referred to as “stuck” capabilities in the README): For patterns such as same action/observation, consecutive errors, A/B ping-pong, monologue, compression dead loops, it warns then blocks; recovery tools are exempt; does not modify system prompts.
  • turnGuard: Checks step count/elapsed time/token budget before agent/turn-stopping; steers to wrap up if limits are exceeded; can steer once if there is a goal but no evidence or an incomplete todo.
  • editCheck: Runs configured commands (e.g., tsc) via glob after successful write tools; if it fails, the simplified output is re-injected; disabled by default.
  • reviewGate: Deterministic checks on the diff before completion (keys, conflict markers, debug residues, abnormally large deletions, etc.); can be used in conjunction with goalGate.requireReview.

State, Goals, and Repository Awareness

  • checkpoint: Backs up modified files before writing; provides checkpoint_list/diff/restore tools; restoration requires confirmation.
  • goalGate: goal_verify runs multiple verification commands and git evidence; under enforce, completion can be blocked if there is no fresh evidence.
  • repoMap: Regex extraction of definitions, personalized reference sorting, and incremental indexing; outputs within token budget; enters context only if the model actively calls it.
  • memoryLint: Read-only audit of memory files like AGENTS.md/CLAUDE.md; can propose changes via memory_propose, but does not automatically modify instructions.

Extensions and Expression

  • hookBus: Six lifecycle events mapped to allow/deny/addContext/steer; disabled by default.
  • skillPack: Registers built-in skills like verify/cache/checkpoint/repomap via the native skills service; the directory occupies few tokens.
  • stylePack: Static system prompts (identity line + checkable rules) and /boost-* slash commands; switching only appends a notice to the history tail; editable in the settings page.

Installation and Enablement

The plugin runs with the permissions of the current DSH process; please check the source code and license yourself before installing.

Releases provide a tgz for direct installation. Replace <profile> with the actual profile name (often desktop for desktop version, web for dsh web):

dsh plugin --profile <profile> add https://github.com/SlumberMin/dsh-workflow-boost/releases/download/v1.3.2/dsh-workflow-boost-1.3.2.tgz

You can also install from Git source:

dsh plugin --profile <profile> add github:SlumberMin/dsh-workflow-boost

For the desktop version, you can paste the tgz URL or github:SlumberMin/dsh-workflow-boost in Settings → Plugins, install, and restart DSH to take effect. The README reminds: versions 1.1.0 and earlier have lib/config.js that may fail to load on a real host; you should upgrade to 1.2.0 or above.

For the first installation, it is recommended to use conservative defaults: goalGate.mode: advisory (switch to enforce after configuring verifyCommands), editCheck.enabled: false, hookBus.enabled: false.

Enable Cordis patch

Append to the end of the profile’s cordis.patch.yml (if the file is just [], replace it entirely with the following block):

- insert:
    - id: workflow-boost
      name: dsh-workflow-boost

When patchReload: live, HMR auto-reloads; when startup, DSH restart is required.

Configuration Essentials

All configuration is optional. See the repository README for full fields; since version 1.3.0, all 15 module fields can be adjusted in the DSH plugin settings page. Common items are excerpted below (defaults are based on the README):

- insert:
    - id: workflow-boost
      name: dsh-workflow-boost
      config:
        enabled: true
        microcompact:
          enabled: true
          triggerRatio: 0.72
          keepRecentGroups: 5
        focusChain:
          enabled: true
          everySteps: 6
          injectAfterCompaction: true
        duplicateGuard:
          enabled: true
          remindAt: 3
          blockAt: 5
        turnGuard:
          enabled: true
          mode: advisory
          maxSteps: 150
        editCheck:
          enabled: false
        checkpoint:
          enabled: true
        goalGate:
          enabled: true
          mode: enforce
          verifyCommands: []
        hookBus:
          enabled: false

When verifyCommand is empty and verifyCommands is empty, goal_verify no longer passes; under enforce, it will reject completions without evidence. When editCheck and hookBus are enabled, they execute the configured shell commands; enable them only in trusted environments.

Typical Usage

  1. Long Session Context Control: Keep microcompact and focusChain on, watch cacheReport attribution/ledger, and raise handoffNotes.minPressureRatio if necessary to leave structured handoff before compression.
  2. Prevent Agent Idling: Combine duplicateGuard and turnGuard; if the team wants a hard cutoff, set turnGuard.mode to enforce and configure maxSteps / maxMinutes.
  3. Rollback for Code Changes: Enable checkpoint and use the checkpoint tools called by the model to perform diff and restore.
  4. Completion Requires Evidence: Configure goalGate.verifyCommands and requireGitEvidence, then switch from advisory to enforce; set requireReview: true if manual diff review is needed.
  5. Style and Identity: Edit stylePack in the settings page or use /boost-* commands to switch answer styles; switching only affects the notice at the tail of the session.

Built-in skillPack skills and the repoMap tool are suitable for on-demand loading when the model needs to verify build, cache, or repository structure, avoiding permanently occupying the context.

Applicable Scenarios and Notes

Suitable for: Developers and teams already running coding agents on DSH 0.2.x, who want to use a switchable mechanism to align with other agent workflows, and care about prefix cache behavior.

Notes:

  • The plugin is not an official DeepSeek release; please use the GitHub repository for stars and feedback.
  • engines.dsh requires >=0.2.1-rc.3 <0.3.0-0, consistent with verifiedAgainst: 0.2.2-rc.1 in the package; check compatibility before upgrading the DSH major version.
  • For manual installation, place the plugin directory in the profile’s plugins/, reference it with a file: dependency in package.json, and then install using the DSH built-in runtime pnpm (see README “Method B”).

Conclusion

dsh-workflow-boost turns verified workflow mechanisms from various coding agents into an installable, configurable plugin package for DSH with predictable impact on KV cache. If you need to balance compression, gates, evidence-based completion, and cost visibility in long tasks, install from the Release tgz or github:SlumberMin/dsh-workflow-boost and fine-tune modules in the settings page.

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

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

Xiaoye