rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:TwilightSpirit/dsh-message-edit
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
在消息气泡上提供「修改」按钮:编辑任意一条消息(用户消息 / 助手回复),通过 DSH 核心的 surface replace 机制真正改写模型可见上下文(append-only 日志保留审计),气泡文字同步显示新文本。
Add a "✏️ 修改" button to every message bubble: edit any message (user or assistant reply), rewrite the model-visible context through DSH's core surface-replace mechanism (append-only log keeps audit trail), and the bubble shows the new text in place.
session.append(..., { surfaceOp: { op: "replace", ... } })——DSH 官方机制,模型后续看到的上下文是修改后的版本;append-only 日志保留原事件可审计dsh plugin --profile web add github:TwilightSpirit/dsh-message-edit
或手动将插件加入 ~/.dsh/profiles/web/ 的 package.json bundles 列表。
/message-edit RPC 通道。replace 端点定位目标消息(按 messageId 或 seq),通过 session.append(type, data, { surfaceOp: { op: "replace", start, end }, sourceEventSeqs }) 追加替换事件,改写模型可见的 surface。conversation.chat.assistant-actionsuser / steering 渲染器localStorage 覆盖层(dsh-msg-edit:{sessionId}:{seq}),渲染时优先显示新文本(本地覆盖 + host query 兜底,fork 子会话也能查到)session/created,若子会话(header.parentSession 存在)的 seed 前缀内包含被替换消息,重放对应的 replace 事件;幂等检查避免重复。说明:修改的是"模型看到的上下文",日志文件里旧内容仍在(DSH 的 append-only 安全设计,无法物理抹除),但模型视角和气泡显示都是新文本。
无额外配置项。插件开箱即用。
{
"@deepseek-ai/dsh-session": "^0.1.0-rc.7"
}
client 端依赖(已在 dsh.client.inject 声明):
@deepseek-ai/dsh-client-ui-conversation、@deepseek-ai/dsh-client-connection
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、deepseek-harness-plugin。