AI Agent Hub
Back to plugins
🖥️

dsh-undo

Client Updated 2026.08.26

Run the following command in DeepSeek Harness:

dsh plugin install tofe98/dsh-undo

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

Run dsh plugin install tofe98/dsh-undo in DeepSeek Harness to install this plugin; the source repository is hosted at https://github.com/tofe98/dsh-undo.

About this plugin

When you are deep in a multi-turn DSH conversation and realize you want to go back and rephrase an earlier prompt, you are usually forced to start a brand-new session from scratch. dsh-undo removes that friction: rewind to any previous prompt right inside the current session, edit it in a forked child session, and send it again — all while the original log stays untouched.

Two entry points make the flow feel natural. Hover the session header to reveal an undo button; its dropdown lists every user turn in reverse chronological order, and picking one forks the session at that turn boundary and prefills the composer so you can tweak the wording and resend. A slim ruler along the left edge of the conversation draws one tick per user message: left-click scrolls to that prompt, and right-click confirms and triggers the same undo directly from the ruler. Everything is computed from the live conversation snapshot in the browser — no RPC calls, no build step, no server dependencies.

Built for DSH users who iterate on prompts frequently, explore alternative phrasings or branching directions within the same conversation thread, and value a non-destructive workflow. Because undo is a fork rather than a mutation, you can rewind repeatedly and try multiple variants without polluting the original record. As a practical bonus, resending the identical prompt after an undo preserves the full request prefix, achieving a measured 99.94% cache hit rate and eliminating most redundant token billing.

Use Cases

  • Rewind to an earlier prompt mid-conversation, rephrase it, and resend in a forked session
  • Use the side ruler to jump to or undo any historical turn and explore alternative directions
  • Undo and resend the identical prompt to maximize prefix-cache hits and reduce redundant token costs

Best For

  • Heavy DSH users who iterate on prompts frequently and need to revisit earlier turns regularly
  • Developers who prefer a non-destructive editing workflow and want to preserve the original conversation log
  • Cost-conscious developers who leverage prefix caching to minimize redundant token billing