Introduction¶
In DSH (DeepSeek Harness), presets determine the “startup configuration” of a new session: which preset you choose gives the session’s AI its persona and determines the tools that are mounted. If you have to manually edit the composite files and YAML under .agent-presets, or rely on creative mode to write them for you, iteration is costly and mounting mistakes are easy to make. Below we introduce the community plugin dsh-preset-workbench (maintainer DDDMUC), which provides a one-page visual workbench in the DSH settings page. It lets you view, create, and edit presets using segmented prompts, capability switches, and built-in templates—without hand-writing YAML.
What Is This¶
dsh-preset-workbench is a client-side plugin for DSH (dsh.client.platform in package.json is web). Its purpose is to create and edit user Agent presets in Settings → Preset Workbench, and—via the plugin mechanism—declare user presets on disk into the DSH preset registry.
In implementation, the plugin adds UI to the settings page and reads/writes the local .agent-presets/<id> directory through a loopback HTTP bridge (/api/preset-workbench). A preset consists of composite files, prompt segments (sections.json lists the segments), and metadata. System presets (such as standard, code, minimal, cordis) are read-only; write operations are limited to user presets, and if the id conflicts at creation the plugin will refuse—it will not overwrite an existing preset with the same name on your machine.
The plugin requires DSH version >=0.2.0-rc.1 (see dsh.engines in package.json). The current npm package version is 1.1.0, license MIT. Community directory page: skillhub.cn/plugins/DDDMUC/dsh-preset-workbench; source code: github.com/DDDMUC/dsh-preset-workbench.
Core Features¶
Segmented Prompts¶
Each prompt segment has an independent title and content, plus an enable checkbox: when checked it is included in the system prompt; when unchecked the text remains in the editor but is not sent to the AI. You can add or delete segments, then save.
Capability Switches¶
There are 15 optional tool capabilities: checking a box writes it into the preset composite file; unchecking removes it. Each toggle automatically performs mounting validation. Some capabilities are in a “reserved wiring (disabled)” mode; command-compact (the /compact command) can be turned off, while persona and auto-compaction-related capabilities remain locked. Foundational capabilities such as the command shell, file editor, and long-conversation compaction do not have switches.
The README summarizes capabilities by risk tiers as follows (specific items are subject to what is shown in the settings page):
| Tier | Capability Types (Summary) |
|---|---|
| Safe | Web search & fetch, standard file tools, AGENTS.md, skills library, confirmation prompts, task list, background tasks, long-term goals, planning mode, etc. |
| Moderate | Sub-agents and workflows (including the Ralph iterative agent) |
| High-risk (with environment prechecks) | PPT/code mode demos (requires host codeRuntime), cordis_* plugin-modification tools, etc. |
| Reserved wiring | Codex, Claude Code product sub-agents, one-off bash/pwsh, etc. (writes the same disabled lines as the official implementation) |
Source Badges¶
Each preset is marked with a source badge so you can distinguish built-in templates from custom content:
| Badge | Meaning |
|---|---|
| Built-in template | id matches a template under the plugin’s templates/, and the content is byte-for-byte identical to that template |
| Built-in template · modified | based on a template id, but the content has been changed |
| Custom | not a built-in template; created by the user |
| Official preset | declared by DSH or a third-party plugin; no directory on disk; viewable in the workbench only |
Create, Validate, and Open Directory¶
- Create a preset: enter an English lowercase id and display name, expand the segments and capability switches from a template in place, edit as needed, then “Save as new preset”. The template itself is not modified.
- Validate mounting: simulate a session load and report composite errors.
- Open directory: open the preset folder in the file explorer.
- Delete preset: two-click confirmation; limited to user presets.
Switch Presets in Conversation¶
A preset “pill” is provided above the input box so you can switch presets during a conversation. For a session that has already started, the switch is queued to take effect after the next automatic compaction, and the pill can show “Current › Target”. On the “Switch Presets in Conversation” page you can set the pill to always show, show on hover only, or not show (preference is stored in the local browser).
Built-in Templates¶
After installation the plugin ships with three templates (templates/) that are available on any machine where it is installed:
| Template id | Description |
|---|---|
cetacea (Whale Girl) |
Minimal role-play: persistent shell, file editor, compaction, and segmented persona |
liangshen (Liang Shen mode) |
Full-featured: file/search/skills/goals/planning/compaction/sub-agents/workflow/Ralph/networking, etc. |
bare (empty prompt) |
Bare template: initially no system prompt or tool list; segments are empty; add your own |
The workbench UI is divided into four parts: View, Create, What is a preset?, and Switch Presets in Conversation.
Installation & Activation¶
From the README, installation can be done via local path, GitHub, or npm:
# Install from a local directory
dsh plugin add --profile web <absolute path to this plugin directory>
# Or install from a GitHub repository
dsh plugin add --profile web github:<your-username>/dsh-preset-workbench
For this repository, you can replace the placeholder username with the maintainer path, for example:
dsh plugin add --profile web github:DDDMUC/dsh-preset-workbench
The README also states that the package includes templates/, so you can also use:
npm install dsh-preset-workbench
Or:
dsh plugin add dsh-preset-workbench
After installing, restart dsh, then open Settings → Preset Workbench to use it.
Typical Usage¶
- Open Settings → Preset Workbench.
- Choose a user preset in the dropdown (Whale Girl / Liang Shen / Empty Prompt, or a custom preset).
- Edit each prompt segment and click “Save all”—this affects new sessions started afterwards; the current session is unchanged.
- Create a preset: enter id and display name → create from a template → modify content and capability switches → save.
- Expand “Capability Switches” and check the capabilities you need; each toggle runs automatic validation.
To change presets during a conversation, use the pill above the input box. Switching takes effect after the next automatic compaction; the menu uses ✓ and “after next compaction” to distinguish current vs. pending items.
Scenarios & Notes¶
Who it’s for: DSH users who frequently adjust Agent personas and tool combinations but don’t want to maintain YAML directly; developers who want to fork custom presets quickly from templates.
Effect scope: Per the README, saving and switching rules are—saving affects new sessions; in-session switching is queued to the next automatic compaction.
Security & trust: The plugin reads and writes the local preset directory with the current dsh process privileges; high-risk capabilities include environment prechecks. Before installing, it’s recommended to read the MIT license and the repository source. The DSH ecosystem emphasizes “everything is a plugin”; community directories such as SkillHub are independent sites and have no official affiliation with DeepSeek / Huanchuan.
FAQ (excerpt from README): It will not overwrite an existing preset with the same name; official system presets cannot be modified; changes take effect for new sessions.
Conclusion¶
dsh-preset-workbench brings Agent preset editing into the settings page: segmented prompts, 15 capability switches, three built-in templates, and in-session switching, while clearly distinguishing built-in templates, custom presets, and official read-only presets. If you are already using DSH >=0.2.0-rc.1, you can install it with the commands above and try it in the Preset Workbench after restarting.
- Community directory: https://www.skillhub.cn/plugins/DDDMUC/dsh-preset-workbench
- GitHub: https://github.com/DDDMUC/dsh-preset-workbench