SiriLee

Dsh Rewind — Development skill for Claude Code

Development community

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 ★
  • Releasing — This project ships as a Claude Code plugin 10.9k ★
  • Claude Supermemory — Persistent memory across sessions and projects using Supermemory 2.3k ★

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` 语义)。

[![npm version](https://img.shields.io/npm/v/dsh-rewind-plugin.svg)](https://www.npmjs.com/package/dsh-rewind-plugin) [![npm downloads](https://img.shields.io/npm/dt/dsh-rewind-plugin.svg)](https://www.npmjs.com/package/dsh-rewind-plugin) [![tests](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FSiriLee%2Fdb3b9260351c2b26eb3d201c2ed29df1%2Fraw%2Fbadge.json)](https://github.com/SiriLee/dsh-rewind/actions/workflows/ci.yml)

[English](README.en.md) | 中文

刻意聚焦、保持极简,只做一件事:**就地回退到任意远的用户消息**,还能**顺手还原改过的文件**。

  • 回退 = 时间回溯——目标消息及其之后的全部内容(agent 回复、工具调用)同时从模型上下文渲染对话中撤回,不新建会话、不切换窗口;目标消息文本会回填输入框,改完可重发。在原理上就真正无感、便捷
  • 轻量工作区备份——对齐 Claude Code:追踪写类工具编辑过的文件,已跟踪文件的外部变更也能还原。局部追踪、写前备份、不变不存。一个轻型插件,即拥有完备的智能体回退能力
  • 信息安全优先——插件从不删改会话日志(append-only),从不真正删除你的任何对话;备份存于自己的快照目录;还原只用这些备份。完整安全模型:SECURITY.md
  • 完备测试系统——单元、探针、端到端主机验证,覆盖兼容性探测、日志重放、续接、跨重启等场景;随 harness 升级持续维护,确保功能稳定。

效果预览

每条用户消息的操作行都有一个 **↶ 回退** 按钮。点击后弹出模式选择浮层——「**仅回退对话**」或「**回退对话和代码**」,后者会先展示文件变更清单再确认。还可以通过 **`/rewind` 命令**和**快捷键**便捷地选择和回退。

用户消息旁的 ↶ 回退按钮
用户消息旁的 ↶ 回退按钮
模式选择浮层
模式选择浮层
影响清单
「回退对话和代码」影响清单
/rewind 候选面板
/rewind 候选面板

安装

dsh plugin --profile web add dsh-rewind-plugin

⚠️ npm 上的 `dsh-rewind` 属于其他作者,请用 `dsh-rewin