dsh-self-evolve

DSH PLUGIN记忆与知识

仓库 Kosello/dsh-self-evolve

记忆与知识 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

dsh-self-evolve 是 Kosello 维护的 记忆与知识 类 DSH 可安装插件, 仓库为 Kosello/dsh-self-evolve,许可证 MIT。 下面按「装什么、怎么装、验没验过、跑起来要注意什么」逐项列出。

一句话选型结论

按资料字段整理

dsh-self-evolve 是记忆与知识类的 DSH 可安装插件,验证等级 L5 · 运行验证通过,安全审查为低风险,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类记忆与知识 收录类型可安装插件 验证等级L5 · 运行验证通过 安全审查低风险
验证等级 L5 L5 · 运行验证通过
GitHub 星标 0 复刻 0 · 未关闭 issue 0
最近更新 2026-10-28 创建于 2026-10-28
README 7.6 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:Kosello/dsh-self-evolve
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

记忆与知识
字段来自项目仓库与公开索引,中文说明由本站标注

适用场景

记忆

上游标签

ai-agentsdeepseek-harnessdsh-pluginprocedural-memoryself-improvementskills

验证等级与安全审查

L5 · 运行验证通过
自动化流程结论,不是人工审核
验证等级L5 · 运行验证通过在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度金综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L5:安装和运行都在沙盒里跑通过,装完能直接用的概率高。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在记忆与知识场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-self-evolve当前 L5 · 运行验证通过 低风险 0 未标注 有
ruflo L3 · 安装规范通过 低风险 7.4 万 未标注 无
OpenViking L3 · 安装规范通过 低风险 3.9 万 未标注 无
WeKnora L4 · 沙盒安装通过 低风险 3.3 万 未标注 有
distilly L4 · 沙盒安装通过 低风险 2.5 万 未标注 有
EverOS L4 · 沙盒安装通过 低风险 1.3 万 未标注 有

仓库档案

记忆与知识
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方Kosello仓库 dsh-self-evolve · 默认分支 main
分类记忆与知识memory
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言未标注仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 0收录时的数值,非实时
创建 / 更新2026-10-28 · 2026-10-28最后推送 2026-10-28
本站收录2026-10-30首次进入本站目录的时间

README 全文

7.6 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-self-evolve

Agent-authored procedural memory for DeepSeek Harness.
The agent saves a proven procedure as a SKILL.md in a root the harness already
scans, and future sessions follow it instead of rediscovering it — with the
guards, budgets and approvals an unattended self-improvement loop needs.

This is a fork of jianghuife/dsh-self-evolve
(MIT), ported to DSH 0.2.1-rc.2 and extended. The upstream proof of concept was
a single 0.1.0 release; this fork keeps its small core and adds the missing
safety rails plus the automatic half of the loop.

> Status: 0.4.0, 106 tests, typechecked against DSH 0.2.1-rc.2. Not published
> to npm; install from GitHub or a local checkout.

What it does

Capability Details
skill_manage tool list, create, patch, edit, delete (archives), write_file, remove_file, pin, unpin
User + project scope ~/.dsh/skills and /.dsh/skills, plus flat .md skills
Read before write a skill must be loaded with the skill tool before it can be patched, edited, deleted or pinned
Duplicate refusal create rejects near-duplicates and names the skill to patch instead
Credential + lint scan blocks credential-shaped text; warns on oversized bodies, incident-log shape, references sprawl, destructive shell idioms
Staged approvals optional writeApproval; review diffs with /skills pending, settle with approve/reject
Post-turn reviewer opt-in fork of the finished turn that patches or creates skills, isolated from the main transcript
Jev gate optional TypeSafe Jev call that can cancel a pointless review, with deterministic fallback
Curator mechanical aging: stale after 30 days, archived after 90, pinned skills exempt, only agent-authored skills, never hard-deleted
Usage ledger records loads and review-gate decisions for tuning

Requirements

  • DeepSeek Harness 0.2.1-rc.2 (the tested target; other 0.2.x may work).
  • Node.js 22.19 or newer.
  • Optional: a TypeSafe API key (TYPESAFE_API_KEY) only if you enable the Jev gate.

Install

From GitHub (once the repository is published):

dsh plugin --profile web add github:Kosello/dsh-self-evolve

From a local checkout:

git clone https://github.com/Kosello/dsh-self-evolve.git
cd dsh-self-evolve
npm ci
npm run build          # produces dist/ (also committed for GitHub installs)
dsh plugin --profile web add "$PWD"

Then restart the profile. The plugin activates as the self-evolve row and adds
skill_manage together with the /skills command. See
docs/installation.md for manual wiring, environment
files, verification and uninstall.

Configure

Everything is optional; defaults keep the plugin useful and quiet. Put overrides
on the row in your profile's cordis.patch.yml:

- id: self-evolve
config:
readBeforeWrite: true        # default
writeApproval: false         # set true to review every write
review:
enabled: true              # the reviewer spends tokens; opt in
turnInterval: 10
toolCallThreshold: 15
gate: jev                 # counters (default) or jev
jev:
model: jev-latest
apiKeyEnv: TYPESAFE_API_KEY
confidentNo: 0.75

The full key reference, including the reviewer and gate budgets, is in
docs/configuration.md.

Enabling the Jev gate

The gate is off unless you ask for it, and it degrades to counters when it
cannot run. Give the harness the key through a dedicated env file rather than
the profile YAML:

install -m 600 /dev/null ~/.dsh/typesafe.env
printf 'TYPESAFE_API_KEY=%s\n' "$YOUR_KEY" >> ~/.dsh/typesafe.env
mkdir -p ~/.config/systemd/user/deepseek-harness.service.d
printf '[Service]\nEnvironmentFile=%%h/.dsh/typesafe.env\n' \
> ~/.config/systemd/user/deepseek-harness.service.d/typesafe.conf
systemctl --user daemon-reload
systemctl --user restart deepseek-harness.service

Use

The model gets one new tool:

Action Purpose
list skills across both scopes, with uses and layout
create new skill; scope: "user" \| "project"
patch exact-text replace inside SKILL.md (preferred update)
edit replace body/description wholesale
delete archive (never hard-delete)
write_file / remove_file supporting files under the skill directory
pin / unpin exempt a skill from curator aging

Humans get the /skills command:

/skills pending | diff  | approve  | reject
/skills approval on|off
/skills review on|off|now

Worked examples are in docs/usage.md.

How the loop fits together

turn ends ──▶ counters due? ──▶ (optional) Jev gate ──▶ fork reviewer
│
skill_manage ─┴─▶ ~/.dsh/skills//SKILL.md
│
next session ─┴─▶ skill catalog (progressive disclosure)

The reviewer and gate are described in docs/review-loop.md;
the module map is in docs/architecture.md.

Safety model

  • No secrets in the repository. API keys are read from the process
    environment; the profile YAML holds names, never values.
  • The gate is advisory. It can only cancel a review it is confident is
    pointless; permissions, approvals and write guards stay deterministic.
  • The reviewer writes through skill_manage, so read-before-write,
    duplicate refusal, credential scanning and staged approval all still apply.
  • The review child inherits the parent toolset, but its scope is narrowed to
    skill + skill_manage right after activation; DSH has no per-activation
    tool filter, so this is defence in depth, not a sandbox. Run with
    writeApproval: true when reviewing untrusted conversations.
  • Outbound data: only the Jev gate sends anything off-machine — a bounded
    digest (user message, assistant message, tool count, loaded skill names, turn
    index), never tool output.

Details and threat model: docs/security.md.

Development

npm ci
npm run check       # tsc against DSH 0.2.1-rc.2
npm test            # 106 unit/integration tests
npm run build       # dist/index.js
npm run smoke       # built tool → real dsh-skill + dsh-skill-filesystem catalog
npm run gate-stats  # summarize ~/.dsh/self-evolve/gates.jsonl
npm run verify      # check + test + build + smoke

CI runs the same checks on every push (.github/workflows/ci.yml).

Compatibility and known limits

  • Built and tested against DSH 0.2.1-rc.2; the plugin API is young and may move.
  • The reviewer needs the subagent service and a provider (fork by default).
  • Tool narrowing for the review child is post-hoc; see the security doc.
  • Review children run on the parent's model, so the reviewer is the expensive
    part of the loop. Counters, cooldown and per-session caps bound it.
  • No memory store: durable facts belong to whatever memory layer your profile
    composes (for example an MCP memory server), not to this plugin.

License and attribution

MIT. The upstream copyright notice is retained in LICENSE; this
fork's changes are offered under the same terms. Upstream:
jianghuife/dsh-self-evolve.

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
dsh-self-evolve 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:Kosello/dsh-self-evolve` 即可。

dsh-self-evolve 的验证等级是什么意思?

L5 · 运行验证通过。在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来

dsh-self-evolve 安全吗?

低风险。

dsh-self-evolve 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-self-evolve 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

同名或近似条目

2 条
不同作者的仓库分开列,请确认你要装的是哪一个
记忆与知识
按星标排序,可作替代方案

ruflo

ruflo

L3 · 安装规范通过 7.4 万 星

OpenViking

OpenViking

面向 DeepSeek Harness 的 OpenViking 记忆与上下文插件:pre-step 自动召回与画像注入、会话捕获、`vik

L3 · 安装规范通过 3.9 万 星

WeKnora

WeKnora

把 WeKnora 知识库接入 dsh 的四个只读工具:列出知识库、混合检索原文片段、按顺序还原单篇文档,以及直接取用 WeKnora 自己

L4 · 沙盒安装通过 3.3 万 星

distilly

distilly

Distilly — Distill how they think into reusable Skills for any Agent o

L4 · 沙盒安装通过 2.5 万 星

EverOS

EverOS

L4 · 沙盒安装通过 1.3 万 星

MemOS

MemOS

L4 · 沙盒安装通过 1.2 万 星

Kosello 的其它插件

1 个

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。