AI Agent Hub
Back to plugins
🖥️

dsh-plugin-undo

Client Updated 2026.08.17

Run the following command in DeepSeek Harness:

dsh plugin install wang-xudong/dsh-plugin-undo

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

Run dsh plugin install wang-xudong/dsh-plugin-undo in your terminal to install the plug-in; source lives at https://github.com/wang-xudong/dsh-plugin-undo . Restart the profile after installation to activate it.

About this plugin

Rewinding a conversation in DeepSeek Harness usually comes with a catch: most rewind plugins rely on sessions.fork to copy the history prefix into a brand-new session, leaving your sidebar cluttered with duplicates and splitting the model context. dsh-plugin-undo takes a cleaner approach — undo in place.

The entire capability lives behind a single /undo command: /undo removes the last completed turn, /undo 3 removes the last three, and /undo all removes every turn currently visible to the model. After undo, the removed turns collapse into a compact header in the chat view; click it to expand or fold again. The raw session log stays append-only and is never rewritten. The session ID stays the same, there is no fork, no new session, and the model context is exactly the retained history.

Who is it for? If you iterate prompts and try-and-fail within a single session and do not want your sidebar buried under forked branches, this plug-in was built for that workflow. It touches no project files, leaves the underlying message structure intact, and operates only at the surface layer — lightweight and side-effect-free.

Use Cases

  • Iterating prompts in one session without spawning fork duplicates
  • Model went off-track; quickly rewind the last few turns and retry
  • Cleaning up dead-end turns to keep the model context tidy
  • Accidentally sent something; undo that turn immediately

Best For

  • Developers who iterate prompts frequently at high tempo
  • Harness users who prefer a single-session workflow
  • Light users who do not want their sidebar flooded with forks