DeepSeek Harness: Preset Plugins for Agent Mode

Introduction

In DeepSeek Harness (DSH), “modes” are typically just behavioral descriptions without a corresponding fixed set of persona, toolset, and plugin mounting. When switching between modes for different tasks, behavioral inconsistency or unintended inheritance often occurs, making it difficult to guarantee reproducibility. This plugin turns “modes” into true agent presets: each mode has its own independent persona, toolset, and plugin mounting. At the start of a task, the session is composed according to that preset combination, avoiding inheritance or unexpected behavior.

What It Is

dsh-agents-models is a DSH plugin published by maintainer Wakis-kaf. It upgrades agent modes into configurable presets, where each preset can independently define its persona, toolset, and plugin mounting. The plugin ships with six built-in modes and provides unified WorkBuddy command guard and adjustable delivery gates.

Core Features

Built-in Modes

The plugin provides the following six modes by default, each mounting a different set of tools and plugins:

Mode Default Mounts
Flash persona + file read/write + read-before-write policy + code search + persistent PowerShell + background tasks + Web + todo + ask-user + skills + present + compaction
WorkBuddy Flash persona + file read/write + read-before-write policy + code search + persistent PowerShell + background tasks + ask-user + todo + present + compaction + strict WorkBuddy guard; does not mount web / skills
Unity persona + two Unity Editor tool bridges + file read/write + read-before-write policy + code search + PowerShell + tasks + todo + ask-user + present + compaction
Flash Pure persona + compaction only. No tools, no plugins
Work Fish Work Fish’s own persona, write guard, and skill library, combined with this plugin’s tool surface. Requires dsh-work-fish
WorkFish Same configuration as Work Fish, plus delegation (subagent, subagent_fork, subagent_control), following the upstream “Big Fat Fish” tool list. Requires dsh-work-fish

The two Work Fish modes differ only in their tool surface. Both retain the task board, ledger, and /wf/* panels, which are mounted globally by dsh-work-fish. Re-mounting them within a preset would register duplicate routes, so they are not mounted.

WorkBuddy Command Guard

Flash mounts workbuddy-guard; WorkBuddy Flash mounts workbuddy-guard-strict. Both are transparent guards—they are not exposed to the model as tools but run before dispatch, returning short prompts the model can understand. The guard activates when the session provider is WorkBuddy. It is configured by default in catalog.js and can also be adjusted in each mode’s “Parameters” tab. The field meanings are as follows:

Field Default Meaning
provider workbuddy Only guards sessions going through this provider; not adjustable on the page
maxReadBytes 10 MiB Rejects file reads exceeding this size
maxJobWaitMs 30000 Rejects job_output(wait: true) exceeding this timeout
denyRepeats true Rejects exact duplicate pwsh commands
repeatWindowMs 120000 Only rejects repeats within the window; repeats outside the window are allowed
maxToolSteps 0 Session tool-call budget; only actually executed calls count; present/ask_user_question/job reads do not count; strict mode sets this to 120
repeatLimit 1 Maximum executions of the same command within the window; strict mode sets this to 3
requirePlanBeforeWrite false Requires a todo_write plan to exist before a write exceeding planThresholdChars in length; enabled in strict mode; the mode can disable it in Parameters
planThresholdChars 4000 Write length threshold that triggers the plan gate
requireReadBeforePresent false Rejects present on files written or edited after the most recent read; enabled in strict mode
requireRenderBeforePresent false Rejects present on .html/.htm/.svg deliverables unless an image has been opened with read_image after the last write; enabled in strict mode
requireMotionBeforePresent false Rejects present on a page unless at least two frames have been viewed with different bytes after the last write; enabled in strict mode

Why the Render Gate Exists

requireReadBeforePresent compares two facts about the same file, so reading the page’s own source code is sufficient to pass. This cannot distinguish between “the script never ran” and “the script ran but produced no animation.” In one session, 16 KB of animation source code was written, the source was read back and claimed as a review, and then a bird image that was never stepped on was delivered.

requireRenderBeforePresent closes this loophole by requiring a different artifact (an image): opening the image after the last write means the source code no longer counts. The source code cannot answer the one critical question: is there change in the frames?

Why the Motion Gate Exists

A single frame cannot answer it either. A static screenshot and an animated screenshot look equally “complete” visually. A session that uses its own screenshot as an optimization target will happily polish a frozen image—what actually happened was: 9 rounds of “render-preview-edit,” 60 calls, and a delivered file containing no @keyframes, requestAnimationFrame, or SMIL.

requireMotionBeforePresent requires two frames from the same build and compares their bytes. If both frames have identical bytes, they are the same image, and the system rejects delivery with a hint. It is not a motion detector (drifting clouds would pass), but it catches two failures that actually occur: never rendering a second frame, or rendering the same static image twice. It only applies to pages that declare animation (@keyframes, animation, requestAnimationFrame, <animate>); static pages (landing pages, reports, dashboards) do not need the check, which would otherwise cause a deadlock.

WorkBuddy Flash Mode

workbuddy-flash is a WorkBuddy-specific preset, not a replacement for Flash:

  • Streamlined toolset: file read/write, read-before-write policy, code search, persistent PowerShell, tasks, ask-user, todo, present, compaction, strict guard. Does not mount web or skills, reducing the model’s wandering paths. Retains todo because the plan gate requires it.
  • Mechanical protocol: single-line status header, conclusions stated only once, a single legitimate revision line (corrected: new evidence → new conclusion), content not seen in tool output marked as “unverified,” per-tool 2-strike circuit breaker, pre-send self-check. No per-round call limits or task classification—both were previously left to the model’s own judgment, and weaker models would read in “answers” to save effort. The only binding constraints are the guard’s session budget and repeat limits, which the model cannot bypass through language.
  • Strict guard: basic dangerous-command rules, exact-repeat pwsh rejection (allowing one re-run), 120 tool-call session budget (only actual executions count), four delivery gates (independent of model self-discipline).

Installation and Activation

Please refer to the official repository documentation before installing. The installation command and activation method should follow the official instructions.

Typical Usage

  1. Select a built-in mode in the DSH session, such as WorkBuddy Flash or Unity.
  2. Adjust the mode’s Parameters based on task requirements (e.g., loosen or tighten maxReadBytes, maxJobWaitMs, maxToolSteps, requirePlanBeforeWrite, etc.).
  3. In WorkBuddy sessions, the plugin automatically applies the corresponding guard and delivery gates—no additional configuration needed.

Use Cases and Notes

Suitable for agent tasks requiring strict behavioral constraints and reproducibility, especially in code building, file operations, and front-end delivery scenarios. The plugin runs with the current DSH process permissions. Review the source code and license before installing.

Short Conclusion

This plugin upgrades DSH modes into truly configurable agent presets, providing built-in modes and flexible guard and delivery gates to help build more controllable session behavior.

  • Catalog page: https://www.skillhub.cn/plugins/Wakis-kaf/dsh-agents-models
  • GitHub: https://github.com/Wakis-kaf/dsh-agents-models
羽毛球分组比赛记分
小程序二维码

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

Xiaoye