Dsh Rewind — Development skill for Claude Code
DSH 插件:真正便捷无感的同窗口内对话回退,从不新建分支;自带轻量工作区备份,可一并还原文件(完整 Claude Code /rewind 语义).
How to install Dsh Rewind
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open SiriLee/dsh-rewind and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Dsh Rewind does
DSH 插件:真正便捷无感的同窗口内对话回退,从不新建分支;自带轻量工作区备份,可一并还原文件(完整 Claude Code /rewind 语义)。 · DSH plugin: genuinely effortless in-window conversation rewind — never forking a new session; ships a lightweight workspace backup that restores files together with the rewind (full Claude Code /rewind semantics).
Alternatives in Development
- Ccusage — CLI for analyzing Claude Code/Codex usage from local JSONL files 11.8k ★
- Claude Supermemory — Persistent memory across sessions and projects using Supermemory 2.3k ★
- Tmux Claude Hatch — tmux plugin that runs Claude Code sessions in popups per project directory, with an fzf picker showing each se 381 ★
README
dsh-rewind
[!WARNING] **请尽早在 DSH `0.1.2-rc.1` 安装 `v0.9.x` 版本,运行 `/dsh-rewind-fix` 更新旧会话的回退标记**([更新指南](docs/rewind-fix.zh.md))。
DeepSeek Harness 插件:**一键就地回退对话到任意更早的用户消息**——同窗口内完成,不新建分支、不换窗口,可一并还原工作区文件(完整 Claude Code `/rewind` 语义)。
[](https://www.npmjs.com/package/dsh-rewind-plugin) [](https://www.npmjs.com/package/dsh-rewind-plugin) [](https://github.com/SiriLee/dsh-rewind/actions/workflows/ci.yml)
[English](README.en.md) | 中文
刻意聚焦、保持极简,只做一件事:**就地回退到任意远的用户消息**,还能**顺手还原改过的文件**。
- 回退 = 时间回溯——目标消息及其之后的全部内容(agent 回复、工具调用)同时从模型上下文和渲染对话中撤回,不新建会话、不切换窗口;目标消息文本会回填输入框,改完可重发。在原理上就真正无感、便捷。
- 轻量工作区备份——对齐 Claude Code:追踪写类工具编辑过的文件,已跟踪文件的外部变更也能还原。局部追踪、写前备份、不变不存。一个轻型插件,即拥有完备的智能体回退能力。
- 信息安全优先——插件从不删改会话日志(append-only),从不真正删除你的任何对话;备份存于自己的快照目录;还原只用这些备份。完整安全模型:SECURITY.md。
- 完备测试系统——单元、探针、端到端主机验证,覆盖兼容性探测、日志重放、续接、跨重启等场景;随 harness 升级持续维护,确保功能稳定。
效果预览
每条用户消息的操作行都有一个 **↶ 回退** 按钮。点击后弹出模式选择浮层——「**仅回退对话**」或「**回退对话和代码**」,后者会先展示文件变更清单再确认。还可以通过 **`/rewind` 命令**和**快捷键**便捷地选择和回退。
![]() 用户消息旁的 ↶ 回退按钮 |
![]() 模式选择浮层 |
![]() 「回退对话和代码」影响清单 |
![]() /rewind 候选面板 |
安装
dsh plugin --profile web add dsh-rewind-plugin
⚠️ npm 上的 `dsh-rewind` 属于其他作者,请用 `dsh-rewin
Related Skills
Delegate First
Keep the main conversation clean by forking implementation work to sub-agents. Use when you want ongoing conve
SessionSweep
Browse every agent session left on your disk, read the conversation, and delete it for real — transcript plus
Skills Learn
Learn from new research, repositories, docs, or user-provided material — extract genuinely new, verified knowl
Tapeback
Like rewinding a tape 🎞️ — tapeback automatically records every Claude Code agent action that changes your co
Meow Coding
Meow Coding — a desktop app (Electron + React) that runs multiple CLI coding agents (opencode, Claude Code, ai
BS Coding
BS Coding — a desktop app (Electron + React) that runs multiple CLI coding agents (opencode, Claude Code, aide
Related Agents
Session Context
Loads a single FullStory session's event transcript into an isolated context window and answers a specific tas
Context Isolator
Runs data-heavy read-and-summarize operations in an isolated context window to prevent bloating the main conve
Tp Session Restorer
PROACTIVELY use this as the FIRST step after /clear, compaction, or a fresh window when a recent session_snaps



