Introduction¶
When using DSH (DeepSeek Harness) for daily conversations, the default persona is fixed. If you want it to speak in a different style, the common approach is to manually paste a prompt segment in every new conversation, or install a fixed-style “dress-up” plugin—the former is troublesome, while the latter can only be toggled and the content cannot be changed.
dsh-identity-control takes a different path: the persona text is written by you, filled in the editing panel in the interface, changed anytime, and toggled with one click. Below is an introduction to the plugin’s features, installation, and usage.
What is This¶
dsh-identity-control is a custom persona control plugin for DSH, maintained by GitHub user orpheus0829, current version 0.1.0, license MIT.
The problem it solves is simple: it provides an entry next to the conversation input bar where you can fill in the persona text. Once enabled, all new conversations automatically carry this persona; turn it off to restore the default without restarting DSH.
Core Features¶
- Provides a persona button next to the conversation input bar; clicking opens an editing panel containing a multiline text box and an enable toggle.
- After filling and saving, all new conversations automatically carry this persona text.
- Turning off the switch immediately restores the default persona without needing to restart.
- The persona is merely injected as a prompt and does not override DSH’s safety rules.
- When the persona text is left empty or disabled, the plugin injects nothing, and DSH maintains default behavior.
- Configuration is stored in the
identity-controlnamespace in DSH settings (two fields:enabled/text), with persistent state.
Installation and Enablement¶
Install using the official install command:
dsh plugin --profile web add github:orpheus0829/dsh-identity-control
After installation, restart the DSH interface, and the persona button will appear on the right side of the input bar.
For local debugging, you can use the link method to point to a local path:
dsh plugin --profile web add link:<本地路径>
Typical Usage¶
It involves three steps:
- Click the persona button on the right side of the input bar to open the editing panel.
- Write the persona in the text box and check the enable box.
- Save and start chatting.
After this, all new conversations will automatically carry this persona. To temporarily switch back to default behavior, just turn off the switch; to clear the persona entirely, just clear the text box and save—neither of these cases will cause the plugin to inject any content.
Configuration Storage and Implementation Structure¶
Configuration persistence is in the identity-control namespace in DSH settings, containing only two fields: enabled and text.
The code structure is also not complex:
lib/
index.mjs # host side: reads config, injects persona segment when enabled and text is non-empty
client.js # browser side: input bar entry + editing panel
cordis.patch.yml
package.json
lib/index.mjs is responsible for injecting the persona segment into the conversation when enabled and text is non-empty; lib/client.js handles the browser-side input bar entry and editing panel. The dependency is only schemastery ^3.18.0.
Scenarios and Notes¶
Suitable for people who are not satisfied with DSH’s default persona and want a fixed, self-defined prompt to take effect in all new conversations, but do not want to paste it manually every time, nor do they want a fixed-style “dress-up” plugin.
A few notes:
- The persona is just injected as a prompt and will not override DSH’s safety rules; don’t expect it to bypass restrictions.
- The plugin runs with the permissions of the current DSH process. Before installing any third-party plugin, it is recommended to check the source code and license first to ensure there are no issues before installing. This repository is under the MIT license, and the code is not large, so the cost to read it once is not high.
Conclusion¶
dsh-identity-control does something very restrained: it hands over control of the persona text to you, with filling, changing, and toggling all completed within the interface, and maintaining default behavior when not injecting. If you happen to need such an entry, you can use it directly.
- Directory: https://www.skillhub.cn/plugins/orpheus0829/dsh-identity-control
- GitHub: https://github.com/orpheus0829/dsh-identity-control