dsh-config-watch

by equinox7379

开发与运行时github收录于 08-23

DeepSeek Harness 插件:记录环境配置变更历史。每次服务启动时对 profile 关键文件与插件清单拍快照,与上次对比,差异写入变更日志。

DeepSeek Harness plugin that records environment config change history: snapshots profile key files and the plugin manifest at each service start, diffs against the last snapshot, and appends changes to a log.

安装

dsh plugin --profile web add github:equinox7379/dsh-config-watch

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

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

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

README

目录

DeepSeek Harness 插件:记录环境配置变更历史。每次服务启动时对 profile 关键文件与插件清单拍快照,与上次对比,差异写入变更日志。

用途

排查「环境何时被改过」类问题时提供时间线。快照仅保存哈希与文件名,不复制文件内容。

用法

  • 工具:config_changes
  • 参数:limit(默认 20,最多返回 200 条内的最近 N 条)

示例(问「最近环境改了什么」):

{ "entries": [ { "at": "2026-08-14T09:47:00Z",
    "changes": [ { "kind": "plugin-added", "target": "dsh-modsearch", "detail": "2026-08-14T09:40:12Z" } ] } ],
  "total": 37 }

可靠性

  • 数据只写 ~/.dsh/config-watch/(history.jsonl 轮换上限 200 条 + last-snapshot.json);
  • 快照失败仅记录日志,不影响服务启动;
  • 零依赖、无自定义会话事件、无 HTTP 路由。

安装

dsh plugin --profile web add link:/path/to/dsh-config-watch
# 重启 dsh web

License

MIT

原始 README: https://github.com/Equinox7379/dsh-config-watch/blob/master/README.md ↗