dsh-time-machine: The Undo Button for DeepSeek Harness Workspace

On October 19, 2026, the plugin ecosystem for DeepSeek Harness (DSH) has become increasingly mature. When agents perform file edits in the local workspace, any errors often require manual Git operations for rollback, which incurs high costs. dsh-time-machine aims to provide an instant “undo” capability for the DSH Web workspace.

dsh-time-machine is a plugin maintained by icyaaaww. Its core function is to save snapshots of every workspace change made by the agent and provide a visual rollback capability.

Core Features

The plugin provides the following capabilities:
* Automatic Snapshots:Automatically creates checkpoints for every conversation turn, which persist across process restarts.
* Visual Rollback:Provides Diff previews and supports selecting specific files for restoration. The system detects subsequent edits to prevent overwriting conflicts.
* Resume Interrupts:Supports undoing the restore operation itself, as well as recovering rollbacks that failed due to interruption.
* Non-intrusive Notifications:After restoring files, notifies the agent via a persistent inbox without rewriting chat history.
* Zero Model Calls:Snapshot viewing and undo operations do not require invoking large language models.
* Bilingual UI:Provides both Chinese and English Web interfaces.

Installation & Activation

The plugin requires the following environment:
* DSH Version: 0.2.1-alpha.1
* Cordis Version: 4.0.5-alpha.1
* Node.js: 24+
* Git

Installation steps:

  1. Download dsh-time-machine-0.1.0.tgz from Releases to a local absolute path.
  2. Execute the installation command under the Web Profile:
dsh plugin --profile web add /absolute/path/dsh-time-machine-0.1.0.tgz
  1. Restart the Web host after installation (use the built-in plugin manager for Desktop environments).

Typical Usage

The plugin supports both command-line instructions and graphical interface operations.

Command-line Instructions:
* /time_machine: View the timeline of the current session.
* /time_machine preview <id>: View a change preview for a specific turn.
* /time_machine undo <preview-token>: Execute an undo based on the preview token.
* /time_machine name <id> <label>: Name a checkpoint.
* /time_machine recover: Recover an interrupted rollback operation.

GUI Operations:
After the agent modifies the local Git workspace, select Open change timeline next to the editor. Inspect a turn, select individual files to refresh the preview, and then explicitly confirm the undo.

Configuration

The time-machine configuration line accepts the following parameters (default values in parentheses):
* storageRoot: Storage root directory, default $DSH_HOME/plugins/time-machine or ~/.dsh/plugins/time-machine.
* maxFileBytes: Maximum byte size for a single file, default 2 MiB.
* maxFiles: Maximum number of files per snapshot, default 5,000.
* maxStoreBytes: Maximum storage bytes per repository, default 512 MiB.
* maxRecords: Maximum number of records per repository, default 2,000.
* timeoutMs: Operation timeout duration, default 30,000.
* maxDiffChars: Maximum character count for Diff preview, default 60,000.
* previewTtlMs: Validity period for preview tokens, default 300,000 (5 minutes).

Limitations & Notes

  • Runtime Environment: Tested only on Windows; requires a local Git repository and restricted UTF-8 text files.
  • Exclusions: Binary files, oversized files, symbolic links, untracked files ignored by Git, and nested repository contents are not saved.
  • Data Recovery Scope: Git index, commits, databases, deployment information, empty directories, ACLs, and extended attributes are not restored.
  • Atomicity: Restoration is performed file-by-file with conflict checking; multi-file replacement is not atomic. Interrupted restorations require /time_machine recover.
  • Session Limit: The list only displays the latest 50 records of the current session; older IDs remain accessible.
  • Version Dependency: Requires exact versions of DSH 0.2.1-alpha.1 and Cordis 4.0.5-alpha.1; automatic compatibility handling is not supported.

dsh-time-machine provides IDE-like rollback capabilities for the DSH workspace through persistent snapshots and fine-grained file-level control, reducing the trial-and-error costs of agent development.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye