cendaifeng/dsh-learn-everything
Project Overview项目介绍
This repository is a native plugin built exclusively for DeepSeek Harness (DSH) that adds full Feynman learning method capabilities to DSH sessions. It adds a /learn slash command that lets users toggle learning mode on or off for any individual session. When learning mode is active, it injects a pre-written Feynman guidance prompt into the system prompt, and registers a teach tool that lets the model output structured learning lessons with code examples, diagrams and analogies, rendered with proper syntax highlighting and SVG diagram support in DSH’s existing web interface.
The plugin is designed for DSH users who want to learn new concepts directly within their existing DSH workflow, without switching to external learning tools. After a user enables learning mode and enters a topic to study, the model generates a rich HTML lesson card, asks the user to retell the concept in their own words, judges their understanding, and re-explains any gaps the user has. All functionality is built on DSH’s existing extension APIs, so no modifications to the DSH core codebase are required to use it.
To install the plugin locally, you need to link a checked-out DSH source directory, install dependencies via pnpm, build the plugin output, and add the plugin entry to your DSH profile configuration. The current v1 release has several known limitations, including no hard enforcement of the full Feynman learning loop, no persistent cross-session learning memory, and fixed Chinese UI text. The entire project is open sourced under the permissive BSD-3-Clause license, allowing modification and redistribution under the terms of the license.
这是一个专为 DeepSeek Harness 开发的原生插件,在 DSH 中实现了完整的费曼学习法流程。用户通过 /learn on 命令开启学习模式后,模型会按照费曼学习法讲解新概念,生成结构化教学卡片,之后要求用户用自己的话复述概念以检验掌握程度。所有教学内容都会在 DSH 的 Web 客户端渲染为富 HTML 卡片,支持代码高亮和 mermaid 图渲染。
这个插件面向需要在 DSH 中边使用边学习新概念的用户。典型工作流程是:用户输入想要学习的主题,模型输出带概念讲解、代码示例、类比的结构化卡片,随后要求用户复述概念,判断复述结果,再针对用户理解的缺口重新讲解。它无需修改 DSH 核心,所有能力都基于 DSH 现有的扩展接口实现,安装后即可直接使用。
开发安装需要先链接本地 DSH 源码目录,配置环境变量后即可构建安装。它目前存在一些已知限制:比如不强制要求模型完成闭环流程,不支持跨会话记忆,卡片文案固定为中文。该插件采用 BSD-3-Clause 许可证开源,用户可基于许可协议修改重新分发。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-learn-everything(cendaifeng/dsh-learn-everything)
仓库:https://github.com/cendaifeng/dsh-learn-everything
本站详情页:https://www.yhbd.top/plugins/cendaifeng-dsh-learn-everything/
本站登记:类型 resource · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 7 · 最近提交 2026-08-13 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- Only 7 stars - very few users, little community feedback星标只有 7,几乎没人在用,遇到问题缺少社区反馈
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:cendaifeng/dsh-learn-everything
把 cendaifeng/dsh-learn-everything 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-learn-everything — DSH 费曼学习法插件

状态:M4 发布门禁(README Model Experience、组合 smoke、验收矩阵、GIF)。 设计决策与验收标准见 SPEC.md;验收矩阵见 docs/ACCEPTANCE.md。
一句话定位:让 DeepSeek Harness 变成"边学边做"的环境——开启学习模式后,模型按费曼学习法讲解概念、出卡片题请你复述、针对缺口重新讲解,教学内容以富 HTML 卡片可视化呈现。
核心形态
- 会话级
/learn on|off切换;开启后注入费曼教学引导(learning:policyprompt 段),关闭后完全恢复默认行为。 - 模型经
teach工具产出结构化 Lesson(标题、一句话总结、小节:正文/代码/mermaid 图/类比、可选 raw HTML),Web 客户端经tool.call.toolviewkeyed 视图渲染为富 HTML 卡片:代码经 shell shiki 高亮(语言横幅 + 复制),mermaid 源渲染成 SVG 图(pending/error 回落源码块)。 - 答题复用现有
ask_user_question(卡片选项由ui-user-questions呈现);模型在下一步自行判定对错并讲解。 - 模式状态是 log-only
learning/modesession event:resume/fork/compaction 从日志折叠恢复,无 live mirror。 - 每次会话独立,无跨会话长期记忆。
- 零 mainline core 改动:不加 card kind、不改 agent-loop、不加新事件族(Lesson 卡片直接消费既有
tool/call日志)。
动机
- 用户在工作会话里学新概念时,往往只拿到一段答案,没有结构化的讲解、练习和反馈。
- 费曼学习法(讲清楚 → 讲回来 → 找缺口 → 简化)是经过验证的学习闭环,适合模型驱动。
- DSH 已有全部所需 seam(prompt 段、工具、命令、logged state、keyed 工具视图),插件可零 core 改动落地。
里程碑
- M1 脚手架:仓库结构、独立构建链、
/learn状态机、learning:policy段、teach工具、tool.call.toolview卡片、单元测试。 - M2 教学闭环:费曼引导文案调优(讲解→复述→判定→回讲四步,含至多两次提问的收尾约束);key-gated 真实模型 e2e(
pnpm run test:e2e)走通一轮并断言闭环。 - M3 富 HTML 打磨:keyless assembled Web 快照测试(Playwright + aria golden,
pnpm run test:web);卡片视觉打磨;mermaid 渲染成图(mermaid.js 客户端渲染,惰性单例 + 串行化);代码高亮(复用 shell shikiCodeBlock,含语言横幅与复制按钮)。 - M4 发布门禁:README Model Experience(canonical 格式 + verbatim 引导 + token/KV Cache 逐条)、Known Limitations 对齐 SPEC §10、keyless 组合 smoke(Loader 子进程装配,
pnpm run test:smoke)、验收矩阵(docs/ACCEPTANCE.md)、GIF(真实服务 + 真实模型)。
本地开发
仓库不从 npm 解析或发布私有 DSH 包。先准备已构建的 DSH 源码目录(本机即 mainline checkout),再安装公开依赖并建立本地链接:
DSH_SOURCE_DIR=/absolute/path/to/dsh pnpm install
DSH_SOURCE_DIR=/absolute/path/to/dsh pnpm run dsh:link:check # 链接就绪自检
DSH_SOURCE_DIR=/absolute/path/to/dsh pnpm run build # tsc + tsdown + esbuild client
DSH_SOURCE_DIR=/absolute/path/to/dsh pnpm test # vitest 单元测试
DSH_SOURCE_DIR=/absolute/path/to/dsh pnpm run test:smoke # keyless 组合 smoke(Loader 子进程装配)
DSH_SOURCE_DIR=/absolute/path/to/dsh pnpm run test:web # keyless assembled Web 快照(Playwright + aria golden)
DSH_SOURCE_DIR=/absolute/path/to/dsh pnpm run test:e2e # 真实模型 e2e(需 DEEPSEEK_API_KEY,缺省跳过)
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
walkinglabs/learn-harness-engineering
Electricitysheep/dsh-handbook
humblebanana/open-record-replay
pingfanfan/hello-dsh
feicaiclub/deepseek-harness-whitepaper
tsrigo/dsh-from-scratch