DSH resets its state every time a new conversation starts; it no longer remembers your interaction preferences. If you need the AI to follow specific instructions in every new session (e.g., prioritize confirming goals, explain principles before providing code, or require automatic backups after every step), you have to manually adjust the system prompt. This approach is repetitive and prone to omissions.
dsh-user-style is a plugin designed to manage user working style profiles. It converts your preferences into an editable configuration and injects them into the system prompt before every prompt assembly. Through a floating panel and a three-tier scope mechanism, you can ensure the AI maintains consistent behavior patterns across all conversations.
Core Features¶
- Floating Panel: A draggable pill in the bottom right corner allows for quick switching of profiles and scopes with a click, without diving into deep settings.
- Three-Tier Scope: Supports Global Default, Workspace Binding (for specific directories), and Temporary Override (Current Session only). Upper-level configurations override lower-level ones.
- Four Built-in Presets: Offers four presets—“Rigorous & Prudent,” “Fast & Direct,” “Node Backup,” and “Teaching”—to choose from based on the actual scenario.
- AI Protocol Modification: Via the
user_styletool, the AI can actively propose style changes, but they are only written after your confirmation. - Disabled by Default: The plugin does not take effect automatically upon installation; manual activation is required.
- Zero External Dependencies: Does not rely on third-party libraries on the host side, ensuring it loads in any environment.
Installation & Activation¶
After installing this plugin, you must fully exit and restart DeepSeek Harness for it to take effect. The host side does not support hot updates.
Method 1: Using DSH CLI (Recommended)¶
Click “Plugins” → “Install” in the sidebar, and enter the repository address:
github:himoew/dsh-user-style
Method 2: Using the One-Click Script¶
Clone the repository and run the installation script:
git clone https://github.com/himoew/dsh-user-style.git
cd dsh-user-style
install.bat
The script will automatically handle dependency installation, create a Junction, and back up package.json.
Method 3: Manual Installation¶
In the <DSH_HOME>\profiles\desktop\ directory:
# 1. Create a directory junction pointing to the repository
New-Item -ItemType Junction -Path ".\node_modules\dsh-user-style" -Target "<Absolute Path to Repo>"
# 2. Edit package.json
# Add "dsh-user-style": "link:<Repo Path>" to dependencies
# And append "dsh-user-style" to the dsh.profile.bundles array
After installation, find dsh-user-style in the plugin list and toggle its status to “Running”.
Usage¶
Floating Panel Operation¶
The floating panel in the bottom right corner displays the current status:
- Blue Dot: Enabled; Gray Dot: Disabled
- Displays the currently active profile name and scope
- Draggable: Position is auto-saved; dragging to the screen edge auto-hides it, dragging back restores it
After clicking the panel, you can:
1. Select a preset profile.
2. Select the scope (Global / Current Session Only / Apply to this Workspace).
3. The selection takes effect immediately; the next message will carry the new system prompt.
Three-Tier Scope Logic¶
Priority of effectiveness from high to low:
1. Current Session Only: Temporary override for the current conversation.
2. Workspace Binding: Effective for specific project directories.
3. Global Default: The default base style.
Workspace matching adopts the “Longest Prefix + Path Boundary” rule. For example, if D:\proj is bound to Profile A, then D:\proj\inner will also use Profile A, while D:\proj-other will not be mistakenly matched.
Built-in Preset Descriptions¶
Built-in presets define behavior by injecting system prompts verbatim, line by line:
| Preset Name | Core Behavior |
|---|---|
| Rigorous & Prudent | Do not proceed if the goal is unclear; do not assume when uncertain/ambiguous; confirm before modifying code/files. |
| Fast & Direct | Use mature solutions directly; no self-checking; test immediately if available; summarize reasons and steps at the end. |
| Node Backup | Proactively back up after every function is verified; report points by node; half-finished work does not count as a node. |
| Teaching | Explain principles before conclusions; provide minimal runnable examples first; explain “why”. |
Let AI Modify Style¶
The plugin registers a user_style tool. You can tell the AI directly what style you prefer, e.g., “Give the conclusion first in all future answers.”
The AI will repeat it for confirmation; only after your confirmation will it write the new profile via the tool. This prevents the AI from accidentally changing configurations.
Data Location & Maintenance¶
All configurations and records are stored in the following locations:
<DSH_HOME>\dsh-user-style\store.json # Profiles and binding relationships at all levels
<DSH_HOME>\dsh-user-style\trace.jsonl # History of the last 40 prompt assembly traces
<DSH_HOME>\dsh-user-style\last-render.txt # Content of the last injected text
Upgrading the plugin will not modify store.json. An upgrade only refreshes built-in presets that have not been edited; your custom profiles and bindings will be preserved.
Uninstallation¶
Run the uninstall script:
uninstall.bat
The script will clean up links and records in the configuration manifest, but will not delete store.json. To completely remove it, you need to manually delete the entire <DSH_HOME>\dsh-user-style\ directory.
Technical Constraints & Notes¶
- Script Encoding:
scripts/*.ps1must be saved as UTF-8 with BOM. Windows PowerShell 5.1 will turn Chinese characters into garbled text if it reads a file without a BOM. - Tool Parameters: When registering tools, parameters must be Standard JSON Schema. Property-level
required: true(thedefineToolsyntax) will cause errors with service providers; the array formatrequired: ['action']must be used. - Host Dependencies: The plugin intentionally does not depend on external packages like
@deepseek-ai/*to ensure it loads correctly when installed via Junction. - DSH Version: The plugin requires
dsh.engines.dsh: ">=0.2.0-rc.1 <0.2.1-0".
Conclusion¶
dsh-user-style solves the issue of inconsistent AI styles in multi-session scenarios through structured system prompt injection. The design of being disabled by default ensures it does not affect existing conversations, taking effect only when needed. Combined with the floating panel and scope management, it is a lightweight and efficient collaboration tool.
- Project Address: https://github.com/himoew/dsh-user-style
- Plugin Directory: https://www.skillhub.cn/plugins/himoew/dsh-user-style