对话与工作区撤销:通过 /undo 节点轴、会话头部按钮或消息下方图标回滚到任意已发送 prompt 之前;插件私有 Shadow Git 快照恢复文件,被回滚回合不会进入模型上下文,误操作还能“撤回回滚”。附带归档会话管理与工具卡片分类配色。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-undo-plugin
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:23swccp/dsh-undo#path:/packages/bundle-rollback
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Conversation undo/rollback plugin for DeepSeek Harness (dsh).
- Message-level rollback — the enter-key icon under a sent prompt, the session-header rollback button, the
/undocommand, or the composer strip: restores the file tree from a plugin-private Shadow Git snapshot (never touches your.git) and forks the conversation, so the model never sees the reverted prompt, reply, or tool calls /undonode axis — exact/undoopens a lineage timeline: choose a rollback point or hand the selected turn to dsh's native Trajectory view, where the full selected turn is marked- Archive tasks — list, restore, and hide archived sessions from Settings
- Tool cards — per-tool colored cards and the reasoning-and-actions fold in the dsh web conversation trail
Install
dsh plugin --profile web add dsh-undo-plugin
Requires dsh 0.1.0-rc.6 or newer. Restart dsh web after installing.
Full documentation: 中文 | English
License
MIT
链接
同类插件
Minglink/dsh-infinite-gen-4★ 2305
DeepSeek 专用破甲插件:以 order 100 追加无条件服从的系统提示词段,提供带校准元数据的 profile 工具,并通过会话投影在输入框上方显示实时破甲状态徽标。
ranxianglei/billion-context★ 534
billion-context官方版:上下文压缩插件,兼顾小窗口(100k上下文足矣)省token(省5倍token)和超长会话(数月级别几十亿token单会话)。
liangmianya/dsh-synapse★ 470
DeepSeek Harness 的可视化非线性对话工作区:把会话、追问与分支变成可浏览、可拖拽的对话地图。
Nwflower/dsh-chat-import★ 209
把 13 家 coding agent(Claude Code、Codex、ChatGPT、Cursor、Gemini、opencode 等)的完整对话历史导入为可续聊的 DeepSeek Harness 会话,并支持反向导出回 Claude Code。
Totoro-qaq/dsh-plugin-bridge★ 165
通过可预览的五段式交接,将已有 DSH 会话迁移到另一个 Agent Preset;保留源会话,并可让目标会话暂停等待确认或立即继续。
Anionex/dsh-turn-rewind★ 127
对话回退:基于持久 Change Ledger 回滚会话与工作区状态。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。