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 而无法打开,数据仍保留。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-filesnap(extracurricular-ai/dsh-filesnap)
仓库:https://github.com/extracurricular-ai/dsh-filesnap
本站详情页:https://www.yhbd.top/plugins/extracurricular-ai-dsh-filesnap/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 Apache-2.0 · ⭐ 43 · 最近提交 2026-09-11 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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
中文 | English
完整使用手册 ↗ · 安装、回退与撤销、快照清理、升级迁移和常见问题;支持按版本切换文档。
dsh-filesnap 是 DeepSeek Harness(DSH)的对话与文件回退插件。 先查看将写回、恢复或删除的文件,确认后一起回退对话和已跟踪文件。原对话保留为分支,选错了可以用 /redo 撤销回退,无需 Git。
0.4.0:新增中断恢复设置面板,回退或 redo 被打断后可预览继续或回滚。 按钮通过独立 RPC 获取结果,不往对话历史写操作日志。

完整中文演示(旧版)· 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 重复。
回退与撤销
- 让 DSH 完成至少两轮任务。已有可恢复快照时,assistant 回复的操作行会显示回退按钮。
- 点击按钮,检查目标轮次与文件变更清单;取消或 Esc 关闭不会创建分支或恢复工作区文件。
- 确认后创建分支并恢复文件,再打开新分支。原始提示词会回填到空输入框,不覆盖已有草稿或图片。
- 选错了回退点,在新分支点击“撤销回退”或执行
/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 →
SenmuuuuW/dsh-whale-report
SnowCrescenter-tech/dsh-milestone
PerryLink/dsh-checkpoint-rewind
XieZongChen/dsh-md-notes
TencentCloud/tencentcloud-agentobs-sdk-dsh
linyp/dsh-plugin-langfuse