Introduction¶
When reading long conversations in DeepSeek Harness (DSH), abbreviations, inference framework names, or domain-specific terms often appear in model and user messages. Having to switch to a search engine or self-built documentation each time interrupts the reading flow. The community has also adopted approaches such as attaching a glossary to the sidebar or looking up definitions through model tools, which typically involve additional UI or request chains.
Below is an introduction to hover-glossary, a client-side plugin published by maintainer AlyceStocking: hovering the mouse over words in the already sent chat body text from users or assistants displays 1..N definitions of the word within the browser, without sending model requests, registering model tools, or modifying system prompts.
What Is This¶
hover-glossary is a persistently installable browser plugin (Cordis dynamic plugin) for DSH, categorized as a client plugin. The npm package name and repository name are both hover-glossary, with the current version being 1.1.0 (MIT license).
Glossary lookups are performed entirely within the browser; there is no additional glossary panel or startup diagnostic card. The repository includes the glossary-mapping skill (.dsh/skills/glossary-mapping/SKILL.md) for maintaining the glossary and build process.
Core Features¶
Hover Definitions¶
For example, hovering over WHO displays multiple suggestions similar to “1. World Health Organization (abbreviation); 2. who (pronoun)”, with the number of entries determined by glossary registration.
Glossary Content¶
The current glossary contains inference-related terms such as GLM-5.3-Flash and vLLM Ascend; specific entries are subject to the build artifacts in the installation package.
Matching Rules (Summary)¶
- English case and full-width forms are normalized:
who,Who, andWHOare treated as the same word;WHOLEwill not erroneously matchWHO. - Contiguous Chinese text is matched by longest word, for example, “即世界卫生组织发布报告” can match “世界卫生组织”.
- English phrases currently match starting from the first word; for example, when hovering over
United Nations,Unitedserves as the query starting point. - The scope is limited to user/assistant chat body text, skipping the sidebar, settings, buttons, links, and input fields under editing.
- Queries are limited to a single DOM text node; words or phrases split across multiple styled nodes will not be concatenated for querying.
Boundary with Model and UI¶
The plugin does not send model requests, register model tools, or add system prompts. During debugging, you can check globalThis.__hoverGlossaryDiag__ in the console to inspect the glossary count and text retrieval API results.
Installation and Activation¶
Install using DSH’s built-in plugin management command; after packaging, you can enable, disable, or remove it in “Settings → Plugins”.
Desktop:
# Install from npm
dsh plugin --profile desktop add hover-glossary@1.1.0
# Install from GitHub source (currently available)
dsh plugin --profile desktop add github:AlyceStocking/hover-glossary
After installation, fully exit and reopen the Desktop application.
Web: Replace desktop in the command with web, then restart dsh web and open the page via the authentication URL printed at startup.
If only the browser bundle is updated, a refresh is usually sufficient; if the manifest or assembly logic is changed, a restart and verification are required. The package and glossary reside on disk and will be reloaded after restart.
Maintainer’s note: Do not install by manually copying to node_modules and editing cordis.patch.yml—the plugin may run but will not appear in the profile’s plugin management UI; also, do not replace profile installation with cordis_define / cordis_run that only reside in process memory.
Typical Usage and Glossary Updates¶
No configuration is needed for daily use: simply hover over words in the body text of existing conversation messages to view definitions.
To extend or modify the glossary, the sole source file is src/seed-data.mjs, with entry format as follows:
TERM: [
{ text: '第一解释', kind: '缩写', weight: 100 },
{ text: '第二解释', kind: '代词', weight: 10 },
],
The higher the weight, the higher the sort order; entries with the same weight retain registration order. After making changes, run:
node scripts/build-client.mjs
node test/run.mjs
Then reinstall the plugin and refresh to verify. For the complete process, see the glossary-mapping skill in the repository.
Version Compatibility and Verification Status¶
The README records: package installation, registration, and entry checks have been completed for DSH Desktop 0.2.0-rc.2, but the desktop hover effect has not yet been verified. The original real browser verification environment was Harness CLI 0.1.5-rc.1 / client components 0.1.5-rc.2 (including Edge). Other DSH versions require self-verification of chat DOM markers and Slot contracts.
The repository provides 16 Node test cases and real browser scripts; before publishing the npm package, the maintainer runs npm test and npm pack --dry-run to confirm that lib/client.js and the glossary are in sync.
Applicable Scenarios and Notes¶
Suitable for: Developers or users who frequently read conversations in the DSH client/Web interface and want to disambiguate abbreviations and terms in place; those needing an offline-style, lightweight glossary without model overhead.
Notes:
- The plugin runs with the current DSH process and client injection logic; before installation, read the source code and the MIT license to ensure compliance with your security and compliance requirements.
- For boundaries such as English multi-word phrases and cross-node formatting, see the “Matching Rules” above; behavior is subject to the repository README.
- The community directory SkillHub Plugin Page and GitHub are independent listing channels; the DSH ecosystem emphasizes “everything is a plugin,” and the directory site has no official affiliation with DeepSeek / High-Flyer.
Links¶
- Community directory: https://www.skillhub.cn/plugins/AlyceStocking/hover-glossary
- Source code and documentation: https://github.com/AlyceStocking/hover-glossary