DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

dsh-experience

w

dsh-experience

Identified★ 1

Self-learning experience library for DeepSeek Harness — local markdown knowledge, error-signature retrieval, gap→entry closure, sidebar panel. No network access.

dsh-experience

给 DeepSeek Harness 的自学习经验库:把踩过的坑变成可检索的本地知识,在错误发生的那一刻自动递到 agent 面前,并在收尾时把"问题"变成"条目"。 Self-learning experience library for DeepSeek Harness: local, indexed markdown knowledge that is retrieved at the moment of failure and closed into new entries afterwards.

没有模型调用、没有向量库、没有联网上报。检索是纯本地打分,索引每 3 秒跟磁盘对齐。

dsh-experience 演示

▶ 45 秒完整演示(1080p,中英字幕)

为什么不是"再写一段提示词"

提示词解决"agent 该怎么做",解决不了"同一台机器上的同一个报错又出现一次"。经验库补的是后者: 错误签名 → 命中已有条目 → 当场注入症状与避坑 → 解决后把缺的那条补齐。

决定性机制(改任何一处都要先读)

机制作用代码
分区加权检索标题/正文命中之外,命中「诊断关键词」+8、「避坑」+5;中文按 2-gram 兜底;别名半权扩展search() / zoneText() / ALIASES
错误签名路由ERR_MODULE_NOT_FOUND、EPERM、fetch failed、Error NNN 等签名给专属加权,并记录复发频率SIGNATURES / signatureWeight() / repeatBoost()
精确重排与去重top15 用整句命中/标题覆盖率重排;近似条目后一名 ×0.6;severity: critical 提权similarMap / search() 尾部
read-as-click 闭环"按签名搜 → 读命中条目"记为解法(resolveMap);同签名短时间内真实复发则记 miss 降权noteRead() / pendingRead
失败采集 + 修复证据tools/result 的 isError(或 value.ok === false)进候选;同工具 30 分钟内成功调用参数回填为"修复证据"tools/result 监听
缺口 → 条目闭环复发但无解法的签名 + 未命中查询 + 待认领草稿 → experience_promote 一条命令入库(套模板/查重/同步分类 README/删草稿/重建索引/返回覆盖结果)lib/promote.js / promote()
主动推送工具失败时自动检索,命中分数过阈值就把「症状 + 避坑」注入本轮对话;按采纳率自适应阈值tools/post-execute
面板侧边栏:按库浏览 / 结构化正文(避坑一键复制)/ 缺口与待认领 / 候选池client.js

细节见 docs/architecture.md;条目格式见 library/README.md。

安装

# 从 GitHub 安装(当前主要方式)
dsh plugin --profile web add github:wqx11235/dsh-experience

# npm 发布后
dsh plugin --profile web add dsh-experience

官方桌面端请在应用的设置 → 插件里安装,不要用命令行改桌面 profile。

装完重启宿主(host 插件不热更),侧边栏出现「经验库」。

首次启动会把包内 library/ 复制到库根;已有库不会被覆盖。

工具

工具用途
experience_search检索;支持空格分词、中文 2-gram、报错签名加权;返回摘要与元数据
experience_read读全文;同时记录阅读次数与"解法关联"
experience_ask要结论而非文件列表:按 top 命中汇总「症状/原因/避坑」
experience_gaps缺口清单:反复出现无解法的签名、待认领草稿、未命中查询
experience_promote把草稿/签名/未命中查询写成正式条目;dryRun: true 先预览

HTTP 端点(面板同源使用):/experience/list、/search、/read、/gaps、/drafts、/promote、/inbox、/inbox/prune、/inbox/draft、/inbox/dismiss、/flag、/dedup、/stats、/missed/dismiss、/refresh。

库根与配置

优先级:config.experienceRoot → 环境变量 DSH_EXPERIENCE_ROOT → ~/.dsh/experience。

# 在 profile 的 cordis.patch.yml 里按 id 覆盖(不要重复 insert)
- id: experience
  config:
    experienceRoot: '/absolute/path/to/experience'
    seed: false

两条库的边界(不要混)

私有库公开起步库
位置你机器上的库根(默认 ~/.dsh/experience)仓库 library/
来源你的使用积累白名单 + 脱敏构建
谁写运行时(采集 / 认领 / 归档)只有 tools/build-library.mjs
是否发布永不随 npm/git 包
检查—隐私 + 死链 + 边界
  • 公开库只从私有库按 tools/public-entries.txt 生成;运行时代码从不写 library/。
  • 插件首次运行时把 library/ 播种到空的库根;已有私有库不会被覆盖(seed: false 可关)。
  • 包内 cordis.patch.yml 不写任何机器路径;私有库用 profile patch 的 experienceRoot 指过去。
  • node tools/check-boundaries.mjs 断言两边不混(CI 每次跑):公开库条目 = 白名单、仓库无 .meta.json/.drafts、无私有分类、patch 无绝对路径。

隐私

  • 全部数据在本地;插件没有任何网络请求(唯一例外是你配置的 verify: url 校验)。
  • 公开的起步库由构建期隐私闸门生成:只拷贝白名单条目,脱敏绝对路径/账号/邮箱/个人与私有项目信息,再跑泄漏扫描与死链扫描,任一命中即构建失败。见 docs/privacy.md。
  • 你的本地库不会随插件发布,也不会上传。

开发

node test/run-all.mjs                              # 集成测试 + 死链 + 隐私闸门
node test/host-harness.mjs                         # 无宿主集成测试(假 ctx + 真 defineTool schema)
node tools/build-library.mjs <私有库目录>          # 从私有库重建公开起步库
node tools/privacy-rules.mjs library               # 公开库隐私闸门

test/host-harness.mjs 会自行 stage 一份插件并注入 @deepseek-ai/dsh-tools,不需要真的起宿主。

发布到插件市场

收录流程(awesome-dsh-plugin 一个 YAML 文件就是一个投稿)见 docs/publishing.md。

License

MIT

Comments

Loading…

From the same category

awesome-dsh-plugin

by awesome-dsh-plugin

A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表

Development & Infrastructure

★ 21.5k

CC0-1.0

Python

Oct 29, 2026

Index only — not installable

by 0xsline

DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.

Development & Infrastructure

★ 1.3k

CC0-1.0

Python

Oct 16, 2026

Index only — not installable

by Yuuyuko-uu

DSH 鱼的记忆:给会话一份会淡忘的长期记忆,每条都带时间

Development & InfrastructureMemory & ContextSessions & MessagesManifest valid

★ 394

MIT

JavaScript

Oct 29, 2026

dsh plugin --profile web add dsh-fish-memory

by pax-beehive

Open-source CLI, schemas, resolver, and DSH agent tools for DSH Plugin Hub

Development & Infrastructure

★ 276

MIT

TypeScript

Oct 20, 2026

Index only — not installable

by xiajiajun516

DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.

Development & InfrastructureManifest valid

★ 274

MIT

TypeScript

Oct 29, 2026

dsh plugin --profile web add dsh-config-manager

by ECNU

DBLP and arXiv literature search, BibTeX retrieval and full-text acquisition with session-owned background jobs; an EduWork-maintained fork of SihanLv/dsh-literature.

Tools & CapabilitiesUI & ExperienceDevelopment & InfrastructureMemory & Context

★ 259

MIT

JavaScript

Oct 30, 2026

Index only — not installable