AI Agent Hub
Back to plugins
⚙️

dsh-rewind

Workflow Updated 2026.08.15

Run the following command in DeepSeek Harness:

dsh plugin install 2501136589/dsh-rewind

Paste the following prompt into your AI chat to install this plugin:

Install by running dsh plugin install 2501136589/dsh-rewind; the source code is available at https://github.com/2501136589/dsh-rewind

About this plugin

DSH session logs are append-only and cannot be truncated in place, and non-git workspaces lack built-in versioning. Rolling back a bad turn previously meant manually restoring files, recreating a session, and re-typing the original prompt.

dsh-rewind adds a one-click rollback button (or /rewind command) under each user message. On confirmation it restores the workspace from a sha256 content-addressed snapshot (covering adds, deletions, edits, permission changes, text and binary files), then forks a new session via the official DSH API so history naturally ends at the chosen turn and the original input is pre-filled into the new composer. The original session is auto-archived with data preserved on disk; forked sessions support continued rollback through lineage, and cross-session file isolation prevents collateral restores.

Ideal for dsh users iterating on agent conversations in directories without version control (or where git is impractical) who want a one-click undo-and-retry for any given turn.

Use Cases

  • Undo a diverging turn by restoring files and forking a new session
  • Iterate agent conversations in non-git or version-control-free directories
  • Script a dry-run file diff then continue in a forked session from a chosen turn

Best For

  • DSH users who frequently re-aim agent conversations
  • Developers managing workspace state without git
  • Teams needing isolated cross-session rollback without collateral restores