dsh-snapshot
Run the following command in DeepSeek Harness:
dsh plugin install DfsyJian/dsh-snapshot
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install DfsyJian/dsh-snapshot in your terminal to install the plugin; full source code is at https://github.com/DfsyJian/dsh-snapshot.
About this plugin
The scariest moment when working with an AI agent is not a single wrong variable rename; it is the rm that silently wipes half your directory, or three consecutive edits that mangle the same file beyond recognition. dsh-snapshot exists to hand you an antidote: it quietly captures a snapshot of every file before the agent writes, edits, or shell-deletes it, so you can always pull the content back the moment something goes wrong.
The key design idea is grouping snapshots by conversation. Every write, edit, and deletion triggered by a single user message is bundled into one row on the sidebar timeline, tagged with a compact stat such as Create x2, Modify x1. Click that row and all changes from that conversation are rolled back together as a whole, eliminating the half-reverted mess of partial rollbacks. Alternatively, type /rollback in the prompt to open a searchable panel where you can filter by snapshot number, file name, or operation type; pick a target, confirm, and you are back. Before each rollback the plugin records the current state, so you can keep undoing and redoing without fear of losing track.
It works out of the box with zero configuration, and offers fine-grained toggles for the master switch, per-session retention count, project-wide quota, and orphan-snapshot cleanup, all applied instantly. If you let a DSH agent do refactors, bulk file operations, or run shell commands, dsh-snapshot turns every scariest moment into a one-click undo.
Screenshots
Use Cases
- Accidentally deleted files after an agent runs rm
- Multiple edits mangled a single file and you need a clean undo
- Bulk refactoring went wrong and you roll back by conversation
Best For
- Developers coding with DSH Web agent
- Engineers letting agents run shell commands
- Teams that need an audit trail and quick recovery
Related Plugins
Traceable, searchable cross-session memory for AI agents that turns conversation knowledge into a typed knowledge graph and recalls relevant subgraphs instead of replaying full history, natively integrated with DeepSeek Harness.
Gives DSH AI cross-session long-term memory, to-do and skill management, plus multi-session orchestration, external AI delegation, and an infinite canvas that grows with you.
dsh-mnemon is a three-tier, pluggable, Agent-driven memory system for DeepSeek Harness, combining Runtime memory, Project Documents, and replaceable Memory Spaces with nine long-term providers.
An opinionated, zero-infrastructure file-based memory protocol: human-readable markdown files plus a bounded always-loaded index, curation discipline, and no database or embeddings.

