zoahdev/dsh-rule-evolve
Verification-driven self-evolution loop for DeepSeek Harness: experience -> rules -> verify. Turns failures into auditable AGENTS.md rules guarded by tests.
已收录
0
Dev
Bundle 已验证
预览
功能介绍
验证驱动的自我进化循环:失败日志自动变成经过验证的 AGENTS.md 规则;会话内插件(evolve_learn/evolve_apply/evolve_touch/evolve_recall)、工具体检、规则生命周期、本地召回。
适合
- 希望将重复故障和复盘转化为可追踪、经过验证的 AGENTS.md 规则的团队。
- 通过真实检查为新工具设置门禁,并把失败沉淀为可复用经验的插件开发工作流。
- 需要跨会话召回、使用记录、评分、软淘汰和重复项管理的本地规则库。
不适合
- 希望不运行验证命令或就绪门禁就接受规则的工作流。
- 无法有效表达为由经验或失败日志提炼出的持久 AGENTS.md 规则的知识。
- 低于文档要求 Node.js 18 的环境。
README
dsh-rule-evolve
Verification-driven self-evolution loop for DeepSeek Harness.
Renamed from
dsh-evolve(old URL redirects). Reason: another community project (william-jin-cmu/dsh-evolve) already uses that name for in-session plugin hot-mounting. Different focus: that project evolves which plugins are mounted; this project evolves which rules are trusted, with verification gates. The CLI command staysdsh-evolvefor compatibility (dsh-rule-evolveis also available).
Agents keep repeating the same expensive lessons: a crash fixed last week gets re-debugged today, a Windows quirk gets rediscovered, an install trap gets re-hit. dsh-evolve turns that loop into a traceable pipeline:
experience (markdown) → learn → rules (AGENTS.md) → verify (real checks)
Every rule carries its source and its last verification result — evolution is auditable, and nothing is ever “learned” without being checked.
Quick start
node scripts/dsh-evolve.mjs learn --from docs/troubleshooting.md --out experience.jsonl
node scripts/dsh-evolve.mjs rules --experience experience.jsonl --out AGENTS.md
node scripts/dsh-evolve.mjs verify --experience experience.jsonl --dir ./my-plugin
verify runs the real check pipeline (dsh-plugin-doctor check <dir> by
default, override with --cmd) and stamps every entry verified: true/false.
Self-improvement loop (v0.2.0)
Full evolution with reflection, profile installation and an evolution log:
# 1. reflect on a completed task/retrospective
node scripts/dsh-evolve.mjs reflect --task "make my plugin pass its own checks" --result retro.md --out experience.jsonl
# 2. evolve: verify rules against the real repo, install them into a dsh profile,
# and append one round to EVOLUTION.md
node scripts/dsh-evolve.mjs evolve --experience experience.jsonl --dir ./my-plugin --profile web --log EVOLUTION.md
The rules land in <DSH_HOME>/profiles/web/AGENTS.md (previous file backed up),
so the next session actually starts with the lessons. Every round is logged:
## Round 1 — 2026-08-15T…
- New rules: 5
- Verified: yes ✅
- Sources: examples/doctor-experience.md
- Command: dsh-evolve evolve --experience … --dir … --profile web
Dogfood: our doctor repo now passes its own check with 5 verified rules installed
into a profile (see examples/demo/EVOLUTION.md).
Learning from failure logs (v0.3.0)
extract turns raw failure logs into conditional rules automatically — no
manual retrospective needed:
node scripts/dsh-evolve.mjs extract --task "publish to npm" --from install.log \
--out experience.jsonl --hint "configure the credential and retry"
Every ERROR/failed/ERR_ line becomes a rule: `When “
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:zoahdev/dsh-rule-evolve#path:/plugin。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。