Preface¶
When doing in-class or on-site Q&A in DSH, the usual approach is to switch back to the client, create a new session, paste in the question, and then explain which handout to reference. When the question is on a projection or webpage, you also have to take a screenshot, save it, and upload it. Too many steps, and attention easily gets pulled away from the explanation.
dsh-quick-qa (Quick Q&A) turns the entry point into a horizontal toolbar on the desktop: you can select a question on the screen to send, or type the question manually; when answering, it retrieves document fragments from the currently bound workspace and hands them to the model along with the question. Below we introduce what it does, how to install it, how to use it, and the limitations to be aware of.
What Is This¶
dsh-quick-qa is a DSH client plugin published by maintainer CW-1209 (current package version 0.1.0, MIT license). Its positioning is “a quick question in class”: select a question on the screen or type text → combine with materials in the workspace → pop up an answer box on the desktop.
The entry point is Quick Q&A below “New Session” in the DSH left sidebar. The first click launches a standalone small PowerShell process responsible for the toolbar window, global hotkeys, and mouse side buttons; the host side uses lib/impl.js for indexing, retrieval, and answering, and the client side uses lib/client.js to provide the panel and workspace switching.
Core Features¶
Desktop Toolbar and Screen Selection¶
- After clicking Quick Q&A, a thin horizontal strip appears on the desktop (similar to an input method candidate box).
- Mouse button 4 (the rear side button): the cursor turns into a crosshair; it only draws the selection border without darkening the screen; press and hold the left button to drag out the question area, release to take a screenshot; a single click does nothing; right-click or
Esccancels. After a successful screenshot, a thumbnail appears above the toolbar. - Mouse button 5 or Enter: send after confirming the thumbnail; if not satisfied, press
Escto discard and re-select. - Alt+Q: show or hide the toolbar (including the answer box); the position is remembered.
You can also skip the screenshot: type the question in the strip’s input box, and press Enter or mouse button 5 to send. In the README’s local tests on DeepSeek-V4.1-Flash, the manual typing path totals about 1–3 seconds, while the screenshot selection path takes about 3.5–9 seconds (measured in stages: reading the question, retrieval, and answering).
Mouse buttons 4/5 are “swallowed” by the global low-level hook by default, so forward/back navigation no longer triggers in the browser; if this behavior is not needed, pass -MouseSwallow 0 in the toolbar script.
Workspace and Material Retrieval¶
- The workspace capsule on the strip (which displays the current workspace name by default) shares the same binding as the dropdown in the left panel, and can be switched at any time.
- Before answering, it extracts text from documents / PDF / PPTX, as well as docx, xlsx, md, txt, etc. in the workspace to build an index; the 8 most relevant fragments are passed to the model along with the question. The panel lets you view “indexed fragments / material files / indexing time”.
- The index is cached by file modification time; after materials are updated, click Rebuild Index.
Document extraction relies on Python and pypdf, python-pptx, python-docx, openpyxl, etc. (the README also mentions pypdfium2 for the extraction script). The parsing order is: environment variable DSH_QUICK_QA_PYTHON → local venv → python in PATH; if none are found, it degrades to indexing only plain text, and the plugin still starts.
Answer Display and Appearance¶
About 1–9 seconds after submission, an answer box pops up below the strip: the answer comes first, followed by a brief explanation, evidence (cited materials), a reference list, and the time taken at each stage. The answer box is scrollable and about 120 pixels wider than the strip.
If submission exceeds 15 seconds without completing, the answer area first shows a waiting prompt; material preparation, image recognition, and answering share a total budget of 90 seconds; once complete, it is automatically replaced with the formal answer; if the limit is reached, a timeout result is shown.
The toolbar and answer box follow the DSH theme: the client pushes --dsw-alias-* tokens to the host about every 2.5 seconds. The strip’s position can be dragged, and its width can be adjusted within 9 pixels from the left and right edges (480–1320); ⚙ adjusts the overall opacity (minimum 30%).
Installation and Activation¶
You need to have DeepSeek Harness (DSH) installed. The plugin requires no compilation; according to the README it is “one profile dependency + one line of patch”:
- Put the repository into the profile’s
node_modules, e.g.:
%USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-quick-qa
(Can be referenced via file: or npm.)
- Add the following to
dependenciesin%USERPROFILE%\.dsh\profiles\desktop\package.json:
"dsh-quick-qa"
- Add the following to
%USERPROFILE%\.dsh\profiles\desktop\cordis.patch.yml:
- insert:
- id: dsh-quick-qa
name: dsh-quick-qa
- Restart DSH; Quick Q&A should appear below “New Session” in the left sidebar.
To uninstall, delete the dependency in package.json and the corresponding insert line in cordis.patch.yml (you can also remove it via the plugin manager).
Before installing, it is recommended to read the repository source code and the MIT license; the plugin runs with the permissions of the current DSH process, and the toolbar is a standalone PowerShell process that registers global hotkeys and mouse hooks.
Typical Usage¶
Screenshot answering
- Open DSH and click Quick Q&A once (after a cold start you must click once first, so that mouse buttons and Alt+Q are bound to the small process).
- Select the workspace corresponding to the course you are teaching in the panel or capsule, and Rebuild Index if necessary.
- Press mouse button 4, drag a box around the question stem and options on the projection or screen, and release to confirm the thumbnail.
- Press mouse button 5 or Enter to send, and view the conclusion and cited evidence in the answer box.
Quick manual question
Type the question in the toolbar’s input box and press Enter or mouse button 5. This suits cases where the question is already on the clipboard or is very short and does not require image recognition.
Collapse anytime
Press Alt+Q to collapse the strip when you don’t need the bar during a lecture; the ✕ on the right side of the strip can also close the entire toolbar, and Alt+Q remains available.
For development or troubleshooting, the README gives the host route prefix /dsh-quick-qa/v1 (e.g. GET state, POST ask, etc.), logs are in %TEMP%\dsh-quick-qa\quickbar.log, and selection screenshots are in %TEMP%\dsh-quick-qa\sel-*.png.
Use Cases and Notes¶
Who it’s for
- Users on Windows using DSH who need to “look at the screen and instantly generate a question” during lectures or live Q&A.
- Users who have already placed courseware, handout PDFs, PPTX, etc. into a DSH workspace and want answers backed by verifiable evidence.
Architecture and platform
- The toolbar itself is Windows PowerShell 5.1 + WPF (
lib/quickbar.ps1), communicating with the DSH host via HTTP polling, so a crash does not drag down the main process. - Global hotkeys, the selection layer, and mouse side-button logic all live within that small process; the README does not describe an equivalent toolbar on macOS/Linux.
Known limitations (excerpted from the README)
- After restarting DSH, you must click Quick Q&A once first before the side buttons and Alt+Q take effect.
- The model channel is shared with other long conversations, so under concurrency the wall-clock wait may be longer than the time measured inside the plugin.
- Screenshot recognition depends on whether the selection includes the complete question stem; occasionally, if recognition takes more than 10 seconds, a “question not recognized” prompt appears, and you can re-select.
- The panel’s “toolbar running” status relies on the heartbeat route, and you must restart DSH once so the new route can be recognized.
The community plugin directory page dsh-quick-qa on SkillHub and the GitHub repository are independent of each other, and neither is an official DeepSeek / High-Flyer app store; verify the version and source code yourself before choosing.
Conclusion¶
dsh-quick-qa consolidates “select or type a question” and “workspace material retrieval” into a single desktop toolbar, suitable for a fast-answer workflow in class that involves fewer window switches and less repeated pasting. Installation goes through the desktop profile’s dependency and cordis.patch.yml; in usage, remember to click open the entry point after a cold start, bind the workspace properly, and build the index as needed.
- Directory page: https://www.skillhub.cn/plugins/CW-1209/dsh-quick-qa
- Source code and full documentation: https://github.com/CW-1209/dsh-quick-qa