dsh-gloss
English | 中文
Select a word or phrase in a DSH chat, get a short gloss in context, hear it, and keep a local glossary.

Status: early prototype. The UI and the lookup prompt may change.
A gloss is a short explanation of a word as it is used in a sentence — not a full dictionary entry. That is what this plugin adds to the conversation.
What it does
- Select text in any assistant or user message. A small Explain / Quote pill appears where the built-in quote button used to be.
- Explain asks the model currently selected in DSH for one contextual gloss: IPA, part of speech, a short meaning, an example, and an optional usage note. The plugin uses the model's lowest reasoning effort to keep the wait short.
- Speak reads the word, the meaning, and the example. IPA stays on the card; it is not spoken.
- Copy puts the word, IPA, meaning, example, and note on the clipboard with one click.
- Save writes the gloss to a local JSON glossary. The sentence around the selection is sent to your configured model provider; nothing else leaves the machine.
- Glossary opens as a right-sidebar page. Cards are ordered by the last time you looked the word up or saved it, so the words you touch most stay near the top. Click a card to reveal the example; the speaker reads word + meaning.
Requirements
- The DSH Web GUI. The client half is a Web client module.
- The built-in
@deepseek-ai/dsh-message-quotesplugin. The card renders in its selection slot; the quote handler opens it. - A configured model route. The plugin uses the session's current default model.
- A browser with at least one English voice for the speaker button. Without one, the button stays silent.
Install
dsh plugin --profile web add github:wyhgoodjob/dsh-gloss
Replace web with your profile name. The command installs the package into
that profile and adds its bundle. Restart dsh, then refresh the Web page.
From a local checkout, point at the directory instead:
dsh plugin --profile web add /path/to/dsh-gloss
You can also add a local directory from Settings → Plugins → Add plugin.
Use
- Select a word or a short phrase in a message.
- Click Explain.
- Click the speaker, or Save.
- Open the glossary from the card, or from the right sidebar's + menu.
The gloss follows the sentence. For example, selecting take off in a sentence
about a plane gives the “leave the ground” sense, not “remove clothes”.
Data
The glossary is plain JSON at:
~/.dsh/gloss/glossary.json
The first run imports a glossary from an earlier build when the new file does
not exist. Set DSH_HOME to move the DSH home; the glossary follows it. The
stored fields may change between versions.
How it works
- The host half registers one authenticated route and calls the current model for a short contextual gloss.
- The client half renders the selection pill, the result card, and the right-sidebar glossary.
- Saved entries are written atomically to the local JSON file.
License
MIT © 2026 Yihao Wang. See LICENSE.
还没有评论,来写第一条。