Message and attachment editing with save-only updates, forked regeneration, and a version timeline for DSH desktop.
Install
# from npm (prebuilt)
dsh plugin --profile web add @sh1robana/dsh-plugin-message-edit
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/sh1robana/dsh-plugin-message-edit/releases/download/v0.3.4/dsh-plugin-message-edit-0.3.4.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:sh1robana/dsh-plugin-message-edit
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
让 DeepSeek Harness 桌面端的历史消息像输入框一样可以修改,支持正文、附件、文件引用和模型设置。
作用
- 用户消息「保存」:在原会话修改正文和附件,保留已有回复与后续对话,不再次请求模型。
- 用户消息「保存并发送」:携带修改后的内容创建新分支,重新请求模型;原会话可以切回。
- 附件和引用:通过「+」、粘贴或拖入添加文件,支持移除和替换;图片点击放大,普通文件和蓝色文件引用使用系统默认程序打开。
- 编辑与重试:编辑助手回复或思考、重生成最后回复、重试历史回合;通过 Timeline 查看记录、切换版本。
- 完整编辑框:支持
@文件与会话引用、权限、模型和推理等级选择,以及取消编辑的二次确认。
0.3.3 适配 DSH 0.2.1-rc.5,详见 更新记录。兼容声明保留 0.2.0-rc.2、0.2.1-rc.1、0.2.1-rc.2;其中已完成桌面验证的为 0.2.0-rc.2、0.2.1-rc.1、0.2.1-rc.5,rc.2 已通过自动检查、本地原生读取及浏览器演示验证,完整桌面回归记录待补齐。未声明的 0.2.1-rc.3、0.2.1-rc.4 会被宿主拒绝,请升级到 rc.5。首次打开会话时请等待历史消息加载完成。
安装新版不会自动修复已损坏的历史文件。遇到历史加载失败时请保留原件,先备份再单独恢复。

截图来自本地示例页面,使用演示内容。
使用方法
安装
使用 GitHub Release 的 0.3.3 预构建安装包:
dsh plugin --profile desktop add -w https://github.com/sh1robana/dsh-plugin-message-edit/releases/download/v0.3.3/dsh-plugin-message-edit-0.3.3.tgz
Windows 桌面端没有全局 dsh 命令时,使用安装目录里的 CLI,按实际安装位置修改路径:
& 'D:\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd' plugin --profile desktop add -w https://github.com/sh1robana/dsh-plugin-message-edit/releases/download/v0.3.3/dsh-plugin-message-edit-0.3.3.tgz
也可通过 npm 安装同一版本:
dsh plugin --profile desktop add -w @sh1robana/dsh-plugin-message-edit@0.3.3
安装后保存工作,彻底退出 DSH,再重新启动。 如果已安装旧的 dsh-message-edit 或其他消息编辑插件,请先停用,避免重复按钮和接口冲突。迁移本项目旧版时,可先执行 dsh plugin --profile desktop remove -w dsh-message-edit。
编辑
- 打开已有会话,点击消息操作栏的编辑按钮,或进入 Timeline 选择消息。
- 修改正文;点击 「+」 添加文件,也可以直接粘贴、拖入。点击附件的 「×」 移除,点击图片查看大图。
- 需要时修改权限、模型或推理等级,然后选择 「保存」 或 「保存并发送」。
- 点击 「取消」,在「是否确认取消编辑」中选择「是」放弃修改,选择「否」继续编辑。
用户编辑框快捷键:Ctrl+S 仅保存,Enter 保存并发送,Shift+Enter 换行;输入法组字时不会提交。
助手消息编辑会创建新版本。版本切换不会撤销已经执行的文件修改或命令;被压缩移出模型上下文的用户消息无法原地保存,可使用「保存并发送」。
贡献与致谢
- shirobana:需求设计、桌面验收与项目维护。
- Codex(OpenAI AI 编程助手):协作完成兼容适配、功能实现、测试和文档。
- Claude(Anthropic AI 编程助手,经 Claude Code):协作完成 DSH
0.2.1-rc.5的接口取证、兼容适配、测试与安装验证。
基于 Moeblack/dsh-message-edit 继续开发;感谢 DDDMUC/dsh-edit-turn 的设计参考、DeepSeek Harness 的插件接口与构建预设,以及 dsh-market、awesome-dsh-plugin 社区的发布文档。
以 MIT 许可发布。来源与许可见 NOTICE.md 和 LICENSE;开发与发布步骤见 发布指南。
维护源码时先阅读仓库根目录的 CLAUDE.md 和 log/README.md;开发过程记录在 log/ 的日期日志中。
DSH 更新后,可使用仓库内的 dsh-plugin-upgrade Skill 进行插件适配,见 使用方式。
Links
More in this category
ranxianglei/billion-context★ 8746
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4848
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 860
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 435
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 407
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 335
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.