DeepSHPlugins
dsh-explain 项目预览
GITHUB / COMMUNITY PROJECT

dsh-explain

记忆与知识TypeScriptMIT

DSH 本地优先学习模式插件:跨会话全局学习线程、按来源讲解、ExplainContext、压缩与可诊断设置界面

12 Starsyuezengwu 更新时间 2026-09-10
访问 GitHub 仓库
dsh-explain 项目预览
dsh-explain 界面截图dsh-explain 界面截图

项目介绍

中文

DSH 本地优先学习模式插件:跨会话全局学习线程、按来源讲解、ExplainContext、压缩与可诊断设置界面

English

A local-first learning-mode plugin for DSH: cross-session global learning threads, per-source explanations, ExplainContext, compression and a diagnosable settings UI.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
yuezengwu
仓库
yuezengwu/dsh-explain
GitHub Stars
12
Forks
0
开发语言
TypeScript
许可证
MIT
最近推送
2026-09-10
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

76/ 100
维护活跃
100
文档与实用信息
85
生态关注度
32
安装便捷信号
100
项目声明信号
100

近 1 天仍在更新;README 含完整安装与使用说明;标准命令一键安装。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin add github:yuezengwu/dsh-explain

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

English · 简体中文

dsh-explain — turn everyday work into a private, continuous learning loop

DSH 0.1.5-alpha.2

CI

Latest release

Local first

MIT License

Quick start ·

Watch the full demo ·

Privacy model ·

Reproduce the recording

dsh-explain is a learning-mode plugin for DeepSeek Harness. It turns useful concepts from completed work into structured explanations, schedules lightweight reviews, and lets you inspect or correct what it learns about you.

The primary agent stays untouched. Explain uses its own model calls, scheduler, context, and local SQLite database.

See the learning loop

A real DSH Web flow that captures a completed answer, reviews a concept, corrects a learner preference, and exports local data

The 28-second preview runs against real assembled DSH Web 0.1.2-rc.1 with deterministic, private fixture data. Watch the higher-quality MP4 or read the recording contract.

CaptureReviewAdapt
Turn a finalized answer or selected text into an editable /explain draft. Nothing submits automatically.Revisit due concepts through recall, application, and distinction questions.Inspect explanation preferences and topic familiarity, then correct or forget an inference.

Quick start

The current development and installation baseline is DSH 0.1.5-alpha.2, available on npm as of 2026-09-10. npm latest / next still point to 0.1.2-rc.1, which remains supported alongside 0.1.3-alpha.1, 0.1.3-alpha.2, and 0.1.5-alpha.1. Pin the version explicitly; see the compatibility contract for exact source revisions and verification.

npx @deepseek-ai/[email protected] plugin --profile web add github:yuezengwu/dsh-explain
npx @deepseek-ai/[email protected] --profile web

Open Settings → Learning, choose an auxiliary provider and model, enable learning mode, and save. Explain observes only future completed top-level turns; it does not scan existing history.

Git-hosted plugins build during installation. If pnpm requests build approval, add the printed dsh-explain entry to the profile's pnpm-workspace.yaml, then repeat the install command. For automated runs that should not open a browser, start DSH with --no-open.

The latest tagged Explain release is v0.2.0; v0.3.0 has not been published. Installing from GitHub uses the current main branch with compatibility for all five versions listed below.

Start from the work itself

Entry pointWhat happens
/explain <request>Requests an explanation using the current session as bounded source context.
Explain selected textCreates an editable /explain --selection … draft from visible text.
Learn from this answerCreates an editable draft tied to the exact finalized assistant turn.
Automatic evaluationMay add one useful explanation after an eligible turn, within your configured budget.
/reviewOpens or resumes a local review round in the Learning tab.

Each explanation answers three practical questions: What is it? Why does it matter here? What is the common pitfall? Choose Got it to close the card, or Not yet for a different explanation.

Review, then correct the model

Concepts marked Got it enter a local spaced-review schedule. Learning → Today's review selects up to three due concepts. Each concept advances from recall to application to distinction after successful answers; an unsuccessful answer repeats that skill next time. The auxiliary model evaluates each answer as Mastered, Partial, or Forgotten and schedules the next review at a deterministic interval. Partial or forgotten concepts are treated as learning again and can receive a new explanation; an active explanation pauses that concept's quiz.

Learning → Learning overview exposes the current judgments about explanation length, structure, examples, terminology, and topic familiarity—with confidence and source links. You can correct an inference, forget it, or set an explicit preference. Precedence is fixed and visible: explicit preference → user correction → model inference.

One learning thread, many sessions

  • Every $DSH_HOME owns exactly one Explain learning thread; resumes and forks never copy it.
  • Every source session has at most one explanation awaiting feedback.
  • One global scheduler serializes explanations, reviews, autonomous evaluation, rephrases, and compaction.
  • Autonomous evaluation has a persistent rolling 24-hour budget, configurable in Settings.
  • Rephrasing still works if a source session is later deleted because only a bounded source summary is retained.

Local-first by design

DataBehavior
Learning threadStored in $DSH_HOME/dsh-explain/v1/thread.sqlite.
Enablement and model settingsStored through DSH settings in $DSH_HOME/settings.yaml.
Source materialReduced to bounded capsules; rephrasing retains at most a 2,000-character restricted summary.
Global learning contextSent with bounded source text to the configured auxiliary provider. Local storage does not imply offline model inference.
ExportA versioned local backup excludes private source summaries and filters common credential/path formats in public text. Arbitrary private prose may remain; review before sharing.
ClearA typed CLEAR confirmation atomically removes learned content while preserving runtime settings and the active budget window.

Explain uses first-party DSH conversation, composer, assistant-action, and settings extension points. It does not require patches to DSH or other plugins.

Compatibility and verification

CheckCurrent result
DSH compatibility0.1.5-alpha.2 published packages; 0.1.2-rc.1, 0.1.3-alpha.1, 0.1.3-alpha.2, 0.1.5-alpha.1, and 0.1.5-alpha.2 assembled source
Unit and integration80 tests on each source version
Assembled DSH Web7 scenarios per source version
Explain-owned shortcuts3 M6 scenarios
Production packageBuild and pack dry-run

See the acceptance matrix for coverage and PR #16 for the earlier real-model workflow evidence. DSH remains a developer preview; Explain follows its current public API line instead of retaining compatibility layers for private-preview packages.

Local development

The default development install uses published 0.1.5-alpha.2 API packages, with a version-scoped repair for their missing store runtime dependencies. Assembled-Web tests accept a built DSH 0.1.2-rc.1, 0.1.3-alpha.1, 0.1.3-alpha.2, 0.1.5-alpha.1, or 0.1.5-alpha.2 checkout. The existing demo recording remains on rc.1:

pnpm install
DSH_SOURCE_DIR=/absolute/path/to/dsh pnpm dsh:link
DSH_SOURCE_DIR=/absolute/path/to/dsh pnpm dsh:link:check
pnpm typecheck
pnpm test
DSH_SOURCE_DIR=/absolute/path/to/dsh pnpm test:web
DSH_SOURCE_DIR=/absolute/path/to/dsh pnpm test:m6
pnpm build

Install this checkout directly for manual development:

dsh plugin --profile web add /absolute/path/to/dsh-explain
dsh --profile web --dump-config
dsh --profile web

Documentation

DocumentPurpose
Demo productionStoryboard, privacy contract, commands, assets, and artwork provenance.
Product requirementsUser model, scope, policies, and acceptance criteria.
ArchitecturePersistence, scheduling, RPC, UI integration, and failure behavior.
Acceptance matrixAutomated and real-flow evidence.
Iteration planCompleted milestones and follow-up sequencing.

License

MIT

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目