cendaifeng/dsh-learn-everything 预览 preview

cendaifeng/dsh-learn-everything

Resource资源 Native原生 ⭐ 7 Tutorials & Learning教程与学习

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 许可证开源,用户可基于许可协议修改重新分发。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • 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 费曼学习法插件

dsh-learn-everything banner

状态:M4 发布门禁(README Model Experience、组合 smoke、验收矩阵、GIF)。 设计决策与验收标准见 SPEC.md;验收矩阵见 docs/ACCEPTANCE.md。

一句话定位:让 DeepSeek Harness 变成"边学边做"的环境——开启学习模式后,模型按费曼学习法讲解概念、出卡片题请你复述、针对缺口重新讲解,教学内容以富 HTML 卡片可视化呈现。

核心形态

  • 会话级 /learn on|off 切换;开启后注入费曼教学引导(learning:policy prompt 段),关闭后完全恢复默认行为。
  • 模型经 teach 工具产出结构化 Lesson(标题、一句话总结、小节:正文/代码/mermaid 图/类比、可选 raw HTML),Web 客户端经 tool.call.toolview keyed 视图渲染为富 HTML 卡片:代码经 shell shiki 高亮(语言横幅 + 复制),mermaid 源渲染成 SVG 图(pending/error 回落源码块)。
  • 答题复用现有 ask_user_question(卡片选项由 ui-user-questions 呈现);模型在下一步自行判定对错并讲解。
  • 模式状态是 log-only learning/mode session 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 shiki CodeBlock,含语言横幅与复制按钮)。
  • 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 →

← 上一个 Prev dsh-wallpaper-bg 下一个 Next qdd →