Introduction¶
When developing conversations or agents in DeepSeek Harness (DSH), system prompts are often assembled by the host and multiple plugins. Relying solely on the model’s default behavior can lead to narrow task understanding, conservative responses, and unclear delivery standards. If you want to switch a set of written system segments by scenario without modifying the DSH installation package, and verify if system messages are truly entered in local requests, you need a client-side plugin to handle registration, the panel, and status feedback.
Below is an introduction to the community-maintained Swallow · Purge Workbench (xiaozhang040316/dsh-yanyu-purge): providing a “Purge Workbench” in the DSH sidebar, using four schemes (Red, Yellow, Blue, Green) to switch prompts, supporting override or append of system segments, and distinguishing panel connection, registration, and local request confirmation. It also integrates Yan Yu account login and a balance floating window; balance-related capabilities can still be used independently even if the prompt master switch is turned off.
What is it¶
Swallow · Purge Workbench is a client-side plugin for DeepSeek Harness, maintained by xiaozhang040316. It is classified as Client-side in the SkillHub Plugin Directory. The GitHub repository currently has approximately 4 stars, is released under the MIT license, and the plugin package version is 1.4.2.
The project defines “Purge” as prompt optimization: writing character, task context, execution rules, and output requirements into the system prompt, with the goal of making the model closer to the intent, reducing unnecessary refusals, and constraining the response to executable steps and delivery standards. Actual effectiveness still depends on the model, task, and configuration; “Local Request Confirmation” on the panel verifies that the prompt has entered the request assembled by the local host group, and does not represent the quality of the remote response.
The plugin works via DSH’s SystemPrompt, slots, and a local Web service, relying on the host’s complete prompt segment and the llm/stream extension point. The core Host is in index.js, the client is in client.js, and the prompt body is in resource files in the prompts/ directory.
Core Features¶
Four-Scheme Switching¶
The workbench provides four schemes; clicking switches them, and the next model request takes effect without restart:
| Scheme | Focus |
|---|---|
| Red Swallow | Chinese expression |
| Yellow Swallow | English expression |
| Blue Swallow | Execution specifications |
| Green Swallow | Channel working specifications |
The panel only displays the scheme and status; the body text is not written on the panel but is read from independent resource files.
System Override and Append¶
- Injection Master Switch: Closing it revokes this plugin’s prompt registration; it takes effect from the next request upon reopening. Balance functions can still be used after closing prompt injection.
- Mode: New installations default to
purge, which replaces the system prompt segment assembled by DSH using the current scheme;injectmode can also be used to append.
Status and Local Confirmation¶
The panel distinguishes multiple types of status to avoid confusing “interface lit up” with “injected”:
| Panel Status | Meaning |
|---|---|
| Panel Connected | Status interface is connected |
| Ready, waiting for next request | Prompt segment registered, no new request confirmation yet |
| Prompt Read | DSH has called the current body text provider function |
| System Prompt Overridden / Injection Confirmed | Current scheme and mode matched in the system message of the local model request, and the most recent confirmation time is displayed |
The panel refreshes every 3 seconds while visible; switching schemes clears old confirmation records, and new records need to appear after the next request.
Yan Yu Balance¶
Use your own Yan Yu email and password to log in in the Yan Yu Balance area of the workbench (dynamic verification code supported). After logging in, the balance floating window can be expanded below the conversation input box. The amount is displayed in USD, rounded to four decimal places, auto-checked approximately every 15 seconds, and can also be manually refreshed. Tokens are stored encrypted with AES-256-GCM in the DSH configuration data directory. Rules for sessions and recovery after reload/restart can be found in the repository README.
Installation and Enablement¶
Online Installation (Git)¶
In DSH’s Plugins → Install, paste the Git address provided by the repository (version tags follow the README):
git+https://github.com/xiaozhang040316/dsh-yanyu-purge.git#v1.4.2
After installation, enable Swallow · Purge Workbench and reload as prompted by the host.
Local ZIP Installation¶
If Git is inconvenient, follow the “Three-Step Takeoff” in the README:
- Download the latest plugin zip package from Releases and unzip it to a fixed directory.
- In DSH Plugins / Plugin Management, select the directory containing
package.jsonto complete the local plugin installation. - Open the sidebar Purge Workbench, select a scheme, and send a new message to view injection-related status.
For more complete update methods and FAQs, see docs/INSTALL.md inside the repository. The documentation records verification in a Windows desktop DSH environment; related host modules in the installation package are marked as 0.2.1-rc.2; other distributions rely on actual loading results and Release Notes.
Typical Usage¶
- Install and enable the plugin, reload, and open the sidebar Purge Workbench.
- Confirm the Injection Master Switch is on, select Red/Yellow/Blue/Green based on the task; if you need to retain the host’s original system segment, change the mode to
inject(defaultpurgeis override). - Initiate a new model request and check the panel for “System Prompt Overridden / Injection Confirmed” and the timestamp.
- If you need to check Yan Yu balance: log in once in Purge Workbench → Yan Yu Balance, then use the Yan Yu Balance entry below the conversation input box.
Prompt switch and scheme selection belong to the current run state; after reload, they recover based on startup configuration like enabled, mode, scheme. Closing the switch only affects subsequent requests; in-progress requests still use the assembled content.
Applicability and Notes¶
Who is it for: Developers developing conversation flows in the DSH local or desktop environment who wish to switch working methods using fixed multiple sets of system prompts and verify injection via local request content.
Security and Permissions: The plugin runs with the current DSH process permissions and will handle login credentials and encrypted session data. Before installation, read source code files such as index.js, client.js, session-store.js and confirm that the MIT license and data storage paths meet your environment requirements.
Ecosystem Note: DSH upholds “Everything is a plugin”; SkillHub and others are community directories and have no official affiliation with DeepSeek / Fantom. This plugin is an independent community work; installation methods also refer to the official Plugin Management Instructions and Plugin Index Instructions.
For feedback, you can attach DSH version, plugin version, steps, and panel status. Contact the maintainer via GitHub Issues or the QQ communication group (740438905) in the README.
Conclusion¶
Swallow · Purge Workbench puts scheme switching, override/append modes, and local injection confirmation into a sidebar panel, with the option to attach Yan Yu balance viewing. If you are polishing task-oriented conversations in DSH, you can find index information on the directory page and get the installation address and release version from GitHub.