DeepSeek Harness plugin

dsh-snapshot-hyna-hla

Automatic file snapshots on write and edit, with restore/purge tools and session export.

Jump to install

Source facts

Repository
Hyna-hla/dsh-snapshot
Latest update
Aug 14, 2026
Category
Memory
GitHub stars
1
Format
bundle
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/Hyna-hla/dsh-snapshot
Plugin: dsh-snapshot-hyna-hla
Author: Hyna-hla

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-snapshot

DeepSeek Harness 宿主插件:文件快照与撤销。

  • 每次 write/edit 工具调用后自动备份文件历史到 <工作区>\.dsh-snapshots\snap-<b64>.json(每文件最多 20 版,单版 ≤ 2MB,超限靠覆写不删除);
  • 提供四个工具:

- snapshot_list — 列出快照仓库:每个被追踪文件的版本数与最新版本时间; - snapshot_restore — 把文件恢复到指定历史版本(恢复前自动再备份一次); - snapshot_purge — 清空所有历史版本; - export_session — 把当前会话导出为 Markdown / JSON。

安装

1. 构建产物拷入 profile 的 node_modules\dsh-snapshot(或经 file: 依赖); 2. cordis.patch.yml 注册:

- insert:
    - id: dsh-snapshot
      name: dsh-snapshot
      config:
        maxVersions: 20
        maxContentBytes: 2097152

3. 重启 DeepSeek Harness(组合在进程启动时加载)。

说明

  • 沙盒策略:宿主根上下文拿不到会话工作区,写入工作区时需透传 sandboxPolicysandboxPolicy.resolve({session}))。
  • 仓库按「每文件一个 JSON(btoa 路径作文件名)」组织,靠覆写而非删除(fs 服务无 mkdir/unlink)。