A production-ready UI Rewind/Revert plugin for DSH. Features inline prompt editing and a flawless dual-engine state recovery system (Workspace ShadowGit + External Tracker) with full support for forked sessions.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Movingtoleveltwo/dsh-revert
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
简体中文
DeepSeek Harness (DSH) 现代化对话回退与重试插件:纯 UI 图形化交互、原地 Prompt 微调、支持工作区与外部文件双引擎安全快照恢复。
✨ 核心特性
- 🎯 纯 UI 图形化交互:无需记忆任何复杂的斜杠指令,鼠标悬浮在任意对话消息下方即可点击「↩️ 还原重试」;
- ✏️ 原地微调 Prompt:弹窗直接回显该轮用户输入的 Prompt,修改后自动聚焦回填到聊天输入框;
- 🛡️ 工作区内快照(Shadow Git):在独立影子存储中维护轻量快照,秒级撤销代码变动,绝不污染或重置用户自己的本地 Git 分支;
- 🌐 工作区外部安全恢复(External Interceptor):精准拦截 AI 在工作区外部编辑过的文件,并在回退时一并安全写回原始状态;
- 📱 多端全适配:电脑端、平板端与手机端界面完美适配。
🚀 安装与启用
方式 1:通过插件市场一键安装
在 DSH 的【设置 ➔ 插件市场】中搜索 dsh-revert,点击安装即可。
方式 2:本地开发与手动加载
# 进入 profile 目录并链接本地插件
cd ~/.dsh/profiles/web
npm link /path/to/dsh-revert
在 ~/.dsh/profiles/web/package.json 中的 dsh.profile.bundles 添加 "dsh-revert",重启 DSH 即可生效。
💬 问题反馈
本项目致力于提供最稳定、丝滑的对话回退体验。如果您在使用过程中遇到任何 Bug、文件未正确回滚的情况,或者有新的功能建议,非常欢迎您在 Issues 中向我反馈。我看到后会第一时间进行排查和修复!期待与大家一起把这个插件打磨得更好。
English
A modern UI-based rewind and retry plugin for DeepSeek Harness (DSH). Features inline prompt editing and a flawless dual-engine state recovery system (Workspace ShadowGit + External Tracker).
✨ Key Features
- 🎯 Pure UI Interaction: Hover over any chat message and click the "↩️ Rewind" button. No slash commands required.
- ✏️ Inline Prompt Editing: Automatically extracts and fills the prompt from the reverted turn into your composer.
- 🛡️ Workspace Shadow Git: Maintains lightweight, isolated snapshots of your workspace. Rolls back AI code changes in seconds without polluting your own Git repository.
- 🌐 External File Interceptor: Safely tracks and reverts files modified by the AI outside of the current workspace.
- 📱 Fully Responsive: Seamlessly adapts to Desktop, Tablet, and Mobile views.
🚀 Installation
Method 1: Plugin Market
Search for dsh-revert in DSH [Settings ➔ Plugin Market] and install it with one click.
Method 2: Manual Link
cd ~/.dsh/profiles/web
npm link /path/to/dsh-revert
Add "dsh-revert" to dsh.profile.bundles in your package.json and restart DSH.
💬 Feedback & Support
If you encounter any bugs, unexpected rollback behaviors, or have feature requests, please feel free to open an Issue. I actively monitor them and will do my best to investigate and fix any problems promptly!
🛠️ 架构与技术原理 (Architecture)
- Client 端(Slot 注入):通过 DSH 的 Cordis 插槽系统注入
conversation.chat.assistant-actions,渲染回退操作按钮与 React 弹窗; - Host 端(RPC 服务):通过
/dsh-revert/rpc暴露轻量快照与回滚调度服务; - 快照存储引擎 (Storage Engines):
ShadowGit:按工作区路径哈希维护隔离的裸仓库快照 (Maintains isolated bare git repos for workspace snapshots);ExternalFileTracker:维护轮次级别的外部文件修改前置记录 (Tracks and restores external file states pre-modification)。
📄 开源协议 (License)
MIT License © 2026 Movingtoleveltwo
Links
More in this category
ranxianglei/billion-context★ 8957
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4868
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 1012
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 461
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 418
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 339
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.