limbo947/dsh-recall-plugin 预览 preview

limbo947/dsh-recall-plugin

DSH消息撤回插件:回到发送该消息时的状态

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that adds a full message recall function to the DSH interface. When a user chooses to recall a message, the plugin rolls back both the entire conversation session context and all modified workspace files to the exact state they were in before the selected message was sent. To install the plugin, you can run DSH's official plugin installation command to pull it from npm, or install it directly from this GitHub repository. After installation completes, you will need to restart your DSH process and hard refresh your browser page to activate the recall feature.

This plugin is designed for DSH users who need to undo accidental changes made by the agent after sending an incorrect instruction, or reset the entire conversation to an earlier state. To use the recall feature, simply hover your mouse over any message sent after you enabled the plugin, click the recall button that appears next to the copy button. You will then see a confirmation panel that lists all files that will be changed during the rollback; once you confirm, the plugin will complete the rollback of both files and the conversation session. After rollback, your original message content and any attached files will be automatically placed back into the input box, ready for you to edit and resend.

The plugin requires a working git CLI installation on your system; without git, the recall button will not appear in the DSH interface. It supports Windows, Linux, and macOS: Windows has been fully tested on local real devices, while macOS has not yet completed full real-device testing. Snapshots are only created when messages are sent after the plugin is enabled, so older messages sent before enabling cannot be recalled. The plugin is released under the open-source MIT license, and by default it stores up to 500 snapshots per workspace, automatically deleting the oldest snapshot when the limit is reached.

这是一款专为 DeepSeek Harness(DSH)开发的原生插件,核心功能是为已发送的用户消息添加撤回能力,撤回时会同时将会话上下文和工作区文件恢复到该消息发送前的状态。插件可以通过 DSH 官方插件命令从 npm 或 GitHub 源安装,安装完成后需要重启 DSH 进程并硬刷新浏览器页面才能激活功能。

这款插件面向需要在发送错误指令后回滚 agent 修改、重置会话状态的 DSH 用户。使用时只需将鼠标悬停在插件启用后发送的消息上,点击出现的撤回按钮,在确认面板查看待变更的文件清单,确认后即可完成文件和会话的回滚。回滚完成后,原消息内容和附件会自动放回输入框,方便用户修改后重新发送。

插件依赖系统安装的 git CLI,不安装则不会显示撤回按钮;支持 Windows、Linux 和 macOS,Windows 经过充分真机测试,macOS 尚未完成真机验证。快照仅在插件启用后的消息发送时创建,插件启用前的历史消息无法撤回。插件采用 MIT 许可证开源,默认每个工作区最多保留 500 条快照,超限会自动删除最旧的快照。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 34 stars - an early-stage project星标 34,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-recall-plugin

把 limbo947/dsh-recall-plugin 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-recall-plugin awesome · DSH plugin

简体中文 | English

npm version npm downloads License DSH

在任意一条你发过的消息下方点「↶ 撤回」——工作区文件和对话历史一起回到那条消息发出之前的状态。

每条消息发送时,工作区先被快照进一个独立的影子 git 仓库(不碰项目自身的 git);撤回时按快照恢复文件,并经 DSH 官方 sessions.fork 把对话切回该消息之前的 turn 边界,原会话归档保留、随时可找回。被撤回消息的文本与附件自动放回输入框,改完即可重发。快照存储默认落在 $DSH_HOME 下。最主要的边界:快照只在消息发送时创建,插件启用前的历史消息没有快照、不显示撤回按钮。

更新日志

目录

界面预览

撤回按钮 确认面板 · 变更文件清单
悬停出现撤回按钮 确认面板 · 变更文件清单
  • 设置页 · 插件配置卡片(配置表单 / 排除表 / 快照管理,保存即热生效)

设置页

功能亮点

带括号版本号的能力需要该版本或更高;其余无特殊版本要求。

  • 文件 + 对话,整段回退:撤回的不只是聊天记录,agent 改过的文件也一并回到原样;不受项目 .gitattributes 转换影响,换行与二进制内容字节级保真(2.1.1+)。
  • 只想重来对话?文件可以不动(2.3.24+):确认面板可二选一撤回范围——默认「回退文件与对话」为完整回退;「仅撤回对话」则项目文件一个字节都不动(也不打安全快照),适合对回复不满意、但文件改动正是想要内容的场景。
  • 不碰项目自身的 git,目录保持干净:快照存在独立的影子 git 仓库,分支、暂存区、未提交改动统统不受影响;存储默认落在 $DSH_HOME 下、与会话沙箱权限无关(workspace-write / read-only 照常工作),仅当 home 不可写才降级到项目内 .dsh-recall-snapshots。
  • 先看清单再动手,可反复后悔:撤回前展示将变更的文件清单(修改 / 恢复 / 删除),确认后才执行;撤回后还能再撤到更早,被覆盖的文件一直找得回来。
  • 撤回完就能重发(2.3.15+):消息的文本与附件(图片、文件)一起放回输入框,改完直接发送,不必重新挑一遍附件。
  • 撤回全程有防护(2.0+,救援 2.1+):预览后出现新快照会强制重新预览;执行前自动打「回退前」安全快照,回退失败自动救援,救援失败给出可直接复制执行的手动恢复命令。
  • 磁盘友好、自动维护:快照走 git delta 增量压缩,大文件自动跳过(阈值可配);定期无损 git gc、会话删除联动清理、按条数与保留天数自动清理;设置页提供工作区 → 会话 → 快照三级树形管理,支持搜索与分级删除。
  • 失败不静默、能自愈(自愈 2.1+):失败按根因分类(git 缺失 / 磁盘满 / 无权限 / 锁冲突 / 目录冲突)给出可行动提示,同类故障 10 分钟只打扰一次,原因进设置卡片「最近错误」;自动清理残骸、连续 3 次失败指数退避、多实例按心跳互让;无法索引的路径跳过并告知,不中断整条快照(撤回时也不触碰它们)。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-web-tools 下一个 Next dsh-memoir →