In DeepSeek Harness (DSH) conversations, encountering technical terms or abbreviations and interrupting the context to search for definitions is often inefficient. The dsh-term-glossary plugin aims to solve this problem: it allows you to select a term within the conversation and instantly obtain an explanation via a side-channel model call, without consuming the current session’s context or turn count.
Core Features¶
The plugin focuses on improving reading efficiency with the following key capabilities:
- Inline Explanation: After selecting a term in the conversation, an explanation box pops up in place, displaying the basic meaning, usage, and common applications.
- Token Visualization: The bottom of the explanation box displays the tokens consumed by the response (Input/Cache/Output/Total).
- Side-channel Invocation: Explanations are generated via independent model calls, consuming neither the current session’s turn count nor context, and are not written to the session log.
- Domain Adaptation: The plugin reads the current session’s title and the most recent user message to determine the term’s domain (e.g., Computer Science, Medicine) and provides explanations using terminology common to that domain.
- Multiple Selection Support: Supports selecting multiple terms consecutively to trigger separate explanations.
- Rate Limiting Protection: Limits the query to 2 concurrent requests and 20 requests per minute to prevent looping calls from scripts.
Installation and Activation¶
Prerequisites: You need a DSH instance with a Web interface (Desktop application or started via the dsh web command), and the host must depend on webServer and llm.
Installation command:
dsh plugin --profile <profile name> add dsh-term-glossary
Once installed, press Ctrl + R to refresh the page to start using it.
Usage¶
- Select a term in the body area of the DSH conversation. A “Search” button will appear next to the selection (no request is initiated at this point).
- Click the button to trigger an inline explanation box and display the loading progress.
- The bottom of the explanation box lists the tokens consumed (Input/Cache/Output/Total) and the model used.
- To close: Press
Esc, click the×in the top right corner, or click anywhere outside the box.
Configuration and Limitations¶
Configuration Example¶
Add a term-glossary entry to the profile configuration file to configure it:
- id: term-glossary
name: dsh-term-glossary
config:
provider: deepseek-official
model: deepseek-flash
If both items are omitted, the profile’s default model selection will be used.
Behavioral Boundaries¶
- Trigger Area: Only triggered by selections in the body text; not triggered in input boxes or text areas.
- Interaction Limitations: Follow-up questions within the box are not supported; you need to continue asking in the conversation.
- Output Limitations: The output is capped at 2400 tokens, including hidden reasoning tokens.
- Security Boundaries: The route only listens on the loopback address (127.0.0.1) without additional authentication. Do not expose the DSH Web endpoint to untrusted networks.
Summary¶
dsh-term-glossary helps developers quickly understand terms while reading long conversations through side-channel queries and domain adaptation, maintaining context coherence. Installation and usage require minimal configuration, making it suitable for scenarios requiring frequent consultation of technical definitions.