dsh-history-edit

DSH PLUGIN记忆与知识

仓库 MathieuPortmann/dsh-history-edit

记忆与知识 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

dsh-history-edit 是 MathieuPortmann 维护的 记忆与知识 类 DSH 可安装插件, 仓库为 MathieuPortmann/dsh-history-edit,许可证 MIT。 下面按「装什么、怎么装、验没验过、跑起来要注意什么」逐项列出。

一句话选型结论

按资料字段整理

dsh-history-edit 是记忆与知识类的 DSH 可安装插件,验证等级 L5 · 运行验证通过,安全审查为低风险,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类记忆与知识 收录类型可安装插件 验证等级L5 · 运行验证通过 安全审查低风险
验证等级 L5 L5 · 运行验证通过
GitHub 星标 0 复刻 0 · 未关闭 issue 0
最近更新 2026-10-25 创建于 2026-10-25
README 6.4 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:MathieuPortmann/dsh-history-edit#v0.1.0
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

记忆与知识
字段来自项目仓库与公开索引,中文说明由本站标注

适用场景

记忆

上游标签

chatdeepseek-harnessdsh-pluginedit-messagehistorylocal-llm

验证等级与安全审查

L5 · 运行验证通过
自动化流程结论,不是人工审核
验证等级L5 · 运行验证通过在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度金综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L5:安装和运行都在沙盒里跑通过,装完能直接用的概率高。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在记忆与知识场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-history-edit当前 L5 · 运行验证通过 低风险 0 未标注 有
ruflo L3 · 安装规范通过 低风险 7.4 万 未标注 无
OpenViking L3 · 安装规范通过 低风险 3.9 万 未标注 无
WeKnora L4 · 沙盒安装通过 低风险 3.3 万 未标注 有
distilly L4 · 沙盒安装通过 低风险 2.5 万 未标注 有
EverOS L4 · 沙盒安装通过 低风险 1.3 万 未标注 有

仓库档案

记忆与知识
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方MathieuPortmann仓库 dsh-history-edit · 默认分支 main
分类记忆与知识memory
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言未标注仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 0收录时的数值,非实时
创建 / 更新2026-10-25 · 2026-10-25最后推送 2026-10-25
本站收录2026-10-30首次进入本站目录的时间

README 全文

6.4 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-history-edit

Conversation history edits for DeepSeek Harness (DSH):
change what you said, go back to an earlier point, or fix an AI reply, without losing anything.

> Maintenance: best-effort. Issues may go unanswered; forks are welcome.

What it adds to the chat

  • Recall (under each of your messages). Goes back to just before that message and puts its
    text back in the message box, to resend as is, changed, or with files. Nothing is deleted: when
    you send the next message, the recalled message and everything after it are set aside.
  • Edit again (on a message that was edited through the rewrite method of the channel below).
    Opens an edit window; the edited message replaces the old one and the AI answers again. If later
    messages of yours exist, a copy of the conversation is created instead, so nothing is lost,
    and the page opens it.
  • Go back here (under an AI reply that has later turns). The next message you send restarts
    from that reply and the later turns are set aside. A banner says so and has a Cancel button.
  • Edit reply (under an AI reply). Creates a copy of the conversation up to that turn with the
    reply text changed; the original stays as it was, and the page opens the copy.

"Set aside" means hidden from the AI and from the chat page. The events stay in the session log.

The interface is in English, and in French when the page language is French. To add a language,
add a table to STRINGS at the top of client.js (missing keys fall back to English).

Install

dsh plugin --profile web add github:MathieuPortmann/dsh-history-edit

Restart the profile afterwards. Requires Node ^22.19.0 || >=24 and DSH >=0.2.0-rc.2 <0.3.0
(see Compatibility). Once the package is on npm, dsh plugin --profile web add dsh-history-edit works too.

The plugin has no configuration.

How it works

  • The DSH session log is append-only. A message can carry surfaceOp: replace {startSeq, endSeq}:
    it takes the place of that range of events in what the model sees (the "surface"). Editing and
    going back both write one such message; nothing is ever removed from the log.
  • lib/history.js holds the reasoning over the log as pure functions (which turn a message is in,
    which range an edit or a go-back replaces, whether a reply can be edited, how an edited reply
    event looks). It has no dependency and is covered by tests/.
  • index.js (host side) reads the session through DSH, calls lib/history.js, and writes the
    result. It serves a small JSON channel at /dsh-history/ (list, rewrite, rewind,
    cancelRewind, editReply, canEdit), protected by DSH's own connection check (Host/Origin
    fence and browser token).
  • client.js (page side) draws the buttons, the edit window and the banner, and hides the turns
    that were set aside. It finds the chat rows through the data-chat-flow-kind,
    data-chat-anchor-key and data-chat-turn attributes of DSH's chat page.

Compatibility

Component Supported
Node.js ^22.19.0 \|\| >=24.0.0 (engines.node)
DSH >=0.2.0-rc.2 <0.3.0; declared as optional peerDependencies on @deepseek-ai/dsh-llm and @deepseek-ai/schemastery, the only DSH packages the host side imports
Platform Linux (tested); pure JavaScript, no native addon
Page the chat page of DSH's web UI; the buttons depend on its row attributes and may need an update when the page changes

Tested with DSH 0.2.0-rc.2 on Node 22.23 (see Verification).

Permissions and external services

Everything the plugin can touch, and what happens when it fails:

Capability Where Used for If it fails
Files index.js (realpathSync) resolves the path of the running dsh binary, to find DSH's own packages; the plugin reads and writes no other file itself the plugin fails to load
Session log index.js (through ctx.agents, ctx.sessionController) reads the events of a conversation; appends the edited message, and creates a copy of the conversation (new session) for an edit in a copy or an edited reply. This is the plugin's purpose the operation returns an error code and the page shows a message; the original conversation is not touched
Network none nothing leaves the computer n/a
Commands none no child process, no shell n/a
HTTP route index.js (ctx.webServer.register) POST /dsh-history/ for the page, behind ctx.connection.admit() (DSH's Host/Origin fence and token); bodies are limited to 1 MiB and must be JSON non-admitted requests get 401/403; other errors are returned as JSON
Dynamic module loading index.js (importFromDsh) loads @deepseek-ai/dsh-llm (to build a user message) and @deepseek-ai/schemastery (the empty config schema) from the DSH installation that runs the plugin (a synchronous require of an ES module fails on Node 22). Nothing is downloaded and no code is evaluated from text (eval / new Function are not used) the plugin fails to load
Hook on the agent loop index.js (agent/pre-step) when you confirm an edit or a go-back, the next user message is written as a replacement. For that, the plugin wraps session.append of that one conversation until the message is written, then removes the wrapper (also on abort or if the session is closed) the edit is not applied and the error is reported; a go-back that cannot be computed is dropped and the message is sent normally

The plugin adds no tool for the model and no setting.

Verification

Checked on a disposable profile (DSH_HOME pointing at a temporary folder, profile cloned with
dsh --from-default-profile web, so the real profile is never touched):

npm pack
dsh plugin --profile t add file:$PWD/dsh-history-edit-0.1.0.tgz   # install
dsh --profile t --no-open --port 3095                              # start: plugin loads, no error
dsh plugin --profile t remove dsh-history-edit                      # uninstall

npm test runs 24 standalone tests of lib/history.js (turn outline, edit plans, go-back ranges,
reply cuts, edited replies, contiguity errors) with no DSH installation needed. The module is a
JavaScript port of the logic that first ran in a native addon; the port was compared with that
addon on about 2.2 million generated and real-log cases with identical results.

Develop

npm test

License

MIT

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
dsh-history-edit 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:MathieuPortmann/dsh-history-edit#v0.1.0` 即可。

dsh-history-edit 的验证等级是什么意思?

L5 · 运行验证通过。在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来

dsh-history-edit 安全吗?

低风险。

dsh-history-edit 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-history-edit 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

记忆与知识
按星标排序,可作替代方案

ruflo

ruflo

L3 · 安装规范通过 7.4 万 星

OpenViking

OpenViking

面向 DeepSeek Harness 的 OpenViking 记忆与上下文插件:pre-step 自动召回与画像注入、会话捕获、`vik

L3 · 安装规范通过 3.9 万 星

WeKnora

WeKnora

把 WeKnora 知识库接入 dsh 的四个只读工具:列出知识库、混合检索原文片段、按顺序还原单篇文档,以及直接取用 WeKnora 自己

L4 · 沙盒安装通过 3.3 万 星

distilly

distilly

Distilly — Distill how they think into reusable Skills for any Agent o

L4 · 沙盒安装通过 2.5 万 星

EverOS

EverOS

L4 · 沙盒安装通过 1.3 万 星

MemOS

MemOS

L4 · 沙盒安装通过 1.2 万 星

MathieuPortmann 的其它插件

6 个

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。