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

@weibaohui/hermes-loop

v0.3.1

Published

dsh 插件 · 自动复盘:对话收尾后自动复盘,把有价值的经验蒸馏成可复用的技能(skill)存入技能库,模型可直接调用;同时把环境事实与用户偏好写入跨会话记忆(MEMORY.md / USER.md,首冻结注入每个对话);支持信号加速触发、手动立即复盘、审批模式与技能库治理(归档/恢复,永不直接删除)。

Downloads

2,638

Readme

@weibaohui/hermes-loop

DSH plugin npm version

自动复盘插件:对话收尾后自动复盘,把有价值的经验蒸馏成可复用的技能(skill),把值得长期记住的事实与偏好写入跨会话记忆。

Hermes Loop:会话内复盘面板与技能治理

核心功能

  • 自动复盘:对话达到阈值(默认 10 轮或 10 次工具调用)且过了冷却期,自动触发一次复盘;结论回显到来源会话
  • 经验 → 技能:复盘产出的经验自动写成 skill 存入技能库,模型之后可以直接调用
  • 信号加速触发:用户中断、工具连续失败、纠正词命中时跳过阈值提前复盘;纠正词可在面板自定义,命中率有统计
  • 手动「立即复盘」:面板一键触发,运行过程实时可见
  • 三种模式:自动写入 / 写入前需审批 / 仅记录不写入,设置面板即时切换
  • 技能治理:技能使用统计、僵尸技能识别;Curator 自动维护技能库(活跃 → 归档 → 可恢复,永不直接删除)
  • 跨会话记忆:复盘按需把环境/项目事实、约定教训写入 ~/.dsh/memory/MEMORY.md,把用户画像与偏好写入 USER.md(对齐 Hermes 的记忆分层);记忆全文以会话首冻结方式注入每个对话,写入或手改后下个会话生效。按需产出——多数复盘不产生记忆,不为写而写
  • 工作区记忆(v0.6,参考 Claude Code 的 per-project 记忆):复盘自动判断归属——只适用当前项目的事实(端口、路径、项目特有约定)写入 ~/.dsh/memory/workspaces/<工作区>/MEMORY.md,跨项目通用约定进全局库,用户画像恒全局;两层拼接注入,每层独立 2200 字符配额。无开关,常开

安装

dsh plugin --profile web add @weibaohui/hermes-loop -w

装完重启 dsh web 即生效。

使用

  1. 打开 Web UI → 设置页 → hermes-loop 面板
  2. 默认自动模式即可工作;想更稳妥可切换为「审批」模式(复盘写入前需你确认)
  3. 触发阈值、冷却时间、纠正词表均可在面板调整
  4. 复盘产出的技能进入技能库后,模型通过 skill 工具直接使用;使用统计与归档管理也在面板里
  5. 沉淀记录、使用统计与 Curator 表里的技能名后都有「查看」按钮,弹窗直接看 SKILL.md 内容(Markdown 渲染;项目级技能也能看)
  6. 记忆条目在面板查看用量与内容;增删改直接编辑 ~/.dsh/memory/MEMORY.md / USER.md(全局层)或 ~/.dsh/memory/workspaces/<工作区>/MEMORY.md(工作区层),一行一条、§ 开头,下个会话生效

联系我 :飞书群

link

版本兼容性

本插件与 DeepSeek Harness(@deepseek-ai/dsh)的版本对应关系:

| 插件版本 | 适配 dsh 版本 | 备注 | |---------|--------------|------| | 0.1.17 | 0.2.0-rc.2 | 当前版本;复盘 prompt / 记忆快照 / 收尾沉淀段跟随 DSH 语言设置(locale.preference),不重启切换即生效;e2e 测试清理竞态修复 | | 0.1.16 | 0.1.7-rc.2 | 修复降级路径 Config 导出 null——宿主 settings schema() 不排除 null,会炸 settings.describe() 拖垮整份设置文档(同 dsh-continue#4) | | 0.1.13 | 0.1.7-rc.2 | 修复宿主将 volatile 字段物化为 {} 导致的设置毒化(saneConfigValues 清洗 + 移除 Config 兼容字符串字段) | | 0.1.12 | 0.1.7-rc.2 | 适配 0.1.7 settings 模型(导出 volatile Config,ctx.settings.update 持久化),面板改动重启不再丢失 | | 0.1.11 | 0.1.7-rc.2 | 面板改动只在本次运行内生效(0.1.7 移除了 ctx.settings.register),重启还原 |

发版约定:每次发布新版本时,请在上表追加一行,记录该插件版本实际验证所用的 @deepseek-ai/dsh 版本。package.json 的 engines.dsh 声明最低支持版本;本表记录实际验证版本,二者配合使用。