dsh-undo:按轮次回退 Agent 对文件的修改

dsh-undo 是 DSH host 侧插件,在每次 write/edit 落盘前快照原内容,支持 undo 工具、/undo 命令与 Web GUI 回退按钮,将一整轮对话改动的文件一次退回,不依赖 git,headless 与 workspace-write 会话可用。与对话回退类插件不同,它只处理文件层。安装:dsh plugin --profile web add github:ruaibeite/dsh-undo,重启生效。快照存于 $DSH_HOME/undo/,可配置 maxSnapshots、maxFileBytes 等。维护者 ruaibeite,MIT,分类 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