Create historical snapshots of any folder and one-click return to the past — like Git with version history, but no Git knowledge required, works with any folder.¶
This solves the problem that “backing up before making changes” is hard to do: finding a backup tool, selecting a directory, naming it — after these three steps, nobody actually does it. With this plugin installed, you can save a snapshot with one button on the panel, one row on the timeline represents the state at that moment, and clicking “Restore” takes you back. The model can also save, view history, and roll back.
Installation¶
Install via GitHub:
dsh plugin --profile desktop add github:guomi6450/dsh-folder-timemachine
Core Features¶
- Folder history for any directory: Save version history for any folder, with support for real-time (silent 8 seconds after changes) or scheduled automatic snapshots.
- Smart deduplication: Deduplicates by content; no empty versions are created when content hasn’t changed.
- Safe rollback: Automatically saves a safety point before each restore, and the restore itself can be undone.
- Model tools: Supports model tool invocation.
Usage¶
Panel Operations¶
- Enter path → Start Protection: Add the folder to the protection list.
- Save Now / Save a Snapshot: Save a snapshot.
- Auto Archive dropdown: Off / Real-time (save on change, 8s silence) / Scheduled (every 5, 15, 30 minutes / 1 hour).
- Click a folder row: Expand its history timeline.
- Click Restore on a row: Return to that moment (automatically saves a safety snapshot before restoring).
- Remove Protection: Stop tracking, but history remains on disk.
Model Tools¶
The tool name is folder_timemachine. When dir is omitted, the current session’s working directory is used.
action=snapshot: Save a snapshot.action=history: List snapshots for a folder.
Storage and Limitations¶
- Storage location:
$DSH_HOME/folder-timemachine/. - Retention policy: Default retains the latest 50 snapshots per folder.
- Default exclusions:
.git,node_modules,.DS_Store, and similar directories. - Safety constraints:
- Restore is reversible (automatically saves a safety snapshot before each restore).
exactmode will delete files created after the snapshot.- Non-empty directories are never touched.
- Objects are append-only (not hard links).
Ecosystem¶
This is an MIT-licensed plugin, part of the DeepSeek Harness ecosystem.