Introduction¶
DSH (DeepSeek Harness) adopts a plugin-based architecture where each plugin extends the engine’s capabilities through the Cordis protocol. In multi-model scenarios, different models have distinctly different requirements for system prompts: the same prompt set that works well with GPT-4 may be overly complex or stylistically mismatched for a local small model. Manually maintaining multiple sets of prompts for each model increases the management burden and makes it easy to introduce version inconsistencies.
Below is an introduction to a mobile plugin that retrieves system prompts from the cloud by model ID, enabling automatic matching and switching in DSH-Go.
What Is This¶
mhtg001/dsh-xiaoyu-go is a DSH-Go client plugin developed by maintainer MHTG001. It matches by model ID, retrieves published system prompts from https://formohai.top, and replaces the existing system message in the current conversation.
The plugin is compatible with DSH 0.2.2-rc.1 and requires Node.js 24.9.0 or later. The toggle is off by default and takes effect for the current conversation only. After successful matching and authorization, it replaces only the system message in the current request while preserving user messages, history, and tool definitions.
Core Features¶
- Automatic system prompt matching by model ID: the plugin fetches the corresponding system prompt from the cloud service based on the model ID in the current request.
- Cloud-hosted prompts: the prompt body is retrieved from the cloud per session authorization and applied to the current model request.
- Session-level control: the toggle takes effect within the current conversation. If turned off, no match is found, or the request fails, the original prompt is retained. The status bar displays the reason.
- Cross-session persistence: after switching models, the next request will automatically match using the new model ID.
- Device binding mechanism: session credentials and the device private key are stored in the engine’s app-private directory at
${DSH_HOME:-$HOME/.dsh}/dsh-go/xiaoyu/with file permissions set to0600. The device private key is used to maintain the current binding; logging out does not reset the device identity.
Installation & Activation¶
The plugin must be installed in the local engine environment on the phone.
Prerequisites¶
- DSH
0.2.2-rc.1 - Node.js
24.9.0or later - Enable the “Access Phone Files” permission in DSH-Go settings
Verify the engine version:
dsh --version
Installation Steps¶
- Extract the local installation ZIP and place the complete
dsh-xiaoyu-gofolder in the phone’s “Downloads” directory. - Run the following commands in the DSH-Go local terminal:
mkdir -p /root/.dsh/dsh-go/plugins
cp -r /sdcard/Download/dsh-xiaoyu-go /root/.dsh/dsh-go/plugins/
dsh plugin --profile web add /root/.dsh/dsh-go/plugins/dsh-xiaoyu-go
- Log in to your account and bind the device:
node /root/.dsh/dsh-go/plugins/dsh-xiaoyu-go/lib/account-cli.js login
node /root/.dsh/dsh-go/plugins/dsh-xiaoyu-go/lib/account-cli.js bind
node /root/.dsh/dsh-go/plugins/dsh-xiaoyu-go/lib/account-cli.js status
- Open a conversation, enable the “Call Xiaoyu” button, and send a message. The status bar will display the matching result and verification code.
Typical Usage¶
Login and Binding¶
On first use on the phone, you need to log in to your account and confirm the binding. The subscription must already be active. The password is not echoed during input; after login completes, the terminal displays only the result. If the account is already bound to another device, please use the existing unbinding process to resolve this.
Locating the Plugin Entry Point¶
After installing from a share code, if the directory location is unknown, use the following method in the DSH-Go local terminal to locate the entry point:
plugin_cli="$(find "${DSH_HOME:-$HOME/.dsh}/profiles/web/node_modules" -path '*/dsh-xiaoyu-go/lib/account-cli.js' -print -quit)"
test -n "$plugin_cli" && node "$plugin_cli" login
test -n "$plugin_cli" && node "$plugin_cli" bind
Usage Workflow¶
- Open a conversation.
- Enable the “Call Xiaoyu” button.
- Send a message; the status bar will display the matching result and verification code.
- After switching models, the next request will automatically match using the new model ID.
- The toggle needs to be re-enabled after restarting the engine or switching accounts.
Uninstallation¶
Uninstall the plugin:
node /root/.dsh/dsh-go/plugins/dsh-xiaoyu-go/lib/account-cli.js logout
dsh plugin --profile web remove dsh-xiaoyu-go
Use Cases & Notes¶
This plugin is suitable for scenarios where you need to configure different system prompts for different models in DSH-Go, especially when prompts are centrally managed in the cloud and need to be dynamically switched by model.
Permissions & Security¶
- The plugin runs with the current DSH process privileges; review the source code and license before installation.
- Session credentials and the device private key are stored in the engine’s app-private directory with file permissions set to
0600. - The phone plugin uses Linux file permissions to protect these files; Android Keystore is not integrated.
- The device private key is used to maintain the current binding; logging out does not reset the device identity.
- Secondary verification is not yet supported for terminal login.
Publishing & Sharing¶
The public package contains client code only. The prompt body is retrieved from the cloud per session authorization and applied to the current model request. See the workspace file mobile/Publishing-and-Verification.md for sharing file generation and verification steps.
Summary¶
mhtg001/dsh-xiaoyu-go implements cloud-hosted system prompts with automatic switching via model ID matching, providing a centralized management and per-model dynamic application solution in DSH-Go. The plugin is compatible with DSH 0.2.2-rc.1, requires Node.js 24.9.0 or later, and requires account login and device binding after installation before it can be used.
- Directory page: https://www.skillhub.cn/plugins/MHTG001/dsh-xiaoyu-go
- GitHub: https://github.com/MHTG001/dsh-xiaoyu-go