Preface¶
In DeepSeek Harness (DSH), a common approach for teaching or knowledge explanations is to hand-write a long system prompt or rely on external course pages. The model can explain, but quizzes, slider explorations, and instant grading often require separate pages or custom front-end integration. The community plugin dsh-learning-mode (maintained by yushui6666) takes a different path: it adds a “Learning Mode” toggle to the input box toolbar, injects a fixed teaching prompt into the current session, and hands the interactive interface to GenUI, which renders it directly in the response. No course library, no progress persistence, no extra web pages.
The following introduces what it does, what it depends on, how to install and use it, and how local interactions and model requests are divided.
What is it¶
dsh-learning-mode is a DSH web plugin, package name @yushui/dsh-learning-mode (version 0.1.3 in the current materials, MIT license). It does not draw UI itself; it is responsible for “what to teach, when to stop, when to give feedback”. Quizzes, parameter sliders, and submission grading are rendered by GenUI based on the dsh-ui code block output by the model.
One-line summary from the README: Learning Mode is a toggle next to the input box. When enabled, it injects a teaching prompt into the current session (topic introduction → explanation and interactive exploration → test → feedback and correction) and grades locally in the browser via GenUI without additional model requests during grading.
- Directory page: skillhub.cn/plugins/yushui6666/dsh-learning-mode
- Source code: github.com/yushui6666/dsh-learning-mode
The DSH ecosystem emphasizes “everything is a plugin”. Community directories such as SkillHub are independent sites and are not officially affiliated with DeepSeek / HFQ.
Core features¶
Input box toolbar toggle¶
The toggle sits on the left side of the input box toolbar as a small icon button: lit means learning mode is enabled for this session; click again to turn it off. It is off by default. Different sessions do not affect each other. The state is stored in the current window’s sessionStorage and persists across page refreshes; it resets to off on host restart or plugin reload. The plugin does not restore the toggle from logs, and there is no cross-session learning progress storage.
Fixed teaching rhythm¶
A complete cycle is summarized in the README as four stages:
| Stage | User | Plugin and model |
|---|---|---|
| Introduction | Tell what you want to learn | Use a real problem to show value; state what you can do after this round |
| Learning | Read explanations, predict, drag sliders | Intuition → example → term or formula; arrange exploration where hands-on practice is worthwhile |
| Test | Click an option or submit | GenUI grades locally; correctness, explanations, and score appear immediately |
| Feedback | Explain what you didn’t understand, or click “Continue learning” / “Try another example” | Re-explain misconceptions, then confirm with an equivalent question |
Teaching rules are written in the repo’s prompt.js: teach only one complete small section at a time; keep real hands-on practice and wait for answers; do not fake results; require the model to first explain “what to observe, what to operate”, then provide components.
GenUI-rendered interactive components¶
Typical forms described in the README include:
- Single-question quiz: judge immediately on click; wrong options have explanations for that specific option.
- Submit-for-grading: submit multiple questions together; the score, per-question correctness, and explanations are computed and displayed in the browser.
- Parameter exploration: guess a conclusion first, then drag sliders to observe curve changes.
Screenshots are in the repo’s docs/assets/, sourced the same as GenUI rendering in chat.
Boundary between local interaction and feedback to the model¶
- Purely local: judging questions, submission grading, slider dragging, expanding and switching — completed instantly in the browser, no requests.
- Will feed back: single-question quizzes with
action, submit buttons withgroups, and “Try another example”, “Explain again”, “Continue learning”, etc., send answers and choices back to the model via[genui-action]; the model then supplements explanations or moves forward. - Built-in prompt constraint: without a real submission, the model will not claim to have seen the score or the choice.
If the user cannot see components or only sees raw code blocks, the prompt requires the model to switch to text, lists, and tables starting from the next message, and not output fenced blocks — teaching can continue without a renderer, but interactive grading is lost.
Server-side commands (fallback)¶
Besides the button, the host supports /learn on, /learn off, and /learn status: they return JSON status and do not start model generation. Normally the button executes a single /learn on|off when clicked; advanced scenarios can use the above commands manually.
Prerequisite: GenUI (required)¶
This plugin only injects teaching prompts. You must install the GenUI rendering plugin separately, otherwise dsh-ui fenced blocks will only show as raw code blocks, and quizzes and local grading will not work.
| Item | Content |
|---|---|
| npm package | @changfenhuang/dsh-genui |
| Source code | omdsh-dev/dsh-genui |
| Marketplace | Search dsh-genui, author omdsh-dev, category ui |
| peer requirement | >=0.12.0 (the README states this plugin is tested with 0.12.0; the marketplace may have higher versions) |
Install the renderer:
dsh plugin --profile web add @changfenhuang/dsh-genui
The README emphasizes that there are three similarly named plugins in the marketplace; only @changfenhuang/dsh-genui (author omdsh-dev) is compatible with this plugin. The other two, dsh-genui (lhuans) and dsh-plugin-genui (pengyue-polaron), are not compatible.
To confirm it is active: @changfenhuang/dsh-genui appears in the profile’s dsh.profile.bundles. After refreshing the client, when the model outputs a dsh-ui code block, it should render as a card or quiz.
This plugin does not bundle GenUI: package.json only declares the relationship via an optional peerDependencies to avoid duplicate installation that cannot be registered as a bundle.
Installation and enablement¶
Install via the plugin marketplace by searching “学习模式” (author yushui6666). The command-line equivalents are below. If you already installed GenUI, skip the first command.
dsh plugin --profile web add @changfenhuang/dsh-genui # renderer (required)
dsh plugin --profile web add github:yushui6666/dsh-learning-mode # this plugin
Notes:
github:yushui6666/dsh-learning-modeis pnpm’s GitHub source syntax, fetching the repository’s default branch, not via the npm registry. The npm package has not been published; an npm install with@yushui/dsh-learning-modewill 404, do not use it.- You can also paste
github:yushui6666/dsh-learning-modein the plugin manager install box. - The command uses DSH’s built-in plugin manager, installing into the local profile’s
node_modulesand registeringdsh.profile.bundles; it is not a remote shell script, and this repository has no installation-time scripts such aspostinstall. - Uninstall: uninstall via the marketplace, or
dsh plugin --profile web remove <package name>.
The plugin runs with the permissions of the current DSH process. Review the source code and MIT license before installing. The README states: no network access, no reading/writing user files (except for tests), no subprocesses or eval, no telemetry; state is stored only in sessionStorage.
Typical usage¶
- Open or create a session, click “Learning Mode” in the input box toolbar, and confirm the button is highlighted.
- Enter a learning topic, e.g., the README example:
我想学概率,先从条件概率开始(I want to learn probability, starting with conditional probability). - Follow the explanation in the response to complete the learning segment; answer or drag sliders in GenUI components; submit if needed to see the local score and explanations.
- If you don’t understand something, explain in text, or click “Continue learning”, “Try another example”, etc., so the model can correct mistakes based on
[genui-action]or your explanation. - Click the toggle again to turn it off; starting from the next model request, the teaching prompt will no longer be injected. Past conversation is retained.
Learning Mode does not replace GenUI, does not create other web pages, and does not change the model or permissions.
Applicable scenarios and notes¶
Suitable: developers or heavy users who want structured self-study or demonstrative teaching within a single DSH session and are willing to install GenUI; text-only Q&A scenarios that need instant local grading and want to avoid “finished explaining but still don’t know if I can do it”.
Not suitable or need to know:
- Need a course library, learning records, cross-device progress — this plugin explicitly does not provide them.
- Without GenUI installed, only text fallback is available, with no interactive grading.
- Teaching quality and component forms still depend on the model used and GenUI’s capabilities. Local grading does not automatically mean the model has received the wrong answers; targeted feedback is given only after a real submission or user explanation.
- Runtime environment: Node
>=22(seepackage.jsonengines); mainly injects into the web profile client.
Conclusion¶
dsh-learning-mode combines “teaching prompt + session-level toggle” with GenUI’s local interactive grading, completing introduction, learning, testing, and correction in a fixed rhythm within DSH, without building a separate course site. Be sure to install @changfenhuang/dsh-genui before use.
- Plugin directory: https://www.skillhub.cn/plugins/yushui6666/dsh-learning-mode
- GitHub: https://github.com/yushui6666/dsh-learning-mode