DSH-Preset-Dispatch: Managing Role Presets and Subagent Dispatch in a Single Page

Introduction

In DeepSeek Harness (DSH), “Presets” are managed by a native mechanism: prompts, tool templates, stable IDs, etc., are maintained within a unified workflow. On the other hand, “whether a preset can be dispatched by a parent agent, which models can be used, and how to limit reasoning effort” often reside in a different configuration section. Modifying a preset’s responsibilities requires separate changes to the dispatch policy, necessitating frequent switching between multiple interfaces. Additionally, if the interface merely hides options, unauthorized writes might still reach the server.

This document introduces the community plugin DSH-Preset-Dispatch (repository BigRagdollCat/DSH-Preset-Dispatch, maintained by BigRagdollCat). It merges preset editing with sub-agent dispatch authorization into the “Agent Management” section within settings: a single modal, a single save action, with ownership and authorization boundary constraints enforced on the Host side. SkillHub directory page: DSH-Preset-Dispatch (community site, not officially affiliated with DeepSeek / High-Flyer).

What is this?

DSH-Preset-Dispatch (npm package name @local/dsh-preset-dispatch, current version 0.6.0) is a Web client plugin for DSH. It provides a native-style card grid in settings, distinguishing between “Managed by this plugin” and “Other presets (Read-only)”. Clicking a card opens a view where the top half displays preset details (Name, Stable ID, Responsibilities, Role Prompt, Tool Permission Templates, etc.), and the bottom half displays sub-agent dispatch policies. Saving follows a unified protocol and is validated on the server.

Parent agents use the tool interfaces preset_list and preset_dispatch to view the dispatchable directory and create sub-agents. The dispatch process includes main conversation cards, sub-session configuration badges, and optional call logs and persisted metadata (last 50 entries).

What changes compared to the native approach

Original This Plugin
Preset and dispatch settings scattered One modal, one save
Frontend hiding is hard to prevent privilege escalation Only managed presets are writable; other presets are read-only on the server
Lack of feedback on save failures Itemized results: Persisted / Pending Retry visible individually
Already initiated sub-agents might still start after revoking access Authorization is re-checked before creating a sub-agent
Dispatch history is easily lost upon restart Storage domain preset_dispatch_history v1; interrupted records marked as interrupted
Frequent reads of model catalog from providers Catalog can be cached; authorization decisions bypass cache

Core Features

Preset (Role) Management

  1. Settings → “Agent Management”: Supports search by Name / ID / Description; ↑ / ↓ buttons write to the native preset order, consistent with the order in DSH’s native preset list.
  2. Lifecycle: Create, Copy (independent ID and policy), Delete (double confirmation; default presets and those with active sessions are rejected; dispatch is disabled before deletion).
  3. Managed presets are declared via the native agent-managed-presets group and still appear in the DSH native Agent preset list. Content hash and version increment: new sessions use the new version, while already bound sessions retain the old version.

Dispatch Authorization and Model Policy

Each preset can be configured with:

  • “Allow dispatch as sub-agent” toggle.
  • Model scope: Follow Host Authorization Pool or Only Allow Selected Models; models not in the DSH global authorization pool are labeled “Requires Authorization.” Checking to expand permissions requires confirmation to “Enable DSH Global Model Authorization simultaneously.”
  • Default Model (or inherit from parent agent), default Reasoning Effort, Allowed Reasoning Effort list, and whether to lock the default model.
  • Global items also include the DSH sub-agent model authorization pool and maximum dispatch depth.

Authorization is divided into three layers with an intersection taken: Catalog Visibility, Global Authorization Pool (subagent-model-selection-settings), and Preset Allowlist. A re-check is performed every time a sub-agent is actually created.

Saving, Dispatch, and Visibility

  • Unified write endpoint: After ownership, revision CAS, and authorization pool pre-validation, writes are persisted in the order of “Authorization Pool → Definition → Policy”. Supports operationId idempotency and draft protection.
  • preset_dispatch supports reasoning_effort, run_in_background, optional catalogId, and optional selection (parent agent reports low/medium/high complexity and a 1–160 character reason; does not participate in authorization).
  • Main conversation cards and sub-session bottom-left / input area badges distinguish Planned Configuration from Actual Request Submitted by Sub-session; run results are written to the run envelope fields in tool/result.meta.
  • Query compression compressUsedQueries is configurable in the profile config and is disabled by default. The README explicitly states that Token/cost savings have not been verified on the real desktop client; this article does not claim reduced costs.

Seven Built-in Managed Roles

The plugin comes with seven editable roles (specific available models depend on your instance’s provider and authorization pool; the table below shows the default dispatch from the README):

Preset ID Name Tool Template Default Dispatch
planner Planning Architecture Read-only 6.1 Sol · high
researcher Research Retrieval Research Retrieval DeepSeek V4.1 Flash · high
investigator Root Cause Investigation Read-only 6.1 Sol · high
reviewer Code Review Read-only 6.1 Sol · medium
implementer Implementation Development Implementation Development DeepSeek V4.1 Flash · high
test-author Test Writing Test Writing 6.1 Sol · high
verifier Test Verification Test Verification DeepSeek V4.1 Flash · high

Installation and Activation

Prerequisite: DeepSeek Harness runtime 0.2.0-rc.2 (package.json declares peer: @deepseek-ai/dsh >=0.2.0-rc.1 <0.3.0-0). If installation is rejected by the compatibility gate (incompatible-version), you can execute dsh plugin allow-version as needed (README note: use only if you accept the risk of inconsistency with the declared peer).

After obtaining the plugin directory from the GitHub Repository, execute the following pointing to the local directory:

dsh plugin --profile web add ./DSH-Preset-Dispatch

Restart dsh web after installation is complete. Host-side modules are only reloaded upon process restart; refreshing the page alone will not load new Host code. Client-side changes take effect after a page refresh.

After successful installation, the “Agent Management” section should be visible in DSH settings.

Quick Start

  1. Open Page: DSH Settings → “Agent Management”.
  2. Edit Roles: Click a card → Configure role information and dispatch policy within the same modal → Save. Only after enabling “Allow dispatch as sub-agent” can the parent agent invoke this preset via preset_dispatch.
  3. Model Scope: When selecting “Specify Models,” follow the interface requirements to handle global model authorization to avoid bypassing the DSH global pool on the page.
  4. Adjust Order: Click card ↑ / ↓ to directly write to the native order.
  5. Call Logs: View the last 50 dispatch metadata entries (Role, Model, Effort, Status, optional selection and tokenUsage, etc.) via “Call Logs” at the top of the page. Refresh is available.

Typical flow for the parent agent side: First use preset_list to get a concise directory (can include diagnostic: true for diagnostics), then use preset_dispatch to create a sub-agent by preset ID; if the model is omitted, the preset default is used, and if no default exists, the parent model is inherited.

Configuration and Data Storage (Excerpts)

In the profile patch, this plugin’s config can include (README / Data & Privacy Table): allowedPresets, allowModelSelection, compressUsedQueries, as well as initial values for maxDepth and presetPolicies. The settings namespace local-preset-dispatch stores the maximum dispatch depth and dispatch policies for each preset. Dispatch history is in the storage domain preset_dispatch_history v1; if storage is unavailable, it falls back to memory and reports the reason.

Use Cases and Notes

Suitable for: Teams or individuals who need to maintain multi-role Agent presets in DSH long-term and want dispatch policies, model scope, depth limits, and native preset order to remain consistent; who want the server to reject writes to non-managed presets and block new sub-agent launches after authorization revocation.

Important Notes:

  • The plugin Host routes and saving logic run with the current DSH process privileges. You should read the source code and LICENSE before installation to ensure compliance with your security and compliance requirements.
  • The HTTP API requires authenticated operators; authorization does not rely on “being hidden behind the interface.”
  • The README records that currently 373 out of 376 automated tests pass, with 3 skipped (related to host package parsing within the desktop app.asar); some real desktop client and Flash / Codex links are still marked as not verified.
  • Call logs and selection.reason are persisted as free-text metadata; callers should not write keys, task source text, or reasoning processes.

Conclusion

DSH-Preset-Dispatch consolidates scattered preset editing and sub-agent dispatch authorization into the “Agent Management” section, constrains dispatch boundaries using server-side ownership and a three-layer authorization intersection, and supplements this with itemized save feedback, pre-launch re-checks, and dispatch metadata persistence. If you see version 0.6.0 on SkillHub or GitHub, you can install it using the command above, restart dsh web, and start adjusting the seven built-in roles or create your own presets from the settings page.

  • Directory Page: https://www.skillhub.cn/plugins/BigRagdollCat/DSH-Preset-Dispatch
  • Repository: https://github.com/BigRagdollCat/DSH-Preset-Dispatch
羽毛球分组比赛记分
小程序二维码

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

Xiaoye