Yihong89/dsh-teacher

DSH教师插件:苏格拉底式导师,引导你从Markdown问题集中找到答案,在会话中追踪知识盲点,并按间隔重复计划重新测试。

Project Overview项目介绍

This is a DSH-native plugin built exclusively for DeepSeek Harness, designed to turn your DSH agent into a Socratic teaching assistant that never answers directly. It follows evidence-based cognitive science principles that prioritize active retrieval practice and spaced repetition over passive explanation, which research shows is far more effective for learning. To install the plugin, you need a working installation of DSH rc.6 or newer and Node.js version 22.5 or higher, as it uses Node’s built-in sqlite module. You can add it by running the command dsh plugin --profile web add "github:Yihong89/dsh-teacher" then restart your DSH web profile.

To get started, you create a markdown file with your questions, storing the answer keys as hidden HTML comments that are never shown to the learner. The plugin’s format-tolerant parser automatically recognizes questions in most common markdown layouts, including numbered questions, heading-formatted questions, and multiple answer formats. If the automatic parser fails to parse your file, you can use the LLM-assisted import_curriculum tool to convert it to the required standard format. Once loaded, all questions are stored in a persistent SQLite question store, accessible across all DSH sessions.

After installation and restart of the DSH web profile, the plugin adds a custom web client interface with several interactive components. These include color-coded quiz cards, a header button that shows a badge for due gaps and opens a floating gap panel, and an LLM-free quiz popup for multiple-choice or free-text responses. All knowledge gaps are persisted across sessions in a SQLite ledger stored at $DSH_HOME/state/dsh-teacher/ledger.db, with a JSON fallback if SQLite is unavailable. You can trigger on-demand retesting of gaps at any time, and generate a summary of knowledge gaps at the end of a learning session. The plugin is released under the open source MIT license.

这是一款原生 DeepSeek Harness(DSH)插件,专门为 DSH 设计,能将 DSH 代理转化为苏格拉底式教学助手。它不会直接给出答案,而是通过提问引导学习者自行找到答案,跟踪学习过程中出现的知识缺口,并按照 FSRS-5 算法安排间隔重复复习。安装需要 DSH rc.6 以上版本和 Node.js ≥ 22.5,执行插件添加命令后重启 DSH 即可使用。

使用者需要准备一份包含问题的 markdown 文件,正确答案放在 HTML 注释中不会被学习者看到。加载问题文件后,插件会将问题存入 SQLite 存储,支持多种格式的问题自动解析,也可通过 LLM 辅助导入不规范的文件。学习者可以通过指令调出无 LLM 参与的测验弹窗,作答后插件会自动批改、记录缺口并开始引导。

插件自带 Web 客户端,重启 DSH 网页端后会新增测验卡片、缺口列表面板、测验弹窗等交互组件。知识缺口账本会跨会话持久保存在 SQLite 数据库中,支持随时发起缺口重测,还能生成学习会话的知识缺口总结报告。插件遵循 MIT 许可开源,核心逻辑已经过完整单元测试,可稳定使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add "github:Yihong89/dsh-teacher"

把 Yihong89/dsh-teacher 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-teacher 🧑‍🏫

A DeepSeek Harness plugin that turns the agent into a teacher — never answers, always asks.

Give it a markdown file of questions. It leads you to the answers with the Socratic method, keeps a quiet ledger of the gaps it notices in your reasoning, and retests those gaps on-demand on a spaced-repetition schedule.

The loop

questions.md ──▶  /teach questions.md
                      │  LLM parse / tolerant parser
                      ▼
        SQLite question store (courses + questions + quiz runs)
                      │  /quiz → 📝 LLM-free quiz popup (MCQ / free-text)
                      ▼
            answers ──▶ POST /dsh-teacher/quiz/submit (run stored)
                      │  "Quiz finished (run N)" → LLM analysis
                      ▼
            grade each answer (vs hidden keys) ──▶ gaps → Socratic walk
                      │  gap ledger (persists across sessions, SQLite)
                      │  you: "/retest" (on-demand, anytime)
                      ▼
            "Explain rebase to me."  ──▶  graded, rescheduled (FSRS-5)

Status

v0.3.0 — core + Web client + SQLite question store + LLM-free quiz popup; tests passing (83/83).

Milestone Status
M0 Scaffold (bundle patch, plugin row, zero-build JS) ✅
M1 Core Socratic loop (curriculum parser, policy section, 5 tools) ✅
M2 Gap ledger + persistence (SQLite + JSON fallback, session events) ✅
M3 FSRS-5 spaced retest (official test vector pinned) ✅
M4 Web client (quiz cards, gaps button + panel, gap projection) ✅
M5 Publish (dsh-plugin topic ✓, awesome lists, live e2e) ◐
M6 SQLite question store (courses/questions/quiz runs) ✅
M7 LLM-free quiz popup (MCQ + free-text, POST /dsh-teacher/quiz/submit) ✅
M8 Post-quiz LLM analysis + Socratic walk (analyze_quiz) ✅

Design decisions are in docs/PLAN.md (§10 = the v0.3 redesign).

Web client

Once the plugin is installed and the web profile restarted, the browser bundle (lib/client.js, registered via dsh.client) adds:

  • Quiz cards — custom tool.call.toolview cards for next_question, grade_answer, note_gap, hint, and retest (question prompt, verdict color-coded by outcome, gap chips by kind).
  • 🧑‍🏫 gaps button — in the session header action row, shows a due-count badge and opens the gap panel.
  • Gap panel — floating overlay listing this session's gaps (kind, topic, due/✓ mastered), fed by the teacherGaps session projection (same seam dsh-usage-plugin uses). The durable cross-session ledger stays in /gaps and /retest.
  • 📝 quiz popup — the LLM-free quiz: questions come from the teacherQuiz session projection (loaded from the SQLite store, no AI involved); each question shows clickable multiple-choice options when present, else a free-text box, with a 💡 hint toggle. Finish submits your answers to the plugin (POST /dsh-teacher/quiz/submit), then the teacher's LLM analysis grades them, records gaps, and walks you through the misses Socratically. Open it from the header button or /quiz.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-websearch-direct 下一个 Next dsh-chat-nav →