AI Agent Hub
Back to plugins
⚙️

dsh-rewind

Workflow Updated 2026.08.16

Run the following command in DeepSeek Harness:

dsh plugin install SipengXie2024/dsh-rewind

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

Run dsh plugin install SipengXie2024/dsh-rewind in the DeepSeek Harness CLI to install this plugin; source: https://github.com/SipengXie2024/dsh-rewind

About this plugin

When you drive an AI agent in DeepSeek Harness and it takes a bad turn, most of the time you end up manually undoing changes one by one or starting over from scratch. dsh-rewind ports the rewind capability from Claude Code into dsh: point to any user message in the conversation history and roll back conversation, code, or both to that exact moment, or fork a summarized branch and keep working from there.

The plugin exposes four menu actions that map to common recovery patterns: restore conversation (the bubble becomes an inline edit box, then forks and reruns the rewritten message), restore conversation and code (shows a file-revert card before forking), code-only revert (writes files back without any conversation change), and summarize-and-branch (forks, opens the branch, and auto-runs compact to compress the leading history). File snapshots are captured by a tools/execute middleware that intercepts write, edit, and str_replace_editor calls, stored in a SHA-256 content-addressed object library that survives restarts. When the rewind menu opens it probes for file changes after the boundary in parallel; if zero files are affected the code-revert options are greyed out with a clear note so you know exactly what is and is not available.

Built for developers who run high-frequency agent workflows in dsh and frequently need to roll back code and conversation to a previous state before continuing. The plugin is explicit about its boundaries: bash side effects and external system changes are not tracked or reverted, so you get an honest, focused tool rather than a false sense of universal undo.

Use Cases

  • Roll back a bad AI code change, rewrite it inline, and rerun
  • Fork a summarized branch mid-session to explore a new direction
  • Revert only code files without touching conversation history

Best For

  • Developers driving high-frequency agent coding in dsh
  • Teams that need safe rollback points during long sessions
  • dsh users who want the Claude Code rewind experience