DSH Plugins
返回列表
🖥️

dsh-snapshot

客户端 更新于 2026.08.15

在终端中运行以下命令:

dsh plugin install Hyna-hla/dsh-snapshot

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在 DeepSeek Harness 中执行 dsh plugin install Hyna-hla/dsh-snapshot 即可安装该插件,完整源码见 https://github.com/Hyna-hla/dsh-snapshot 。

插件介绍

Inside DeepSeek Harness, the AI assistant repeatedly rewrites project files through write and edit tools, yet a single off-target change can be difficult to undo without manual line-by-line reversions. dsh-snapshot adds a lightweight file-snapshot and undo layer to the host so that every tool invocation leaves a recoverable backup behind.

Concretely, the plugin writes a backup into the \.dsh-snapshots directory after each write or edit call, keeping up to 20 versions per file with a 2 MB per-version cap. When the limit is exceeded it overwrites rather than deletes, a design that fits minimal file-system environments lacking mkdir or unlink. Users can call snapshot_list to see version counts and latest timestamps per tracked file, snapshot_restore to roll back to any historical version (an extra backup is taken automatically before the restore as a safety net), snapshot_purge to clear all history, or export_session to dump the current conversation as Markdown or JSON for review and archiving.

It is well suited to developers who iterate on code frequently within a DeepSeek Harness sandbox, especially during multi-step refactors or bulk configuration edits where a single mistake can damage critical files. It also serves teams that want to periodically export session transcripts for project documentation or knowledge capture.

使用场景

  • AI 改写代码后需要快速回退到之前版本
  • 进行多步重构时防止误改关键文件
  • 将当前会话内容导出用于归档或复盘
  • 团队需要查看每个文件的版本数量与最近修改时间

适合人员

  • 在 DeepSeek Harness 中频繁迭代的开发者
  • 需要安全修改批量配置文件的人
  • 关注会话记录与知识沉淀的团队