dsh-undo: Revert Agent's file modifications by round

dsh-undo is a DSH host-side plugin that snapshots original content before each write/edit operation is persisted to disk. It supports the undo tool, the /undo command, and a Web GUI rollback button, enabling all files modified within an entire conversation round to be reverted at once. It does not depend on git and is available in headless and workspace-write sessions. Unlike conversation rollback plugins, it operates solely at the file layer. Installation: dsh plugin --profile web add github:ruaibeite/dsh-undo; restart required for the changes to take effect. Snapshots are stored in $DSH_HOME/undo/, with configurable options such as maxSnapshots and maxFileBytes. Maintainer: ruaibeite; License: MIT; Category: admin-security.

Read More
dsh-undo: A DSH Session Rewind and Re-edit Tool

`dsh-undo` is a plugin that adds undo functionality to DSH sessions, addressing the pain point of being unable to revert edits. Based on the Cordis paradigm, it uses a “forking” mechanism to allow developers to go back to any historical prompt and re-edit it. The plugin provides two interaction patterns: a dropdown menu in the session header and a left-side ruler; clicking either creates a child session and pre-fills the text. Note that the original session remains unchanged, and only the conversation state is restored; external side effects are not undone.

Read More
dsh-undo: Persistent Undo/Redo per User Turn for DeepSeek Harness

dsh-undo is a preview undo/redo plugin for DeepSeek Harness (dsh), designed to address session rollback issues in multi-step tool tasks. It achieves precise undo by rolling back the visible interface according to real user message boundaries and restoring workspace files modified by tools during that turn. Core features include the local command `/undo` (rolling back the latest or a specified turn number), `/redo` (restoring in LIFO order), and rollback operations for message bubbles in the WebUI. The plugin records snapshots in an isolated Git directory to restore files, supporting tracked files and untracked files up to 2MiB, operating only within the Git workspace root, without interfering with the original Git state. Additionally, it terminates top-level background tasks initiated during rolled-back turns. Currently, this plugin is at version 0.3.0-preview.1, depending on

Read More