extracurricular-ai/dsh-filesnap 预览 preview

extracurricular-ai/dsh-filesnap

DSH Rewind & Redo — by FileSnap. 把对话和它改过的文件一起恢复到某一轮之前(受claude code rewind启发并改进),不需要 git 仓库,并且可以撤销恢复(redo受opencode启发并改进),由rust驱动是市面上最快最可靠的dsh rewind插件. A blazing-fast rewind and redo plugin for DeepSeek Harness, powered by a 🦀 Rust core, tracking the conversation and the files it changed, no git required, low disk consumption

Project Overview项目介绍

dsh-filesnap is a DeepSeek Harness plugin that rolls back both the conversation and workspace files to a chosen turn via /rewind, using a Rust snapshot engine. /redo reverses the rewind, and no Git is required, so it works in plain directories and repositories. It protects binary files, ignored files, and edits made through ctx.fs outside the project root, fitting multi-turn coding agent sessions that need workspace undo. Caveat: because dsh lacks an event-registration API for external plugins, uninstalling the plugin leaves captured sessions unreadable until reinstall; their on-disk data is preserved.

dsh-filesnap 是 DeepSeek Harness 插件,用 Rust 引擎在 /rewind 时把对话与工作区文件一并回退到指定回合,事后可用 /redo 撤销。无需 Git,可在普通目录与仓库中使用;保护二进制文件、被忽略文件及 ctx.fs 在项目外的写入。适用于多轮编码代理会话中想回退工作区状态的场景。注意:卸载后已捕获的会话因 dsh 缺乏事件注册 API 而无法打开,数据仍保留。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 43 stars - an early-stage project星标 43,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-filesnap

把 extracurricular-ai/dsh-filesnap 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

DSH Rewind & Redo — by FileSnap

npm CI 许可证

中文 | English

完整使用手册 ↗ · 安装、回退与撤销、快照清理、升级迁移和常见问题;支持按版本切换文档。

0.4.0 界面截图与历史图库

dsh-filesnap 是 DeepSeek Harness(DSH)的对话与文件回退插件。 先查看将写回、恢复或删除的文件,确认后一起回退对话和已跟踪文件。原对话保留为分支,选错了可以用 /redo 撤销回退,无需 Git。

0.4.0:新增中断恢复设置面板,回退或 redo 被打断后可预览继续或回滚。 按钮通过独立 RPC 获取结果,不往对话历史写操作日志。

dsh-filesnap:对话与工作区一起回退

完整中文演示(旧版)· 2:24 · English walkthrough(旧版)· 2:29

0.4.0 需要 FileSnap 引擎 0.5.1+。本次无需发布新引擎;预览接口不可用时会拒绝还原。

安装

dsh plugin --profile web add dsh-filesnap

需要 DeepSeek Harness(本版集成验证使用 0.1.2-rc.1)、Node.js ^22.19 或 >=24。支持 Linux、macOS、Windows 的 x64/arm64;FileSnap 0.5.1+ 引擎随插件安装。headless 用户把 profile 改为 headless。

重启对应 profile 即可,不需要手动添加 loader。若从 0.2.1 或更早升级,先删除 ~/.dsh/profiles/<profile>/cordis.patch.yml 中手写的 id: filesnap 条目,避免与内置 bundle 重复。

回退与撤销

  1. 让 DSH 完成至少两轮任务。已有可恢复快照时,assistant 回复的操作行会显示回退按钮。
  2. 点击按钮,检查目标轮次与文件变更清单;取消或 Esc 关闭不会创建分支或恢复工作区文件。
  3. 确认后创建分支并恢复文件,再打开新分支。原始提示词会回填到空输入框,不覆盖已有草稿或图片。
  4. 选错了回退点,在新分支点击“撤销回退”或执行 /redo,预览文件清单后确认。还原成功且无剩余撤销记录时,自动归档旧分支并返回原对话;会话内容和快照保留。

没有可撤销记录(例如已完成 redo)时,会显示普通状态提示,不会要求升级引擎或再次确认。普通会话不会仅因没有撤销记录而被归档;文件恢复失败或仍有撤销记录时,分支也会保留。宿主不支持归档或归档失败时,保留分支并在还原结果中说明。

文件状态、忽略规则或轮次在预览后改变时,需要重新预览;确认令牌五分钟过期且只能使用一次。部分恢复失败会列出受影响路径,不会显示为无事发生。完整流程与边界。

中断恢复

新回退及其 redo 被进程退出、超时或文件错误打断后,打开 设置 → FileSnap → 中断恢复,预览继续还原或回滚到操作前的文件清单,再确认。救援快照与必要状态独立保存,不写入对话;发现中断后的额外修改时会阻止覆盖。操作方法与恢复边界。

工作区快照与空间清理

点击会话头部的 “查看快照状态”,打开独立的“工作区快照”面板:

  • 当前工作区索引和共享文件内容分别展示,避免把跨工作区共享内容误算成当前项目独占空间。
  • 查看各会话持有的快照轮次数,以及未受保护文件及原因。
  • 在面板内点击空间清理,核对范围后确认。只回收未被引用的数据,保留现有快照、redo 救援数据和工作区文件。
  • 清理完成后刷新占用。显示的是当前用量,不是预计释放量;仍被快照引用的内容不会释放。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev hedgehog 下一个 Next dsh-file-review →