DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Recall Plugin — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-recall-plugin

Recall Plugin

Recall your own messages in DSH: workspace files and conversation history return to the state before the message was sent, while the message text and attachments are automatically restored to the input box for editing and resending. Files use independent shadow git snapshots without touching the pro

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-recall-plugin@2.3.24
READMECompatibilityVersions
悬停出现撤回按钮确认面板 · 变更文件清单设置页

Description

Recall your own messages in DSH: workspace files and conversation history return to the state before the message was sent, while the message text and attachments are automatically restored to the input box for editing and resending. Files use independent shadow git snapshots without touching the project’s own git; conversations use the official sessions.fork, and the original session is archived for recovery.

Compatibility and provenance

Recall Plugin is published as dsh-recall-plugin and currently resolves to version 2.3.24. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/20/2026

Versions

2.3.24stable
9/18/2026
2.3.23stable
9/17/2026
2.3.22stable
9/16/2026
Show 42 more versionsCollapse versions
2.3.21stable
9/15/2026
2.3.20stable
9/14/2026
2.3.19stable
9/11/2026
2.3.16stable
9/11/2026
2.3.15stable
9/11/2026
2.3.14stable
9/11/2026
2.3.13stable
9/11/2026
2.3.12stable
9/11/2026
2.3.11stable
9/11/2026
2.3.10stable
9/10/2026
2.3.9stable
9/10/2026
2.3.8stable
9/9/2026
2.3.7stable
9/8/2026
2.3.6stable
9/6/2026
2.3.5stable

Related plugins

Loading related plugins…

Latest
2.3.24
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
391.5 kB
Files
20
Surface
web
License
MIT
Source
npm
GitHub
★ 33
Weekly downloads
1,231
Security scan
✓ v2.3.24 scan passed
Last push
9/18/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
9/6/2026
2.3.4stable
9/6/2026
2.3.3stable
9/5/2026
2.3.2stable
9/4/2026
2.3.1stable
9/1/2026
2.3.0stable
8/30/2026
2.2.1stable
8/29/2026
2.2.0stable
8/29/2026
2.1.1stable
8/29/2026
2.1.0stable
8/29/2026
2.0.0stable
8/26/2026
1.7.1stable
8/25/2026
1.7.0stable
8/24/2026
1.6.2stable
8/24/2026
1.6.1stable
8/23/2026
1.6.0stable
8/22/2026
1.5.1stable
8/20/2026
1.5.0stable
8/20/2026
1.4.0stable
8/17/2026
1.3.0stable
8/16/2026
1.2.2stable
8/15/2026
1.2.1stable
8/15/2026
1.2.0stable
8/15/2026
1.0.4stable
8/14/2026
1.0.3stable
8/14/2026
1.0.2stable
8/14/2026
1.0.1stable
8/14/2026
1.0.0stable
8/14/2026

Related plugins

More verified plugins in productivity-workflow.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseClient Ui Task Board@linxin666/dsh-client-ui-task-boardHost-authoritative task board for the DSH Web GUI with real session execution, Host cron scheduling, and optional cross-platform idle-sleep protection; mounted without DSH source changes.Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Mnemondsh-mnemonComposable three-tier memory control plane for DeepSeek Harness: persistent runtime context, searchable project documents, pluggable long-term memory, guarded strategies, WebUI, and headless tools.

README

dsh-recall-plugin

简体中文 | English

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

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

更新日志

目录

  • 界面预览
  • 功能亮点
  • 已知限制
  • 安装
  • 使用
  • 配置项
  • 快照维护与清理
  • 工作原理
  • 本地开发(无需发布)
  • License

界面预览

撤回按钮确认面板 · 变更文件清单
悬停出现撤回按钮确认面板 · 变更文件清单
  • 撤回后,这条消息的文本与附件自动放回输入框,改完即可重发(可在设置卡片关闭)
  • 设置页 · 插件配置卡片(配置表单 / 排除表 / 快照管理,保存即热生效)

设置页

功能亮点

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

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

已知限制

设计上接受的边界与尚未覆盖的极端情形,使用前值得先确认。

  • 快照在消息发送时创建,插件启用前的历史消息没有快照,不显示撤回按钮。
  • 快照是尽力捕获:从收到消息到 git add 之间有约 0.5–1.5 秒窗口(Windows 上仅一次 PowerShell 启动就占约 0.4 秒)。秒级完成的琐碎任务若在这个窗口内改完文件,该快照会连带捕获本轮改动——撤回时文件回退成为空操作(预览面板显示「共 0 个文件将变更」),对话回退不受影响。
  • 会话第一条用户消息无法回退对话(仅文件回退),因为 fork 需要更早的 turn 边界。
  • 目标工作区的 agent 正在运行时无法发起撤回(防护设计,先停止 agent 再撤回)。
  • 支持 Windows(PowerShell 5.1/7 + git CLI)与 Linux/macOS(bash + git CLI)。Windows 真机验证充分;Linux 已在 WSL2(Ubuntu 26.04,bash 5.3 + git 2.53)实测全流程(含中文路径、home 降级、会话清理、gc);macOS 侧脚本按 bash 3.2 兼容编写,尚未真机实测。
  • 工作区内嵌套的其他 git 仓库(子目录自带 .git)无法索引:快照对其余部分照常(fail-open,页面会提示跳过了哪些路径),但其内容不参与回退。
  • 文件名含换行/TAB 的极端情形不在 diff 清单的解析能力内(概率可忽略)。
  • 与 dsh-routing-suite(渐进式工具披露路由)的交互:若同时启用 dsh-routing-suite 的 router-standard 预设,撤回会经 sessions.fork 出新会话,导致路由阶段重置为默认(工具面临时收窄)。现象、成因与解决方案见 docs/routing-interplay.md。

安装

前置:git CLI(未装时撤回按钮不出现,页面顶部会提示安装 git,不影响 DSH 运行);Windows 上 PowerShell 5.1 / 7 均可,Linux/macOS 需 bash + git;DSH 0.1.2-alpha.1 至 0.1.6-alpha.2(peerDependencies 为按 minor 版本线开窗 >=0.1.2-alpha.1 <0.1.3 || >=0.1.3-alpha.1 <0.1.4 || >=0.1.5-alpha.1 <0.1.6 || >=0.1.6-alpha.1 <0.1.7,与 dsh.compatibility.dshReleases 声明一致;每条线以首个核验版本为下限、开一条上界到下一 minor 的区间,同线内后续 prerelease/正式版自动放行、无需改 peer 声明,未验证的新 minor 线(如 0.1.7)仍被拦截)。0.1.1-rc.2 及更早不再声明支持:那条线的客户端运行时没有 sessions/workspaces/uiWorkspace 服务,插件 UI 会静默不渲染。

  • DSH 官方插件命令:安装并自动挂载进 web profile
dsh plugin --profile web add dsh-recall-plugin
  • 也可从 git 直接安装:
dsh plugin --profile web add github:limbo947/dsh-recall-plugin
  • 重启 DSH 进程(按你的启动方式择一)
dsh web                      # 前台运行
pm2 restart <your-dsh-name>  # 由 pm2 托管
  • 验证:重启后硬刷新页面(Ctrl+Shift+R),悬停任意一条插件启用后发送的用户消息——复制按钮旁出现「↶」即生效。没有按钮?九成是没重启 DSH 进程,或 git CLI 不在 PATH 里。

  • 卸载:同时移除依赖与挂载,快照数据保留在 home 下 dsh-recall-snapshots/,想彻底清除手动删掉该目录即可。

dsh plugin --profile web remove dsh-recall-plugin

使用

  1. 鼠标悬停任意插件启用后发送的用户消息(含 agent 运行中插入的转向指令消息),复制按钮左侧出现「↶ 撤回」。
  2. 点击 → 确认面板展示将变更的文件清单(修改 / 恢复 / 删除),并可选撤回范围:「回退文件与对话」(默认)或「仅撤回对话」(文件保持当前状态)。
  3. 点「确认回退」(或「确认撤回对话」)→ 文件恢复到该消息发送前的状态(仅撤回对话时文件不动);视图切到新会话(该消息及之后的对话移除),原会话归档、随时可找回。

配置项

全部配置可在「设置 → 插件配置 → 撤回插件」卡片可视化修改(保存即热生效,无需重启),也可在 profile 的 cordis.patch.yml 按 id: recall 重述 insert 行改写;env 变量仅覆盖 gc 两项且优先级最高(设了 env 的字段在卡片里锁定)。

配置项默认值说明
gcSnaps50每积累多少条快照触发一次 git gc(env DSH_RECALL_GC_SNAPS 可强制覆盖)
gcHours24距上次 gc 超过多少小时触发(与条数先到先触发;env DSH_RECALL_GC_HOURS)
maxFileBytes104857600(100MB)超过该大小的文件不进快照、不被回退触碰
maxSnapshotsPerWorkspace500每个工作区保留的最大快照数,超限自动删除最旧的;0 = 不限制
retentionDays0按天数保留快照,超期自动删除;0 = 不启用(与条数上限各自独立生效)
baseExcludes.git、node_modules/、.dsh-recall-snapshots/、dsh-recall-snapshots/基础排除表(gitignore 语法,优先级低于 exclude.txt)
refillDrafttrue撤回后把被撤回的消息(文本与附件)回填到输入框
snapshotEnabledtrue快照总开关(关闭只冻结新建,已有快照仍可撤回)
archiveOriginaltrue撤回后归档原会话(关闭后原会话保留在会话列表中)

设置卡片另提供「恢复默认」(一键重置全部字段)与「最近错误」查看/清空。

快照维护与清理

插件自动控制磁盘占用,无需手动管理:

  • 定期 gc:每 50 条快照或距上次 gc 24 小时(先到先触发,阈值可配),后台执行 git gc 把 loose 对象压成 pack。无损操作——所有快照照常可回退。节流凭据写在影子仓库内的 gc.stamp,重启 DSH 不会重置周期。

  • 条数上限与保留天数:每工作区快照默认上限 500 条(超限清最旧);也可按 retentionDays 设保留天数,两者独立触发、都可在配置卡片调整或关闭。

  • 会话删除联动清理:会话被彻底删除(会话日志从磁盘消失)后,下一次维护会自动删除该会话的全部快照并释放空间。归档不算删除——撤回功能自己归档的原会话日志仍在,快照保留、随时可从归档找回。判断很保守:会话只是冷着(不内存里)不会误清;无法核实日志状态时宁可不清。

  • 用户自定义排除:打开「设置 → 插件配置 → 撤回插件」卡片(默认收起,点卡片头展开)即可可视化编辑快照排除项——输入路径或模式回车即加、常用模式(dist/、*.log、.env 等)一键追加、保存后下一次快照/回退立即生效,无需重启。也可以直接编辑 home 下 dsh-recall-snapshots/exclude.txt(即 $DSH_HOME/dsh-recall-snapshots/exclude.txt,未设置时为 ~/.dsh/dsh-recall-snapshots/exclude.txt;UTF-8),一行一条 gitignore 风格 pattern(# 开头为注释),两种方式编辑的是同一份配置,例如:

    # 构建产物不进快照
    dist/
    build/
    *.log
    

    对所有项目生效(home 不可写而降级到项目内存储时,该工作区有独立的排除配置,设置页会分卡片列出)。新增排除只影响之后的快照;回退到更早的快照时,当时尚未排除的文件仍会被恢复(回到当时的状态,这正是回退语义)。想彻底清掉已进快照的目录,可手动删除 home 下 dsh-recall-snapshots/ 里对应项目的哈希目录。

  • 树形快照管理:打开「设置 → 插件配置 → 撤回插件 → 快照管理」可看到树形列表——第一级工作区(文件夹名)、第二级会话(会话标题,撤回链聚成版本家族)、第三级快照(时间 + 消息内容摘要,悬停看完整内容)。支持搜索与「加载更多」;工作区和会话节点可展开/折叠;每一级右侧都有删除按钮,删除前会二次确认。删除工作区 = 清掉该工作区全部快照;删除会话 = 清掉该工作区内该会话的全部快照;删除叶子 = 只删那一条快照;顶部另有带确认的「全部删除」。

工作原理

每条用户消息发送时(agent 动文件之前),工作区被快照进一个独立的影子 git 仓库;撤回时先打「回退前」安全快照、再用 git archive 恢复文件、通过 DSH 官方 sessions.fork 机制把会话切到该消息之前。二进制与换行符安全,全程不触碰项目自身的 git 状态。

  • 快照存储:home 下 dsh-recall-snapshots/<SHA256(项目绝对路径)>/,内含影子 git 仓库(git/,tag 名为 snap-<消息ID>)、索引文件 index.json(消息 ID → 快照时间 / 会话)与撤回链 lineage.json。Windows 上脚本走 PowerShell,Linux/macOS 走 bash(按平台自动分叉)。

  • Windows 上宿主把 shell 配成 bash 也照常工作(2.3.22+):官方 shell 由 profile 注册,win32 上可以只启用 bash-sandbox——此时 pwsh 脚本会被 bash 执行而全盘失败。插件首次执行命令前会先探测执行器能否跑 pwsh(哨兵命令),确认是 bash 后改用系统 PowerShell 5.1 直连执行,快照与撤回不受影响;ctx.shell 即 pwsh 的常规部署行为不变(探测一次、判为 pwsh 后一切照旧)。

  • 想直接翻历史快照:

    git --git-dir="<store>\git\.git" tag -l
    git --git-dir="<store>\git\.git" ls-tree -r --name-only snap-<消息ID>
    

本地开发(无需发布)

把 profile 对本包的依赖改成 link: 指向克隆目录;DSH 加载的是工作区 lib/ 构建产物(源码在 src/),改 src/ 后先 npm run build 再重启 DSH 生效,无需复制或发布:

# 1. 编辑 $env:USERPROFILE\.dsh\profiles\web\package.json:
#    "dependencies" 里 "dsh-recall-plugin": "link:<你的克隆路径>\dsh-recall-plugin"
#    "dsh.profile.bundles" 已含 "dsh-recall-plugin"(官方命令装过一次即可)
# 2. 在 profile 目录安装并重启
cd $env:USERPROFILE\.dsh\profiles\web
pnpm install
# 3. 重启 DSH + 硬刷新页面(Ctrl+Shift+R)

注意:全部源码在 src/(Host 在 src/host/、浏览器端在 src/client/、共享类型在 src/types/),lib/ 是纯构建产物目录——npm run build 经 esbuild 生成(逐文件转译 host 产物 + 打包 lib/client.js),产物随源码提交。改任何 src/ 后必须跑 npm run build,否则运行的是旧产物(CI 有产物新鲜度统一校验)。

测试

  • npm test:纯逻辑单测(vitest,28 个文件 361 例,无 DSH 依赖,CI 与本地同跑)——配置解析、快照解析器、救援编排、错误分类、脚本模板同名导出契约、客户端纯函数、发布包内容布局、快照索引持久化、存储上限与保留天数等;
  • npm run test:probe:官方 API 字段探针(依赖本机 dsh 安装;dsh 升级后本地必跑)——钉住 renderMessageImages/node/cwd、sessions.fork 的 atSeq/increaseTitle、listSessions 记录结构、AgentRegistry 等字段,违反即红;
  • npm run verify:host:装配门禁(依赖本机 dsh 安装)——用真实 cordis 起插件,断言 inject 声明、端点注册、Config schema、卸载清理,装配回归发版前即可拦截;
  • npm run build:host+client 全量打包(改任何 src/ 后必跑);npm run check:dsh:dsh 版本巡检(发布前)。
  • CI(GitHub Actions)跑 npm ci --legacy-peer-deps + npm run typecheck + npm test + 产物新鲜度统一校验(npm run build && git diff --exit-code lib/;探针与装配门禁只在有 dsh 的机器跑)。

License

MIT