The core philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” During use, modifying system prompts, managing multiple agent assistants, or switching base modes often requires configuring multiple steps. The dsh-custom-mode plugin provides a centralized management interface for editing system prompts, managing multiple assistants, and switching base modes and plugin toggles.
Introduction¶
This is a client plugin maintained by BOWLUNA. Its core functionality allows users to directly edit system prompts in DSH’s Custom mode, manage multiple assistants (such as Coding, Writing, Chat), and switch the current assistant’s base mode and tool toggles.
Installation and Activation¶
Run the following command in the terminal to install the specified version:
dsh plugin --profile web add dsh-custom-mode@2.2.5
After successful installation, restart the DSH process. You can view the version number v2.2.5 in Settings -> Custom mode, and the session mode selector will offer the Custom mode option without showing preset corruption warnings.
Typical Usage¶
- Open the management interface: Navigate to Settings -> Custom mode.
- Edit prompts: Modify the system prompt in the editor; the save button is located directly below the editor.
- Create and configure assistants:
- Select a preset (e.g., Writing), click New assistant to create a new assistant, then edit its prompt.
- Change the current assistant’s base mode (e.g., Standard, PTC, etc.) and tool toggles, then save the configuration.
- New session activation: When
agent-presets.defaultis not set insettings.yaml, new sessions will use the currently configured assistant. Ifagent-presets.defaultalready exists, the original value will remain unchanged.
How It Works¶
The plugin stores prompts in the prompt.md file. Each time model steps are assembled, the plugin reads this file.
- Save mechanism: When loading an old draft from history, the save operation checks if the file has changed to prevent overwriting. If the file has been modified externally, the save will fail.
- Model modification: The model can request modifications to this file through the
custom_promptinterface, but confirmation will be required before making changes. - Assistant branching: The page is divided into two branches. The currently open assistant is used for editing, and all five base modes are selectable. When creating a new assistant, Coding, Writing, and Chat options are available, and only the official Standard mode is enabled, while the other four official modes are not selectable.
Use Cases and Notes¶
- Use cases: Suitable for developers who need to frequently adjust behaviors of different agents and manage multiple prompt templates.
- Compatibility limitations:
- Permission restrictions: CLI cannot modify desktop profiles.
- Platform verification: Windows Electron has not been verified yet.
- Mode replacement: This plugin does not replace Standard, PTC, Minimal, or Creator modes, nor does it include role-playing presets.
Summary¶
With dsh-custom-mode, developers can customize agent behaviors more flexibly in DSH. For more details and source code, please refer to the GitHub repository.