SipengXie2024/dsh-rewind
SipengXie2024★ 0TypeScriptLast synced: 2026-08-16
Claude Code-style rewind for DeepSeek Harness (dsh): edit a past user message and re-run on a forked session, restore files to the turn boundary, or branch with a summary
README excerpt
dsh-rewind 把 Claude Code 的 rewind 能力移植到 DeepSeek Harness(dsh)的第三方插件:指着历史里任意一条用户消息,把对话、代码或两者一起回退到那个时刻,或从那里开一个摘要分支。 单包双半:host 半是一个薄 RPC 网关( rewind 命名空间)+ 一个 tools/execute 捕获中间件;client 半以键控槽覆盖(同 key user 、priority -1)替换官方用户消息渲染器,加出回退菜单。fork、打开、重发全部复用官方 client sessions 服务,host 不新增会话操作。 菜单四项(对位 Claude Code 的 rewind 弹出菜单) 菜单项 行为 恢复对话(编辑重跑) 气泡就地变编辑框,确认后 fork 到上一轮 turn/end 边界,打开子会话并重发改写后的消息 恢复对话与代码 同上,但 fork 前先展示文件回退卡片;确认时先把勾选文件写回边界前内容,再 fork 重跑 仅恢复代码 只做文件回退,不 fork 不发消息,留在当前会话 摘要至此,开新分支 fork(含点击轮)→ 打开分支 → 自动执行 /compact 压缩头段历史 CC 菜单的第五项 "Summarize from here" 不做 :dsh 的 compactNow 语义是压头段、保近尾,与「压点击处之后」方向相反; compactRegion 要求开轮空闲,菜单时点不可用。机制冲突,不硬凑。 菜单打开即探测文件变动数 (0.3.2 起):打开菜单时并行调 previewRestore ,两个代码恢复项的 label 实时显示「N 个文件有改动」;探测确认 0 变动时这两项置灰并注明「边界后无文件改动」。对位 CC 的设计——CC 在无 tracked file changes 时直接不显示两个代码恢复选项(官方 checkpointing 文档),不显示数量;这里改为显式计数 + 置灰,信息更多一层。Codex 无对位物:其 undo(ghost-commit)功能已移除(feature 表 Stage::Removed ),看变动只有 /diff 现场跑 git diff。 文件快照与恢复(P1) - 捕获 : tools/execute waterfall 中间件按工具名过滤 write / edit / str replace editor (按名过滤天然覆盖 code preset 的 Code Mode 子调用,且恰好捕获一次)。write/edit 从结果 value 取 before/after;str replace editor 无结果 value,在派发前预读。 - 账本 :storage-domain rewind 域(snapshots 表,key=callId)…
View full README on GitHub →Category
🎨 Best DeepSeek Harness Design Plugin. The open-source Claude Design alternative. 🖥️ Local-first desktop app. 🖼️ Your coding agent becomes the design engine: prototypes, landing pages, dashboards, slides, images & video — real files, HTML/PDF/PPTX/MP4 export. 🤖 Claude Code / Codex / Cursor / DeepSeek Harness / OpenCode & 20+ CLIs via BYOK.
★ 87,271
volcengine/OpenVikingSelf-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
★ 28,588
titanwings/colleague-skill将冰冷的离别化为温暖的 Skill,欢迎加入数字生命1.0!Transforming cold farewells into warm skills? It's giving rebirth era. Welcome to Digital Life 1.0. 🫶
★ 22,692