npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-evolve-preset

v0.2.7

Published

进化模式:DSH 的 agent 模式。模型每轮先对齐目标与边界再动手,回复固定对齐栏、正文、收尾检测三块;任务树、画像注入与面板、自查工具、计划模式入口一个包装齐。

Readme

dsh-evolve-preset

中文 | English

一个包,装下进化模式整套:模式本体 + 任务树 + 画像注入与面板 + 对齐栏样式 + 自查工具 + 计划模式入口。

进化模式是 DSH 的一个 agent 模式。它不改模型能力,改的是模型每一轮的工作方式:动手前先把这件事问清楚——这一层要拿到什么、按哪几条原则做、哪些边界不能碰、哪些只是方向——落成四行摆在你眼前,同时记进任务树,你随时看得见它做到哪、在替哪件事做。然后照这四行干活,回复固定三块:对齐栏、正文、收尾检测。

一个包装了什么

| 能力 | 形态 | 说明 | | --- | --- | --- | | 模式本体 | agent preset | persona 正文(四段工序)+组合行+一篇维护技能 | | 任务树 | 工具 + 侧栏面板 | task-tree 工具;每轮对齐栏注入;树文件在 $DSH_HOME/task-trees/sessions/ | | 画像注入 | 宿主钩子 | 开场注入 $DSH_HOME/evolve/user-profile.md 与任务画像清单;仓库不预置任何画像内容 | | 画像面板 | 设置页 + 侧栏 | 名册、逐条编辑、结构、设置、原文 | | 对齐栏样式 | 浏览器半边 | 把对齐栏与收尾检测调小调淡,正文不动 | | 自查工具 | 工具 | net-clean-check、profile-lint、gate-check | | 设置页 | 设置页 + 宿主路由 | 思考提醒(起始秒数/复查间隔/内容/开关)、收尾检测开关、跨回合查询开关、上下文压缩插件提醒;设置存 $DSH_HOME/evolve/evolution-settings.json | | 计划模式入口 | 工具 | enter_plan_mode;组合里没有 planMode 服务时不注册 | | 基础词条 | 宿主钩子 | 字典通用层建好后,补一套进化模式基础词条;只补缺失,不覆盖、不删已有条目 |

术语字典 dsh-term-dict 在 dependencies 里(要求 0.2.0 及以上):安装本包时会一起拉下来; 但它是独立插件,不会自动挂载——要用 dict 工具与词条检测,得在插件页把它装上并启用。 启用之后,本包每次启动会把通用层里还缺的进化模式基础词条补进去(assets/basic-terms.md 16 条:进化模式、对齐栏、收尾检测、任务树、关卡、画像、验收、本层目标、根本目标、基本点、硬需求、软需求、任务、对象、词条、词典);已有条目一条不动,写入前留 general.md.bak。字典还没建时不动——首建归 dsh-term-dict,它只在那时放自己的默认模板。

命令

| 命令 | 作用 | | --- | --- | | /task-tree | 看本会话的任务树(做到哪/替谁做/旁边还有谁);--all 列各会话的树,--check 出体检 |

任务树的写入护栏

连着改节点(align/set/move/drop)而期间没有建立新目标(new/add)时,写入按次数交替拦放:第 1、2 次放行;第 3 次报提示并拒绝写入;第 4 次放行但仍提示,第 5 次拒绝,第 6 次放行仍提示——从第 3 次起单数拦、双数放。解除办法:建立一个新目标(new 立根或 add 挂一支),计数即清零。

设置页

「设置 → 进化模式」一节:

  • 思考提醒:起始秒数(5–600,默认 40)、复查间隔(5–120,默认 10)、内容(只列本层目标/完整对齐栏,默认只列本层目标)、总开关。到点就把当前这一版对齐栏初稿交出来——只列本层目标时,连目标都还没写出来也发,写「(还没写出来)」;完整对齐栏要求有目标,缺的项写「无」。
  • 收尾检测:关掉后回复只出对齐栏与正文两块,五项检测不跑;开回来恢复第三块。
  • 对齐栏与收尾检测的渲染:关掉后这两块不再做成引用块(去引用块、去行名加粗),内容以普通正文留在回复里——客户端与落盘都是普通文字,一个字不丢;思考提醒也不再插对齐栏初稿。
  • 跨回合查询:关掉后,会话检索、导出、恢复三件工具不可调用。
  • 上下文压缩插件提醒:装了 billion-context 且在跑时,打开界面提示一次(设置页顶部另有横幅)。

设置页改动即时落盘,不用点保存。

设置存在 $DSH_HOME/evolve/evolution-settings.json;提示状态存在 $DSH_HOME/evolve/billion-context-notice.json。任务树与画像注入判模式优先走宿主的 agentPresets.presetForSession(DSH 0.2.2 起),更低版本自动回退到会话投影。

安装

dsh plugin --profile desktop add dsh-evolve-preset

装完重启 DSH,在 设置 →「模式」里选「进化模式」开新会话。

要求 DSH >= 0.2.1-alpha.4(与 package.json 的 engines.dsh 同口径):模式组合里用到 dsh-plugin-market/tools,它从 0.2.1-alpha.4 起才有。

从仓库装(不想走 npm 时):

git clone https://github.com/taoziliyouchong/dsh-evolve-preset
cd dsh-evolve-preset
node scripts/install.mjs --profile desktop

从 0.1.x 升级

0.1.x 是分包发布(dsh-task-tree、dsh-profile-inject 等各是一个包)。0.2.0 把能力全部并进本包,旧的配套包要从 profile 里摘掉,否则同一个能力会挂两遍:

dsh plugin --profile desktop remove dsh-task-tree dsh-profile-inject dsh-profile-panel dsh-chat-density dsh-check dsh-plan-enter
dsh plugin --profile desktop add dsh-evolve-preset

dsh-term-dict 保留——它是依赖,不重复。

每轮回复的形状

> **本层目标**:……
> **基本点**:①……〔画像〕
> **硬需求**:①……〔原话〕
> **软需求**:①……
> **关卡**:7/7 ✅

(正文)

> **收尾检测**
> ① 画像:无变动\
> ② 归纳:无\
> ③ 待确认:无\
> ④ 词条:无

对齐栏四行每轮从任务树注入,收尾检测由本 preset 的正文规定。没装任务树时(本包永远装得上,这块是内置的),正文照样要求模型自己写对齐栏。

结构

  • index.js —— 宿主入口:一个 apply 依次挂载 host/ 下七块能力,单块失败不拖垮整包
  • host/ —— 七块能力的宿主实现(basic-terms、task-tree、profile-inject、profile-panel、chat-density、check、plan-enter)
  • lib/client.js —— 浏览器半边:一个入口装三块 UI(任务树面板、画像面板、对齐栏样式)
  • cordis.patch.yml —— 模式声明+组合行+本包宿主行
  • skills/ —— 两篇技能:evolve-maintenance(维护细则)、task-tree-workflow(任务树用法)
  • assets/ —— 自查工具的三个脚本,加一份基础词条 basic-terms.md(随包发布,不引用外部目录)

已知限制

  • 合包后不能再单独停用某一块能力:不想用画像面板也只能整包留着。要拆开,装 0.1.x 的分包版。
  • 任一块的宿主钩子挂载失败不影响其余块,但会在宿主日志里留一行 [dsh-evolve-preset] <模块> 未挂上。
  • persona 正文约一万字,每个新会话整份读入,是固定开销。
  • 收尾检测的「归纳」「词条」两项依赖 repeat-scan(dsh-session-search)与 dict(dsh-term-dict);没装就写「无」。

环境坑文档(可选)

想给本机环境问题留个记录(沙箱拒删、大目录搜索卡住、改完不生效),可以写在 $DSH_HOME/env-pitfalls.md:开头写主题索引,每节写「现象 → 错方向 → 对的做法」。它不进包、不进每轮上下文。

反馈

插件有问题,按这个顺序:

  1. 开 Issue:https://github.com/taoziliyouchong/dsh-evolve-preset/issues —— 能留痕、能搜历史;
  2. 急着问或不想开 Issue,QQ 号:2171960697(加好友请注明装的是哪个包)。

反馈时带上:DSH 版本、插件版本、报错原文、截图。

许可

MIT