The plugin ecosystem of DeepSeek Harness (DSH) allows for fine-grained control over tools and sandboxes. When developing, debugging, or conversing with context, if you want to avoid accidentally modifying files while still being able to generate new documents, dsh-ask-mode provides a runtime switching solution.
This is a plugin maintained by longhao666666 (MIT License), whose core feature is to switch to “Consultation Mode” within a session with a single click. This mode restricts Q&A to read-only operations, and outputs are limited to newly created documents.
Core Capabilities¶
The plugin ensures environment security through the following mechanisms:
-
Runtime Switching
The badge is located at the top of the session, to the right of the “Create Mode” tab. Click it to switch without needing to create a new session. If switched during generation, it will take effect automatically after the current round ends, and the badge will display “Consulting (Effective Next Step)”. -
Dual Read-Only Fencing
The plugin removes all modification tools and sets the sandbox to a read-only state. Write requests to existing files are rejected directly, and this restriction is enforced on the host side, meaning refreshing the page cannot bypass it. -
save_artifactRestrictions
The sole output channel is locked to creating new files. It only supports creating new txt / markdown / docx files and refuses to overwrite any existing files. docx files are generated from simple markdown syntax (#headings, paragraphs,-lists).
Installation and Activation¶
To install on the Windows platform, ensure that the DeepSeek Harness desktop version is installed and has been launched at least once (verified based on 0.2.0-rc.2).
Run the following command to complete cloning and installation:
git clone https://github.com/longhao666666/dsh-ask-mode.git
cd dsh-ask-mode
powershell -ExecutionPolicy Bypass -File .\install.ps1
After installation is complete, you must restart DeepSeek Harness. After restarting, confirm that @local/dsh-ask-mode is enabled on the “Plugin Management” page.
Usage Instructions¶
- Open a Session: After restarting DSH, open any session. A “Consultation Mode” badge will appear on the right side of the “Create Mode” tab at the top.
- Switch Modes: Click the badge to enter Consultation Mode. The badge will light up as “Consulting”, and you can hover over it to view the current constraints.
- Q&A: Ask questions as usual. In Consultation Mode, you can look up information, search, read code and documents, answer questions, and create output documents; however, you cannot modify or delete existing files.
- Generate Output: Directly state your output requirements in the conversation, such as “Organize the above conclusions into a markdown report.” The model will call
save_artifactto create a new file. - Exit Mode: Click the badge again to exit Consultation Mode, restoring full tool and sandbox permissions.
Use Cases and Notes¶
- Zero Dependencies: The plugin is pure JS source code, loaded directly without needing compilation, Tokens / API Keys, or additional services.
- Data Security: Not a single byte of existing content will be altered.
- Platform Limitation: Currently only supports the Windows platform.
- Restart Required: DeepSeek Harness must be restarted after installation to take effect.
Through this plugin, you can safely conduct read-only Q&A and generate new documents without compromising the existing file system.