Introduction¶
DeepSeek Harness (DSH) adopts a plugin-based architecture, yet configuring tools, skills, and system prompts within a single session still requires switching between multiple interfaces or performing command-line operations, resulting in a fragmented workflow. The dsh-conversation-context plugin provides a unified context configuration entry point in the conversation input bar, integrating tool selection, skill loading, system prompt injection, and runtime context control into the interactive flow of the current session.
Plugin Positioning¶
This plugin is an unofficial plugin for DeepSeek Harness, maintained by Makimasdog. It provides localized tool and skill selection, system prompt modification, and runtime context control for the current session, and supports the model recommending configurations based on the task. The plugin mounts a panel via a browser slot and reads/writes the current session state using DSH’s native interfaces.
Installation & Activation¶
This version is compatible with DSH 0.2.2-rc.3.
- Download
dsh-conversation-context-0.3.0.tgzfrom the v0.3.0 Release. - In DSH, open Plugins → Add Plugin and enter the absolute path to the downloaded file.
- Restart DSH, open a regular session, and click Context in the input bar.
For Web profiles, you can also use the following command:
dsh plugin --profile web add ./dsh-conversation-context-0.3.0.tgz
Tool & Skill Categorization¶
Click Context in the input bar to enter the Tools page. Both tools and skills support search, individual and group-based checkbox selection. You can switch grouping by Source, Function, or Tag. The plugin generates tags based on names and descriptions; the same item may appear in multiple tag groups. MCP tools display the server name as their source.
- Tools. Supports select all, deselect all, and preset defaults. Manual selection takes effect by tool name; MCP reconnection restores previous selections, and late-registered new tools remain unchecked. Tools registered directly by the session are governed by execution restrictions.
- Skills. Supports DSH auto-discovery or manual selection. In manual mode, the body of selected skills is loaded at the first step of each turn, and the auto-load entry point is disabled. The plugin respects the skill author’s user-invocation settings.
AI Recommendation¶
On the Tools page, click Recommend & Check. Enter a task description (e.g., “I need to create a project report PPT”), and the current session’s model will receive the task description along with the names and summaries of candidate tools and skills. The recommendation results are filled into the checkbox draft, which can be manually adjusted before clicking Apply.
System Prompt & Context Layers¶
- System Prompt. Supports appending or replacing; literal
{{…}}placeholders are preserved; the limit is 16,000 characters. Replacement preserves PTC tool binding instructions. Presets that use a full persona, such as Lite, support replacement. - Context Layers. You can expand the panel to view, enable/disable, or edit optional runtime context layers, and fill in Session Supplements. Required DSH layers such as working directory and approval settings are read-only.
- View Effective Configuration. Inspect the system prompt assembled by the host, tool declarations, execution restrictions, pending skill injections, and effective runtime context layers. In PTC mode,
run_codeis declared by DSH; tool selection controls its program binding.
Configuration is stored in the host’s in-memory state for the current session and reverts to defaults after a host restart. Switching presets clears temporary prompts and runtime context overrides. Session history that has already been written continues to be retained according to DSH’s rules.
Local Development¶
npm test
npm run build
npm pack
The build produces dist/client.js. npm pack generates a pre-built installation package containing the browser artifacts.
Implementation Mechanism¶
The browser mounts the panel via DSH’s native conversation.input.left slot and reads/writes the current session through Typert Remote. The host only receives main-thread requests and checks agent idle status and configuration version before saving. Tool filtering uses tools.restrict() at the agent scope level and an execution guard. Reading the tool catalog reuses the already-computed view; restrictions are re-reconciled only when the host tool view changes. Skill bodies enter the normal context history via agent/pre-step. The system prompt is adjusted through assembly hooks; full-persona presets use a session-scoped override.
Use Cases & Notes¶
This plugin is suitable for developers and users who need to quickly switch tools, skills, or modify system prompts within a single session. The plugin runs with the current DSH process permissions; you should review the source code and license before installing. The project is released under the MIT License.
Summary¶
dsh-conversation-context consolidates session-level tool, skill, and system prompt control into the conversation interface, reducing switching overhead. If you frequently adjust single-session configurations in DSH, you can use this plugin to manage context uniformly from the input bar and improve your workflow efficiency.
- Directory page: https://www.skillhub.cn/plugins/Makimasdog/dsh-conversation-context
- GitHub: https://github.com/Makimasdog/dsh-conversation-context