DeepSeek Harness 插件

23swccp/dsh-undo-plugin

Star 数 ★ 3 下载量(近 30 天) 628 分类 会话与消息 收录于 2026-08-21 npm dsh-undo-plugin

对话与工作区撤销:通过 /undo 节点轴、会话头部按钮或消息下方图标回滚到任意已发送 prompt 之前;插件私有 Shadow Git 快照恢复文件,被回滚回合不会进入模型上下文,误操作还能“撤回回滚”。附带归档会话管理与工具卡片分类配色。

安装

# npm 包(预构建)

dsh plugin --profile web add dsh-undo-plugin

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:23swccp/dsh-undo#path:/packages/bundle-rollback

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

Conversation undo/rollback plugin for DeepSeek Harness (dsh).

  • Message-level rollback — the enter-key icon under a sent prompt, the session-header rollback button, the /undo command, or the composer strip: restores the file tree from a plugin-private Shadow Git snapshot (never touches your .git) and forks the conversation, so the model never sees the reverted prompt, reply, or tool calls
  • /undo node axis — exact /undo opens a lineage timeline: choose a rollback point or hand the selected turn to dsh's native Trajectory view, where the full selected turn is marked
  • Archive tasks — list, restore, and hide archived sessions from Settings
  • Tool cards — per-tool colored cards and the reasoning-and-actions fold in the dsh web conversation trail

Install

dsh plugin --profile web add dsh-undo-plugin

Requires dsh 0.1.0-rc.6 or newer. Restart dsh web after installing.

Full documentation: 中文 | English

License

MIT

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。