dsh-rule-evolve

by zoahdev

开发与运行时github 检测到 manifest package.json#dsh收录于 08-16

验证驱动的自我进化循环:失败日志自动变成经过验证的 AGENTS.md 规则;会话内插件(evolve_learn/evolve_apply/evolve_touch/evolve_recall)、工具体检、规则生命周期、本地召回。

Verification-driven self-evolution loop: failure logs become verified AGENTS.md rules; in-session plugin (evolve_learn / evolve_apply / evolve_touch / evolve_recall), tool-verify gate, rule lifecycle, local recall.

安装

dsh plugin --profile web add github:zoahdev/dsh-rule-evolve#path:/plugin

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

In-session self-evolution for DeepSeek Harness. Install the plugin, and your agent can learn from failures and install verified rules into the profile — without leaving the conversation.

Install

dsh plugin --profile web add github:zoahdev/dsh-rule-evolve#path:/plugin

Tools

Tool What it does
evolve_learn Extracts lessons from a failure log or retrospective and persists them to profiles/<p>/data/dsh-evolve/experience.jsonl
evolve_apply Verifies rules with a user-supplied command, then installs them into profiles/<p>/AGENTS.md (backup created); refuses to install unverified rules

Example flow the agent can run itself:

evolve_learn(task: "fix plugin install", experience: <error log>, hint: "check allowBuilds")
evolve_apply(profile: "web", verifyCmd: "node <doctor>/lib/bin.js check <repo> --json")

Rules are auditable: each one carries its source, tag, and last verification status. Same core logic as the CLI (dsh-evolve extract/evolve/audit).

中文

把自我改进循环装进 DSH:agent 在会话里直接从失败日志提取规则,经真实检查 验证后安装进 profile 的 AGENTS.md(自动备份),未验证的规则绝不安装。

dsh plugin --profile web add github:zoahdev/dsh-rule-evolve#path:/plugin

两个工具:evolve_learn(失败→经验)、evolve_apply(验证→安装)。

原始 README: https://github.com/zoahdev/dsh-rule-evolve/blob/main/plugin/README.md ↗