dshbase

Plugin directory / Knowledge / dsh-recall

dsh-recall

Verified · install-tested on dsh Mongfayi

✓ Actively maintained

View on GitHub ↗ ← Back to plugin directory

3Stars
0Forks
0Open issues
JavaScriptLanguage
2026-08-14Last push
Cross-platformPlatform

What it does

Message recall plugin for DSH Web UI.

✅
Our take
Works — verified, early-stage project

Message recall plugin for DSH Web UI. It installs cleanly and boots without issues in our testing. It's early-stage but functional.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

dsh-recall

对话撤回(recall)插件:把一条消息及其之后的所有内容从对话中移除——界面不再显示,模型也不再见——但绝不回退任何代码/文件改动。撤回以追加日志(append-only)中的 session/recall 墓碑事件持久化,重启后依然生效。

用法

会话空闲时:

  • 用户消息右侧的撤销按钮 → 确认 → 撤回该轮对话及其后的全部内容(你的提问与智能体的回复一并移除),该条用户消息的文本会恢复到输入框,可修改后重新发送(与 opencode 的撤回行为一致)。
  • 撤回位置显示「已撤回的消息」提示。

智能体运行中撤销按钮禁用(先停止当前回合)。

实现

  • 宿主端(lib/index.js):POST /recall 路由({sessionId, messageId} 或 {sessionId, boundary}),校验后调用 session.recall(boundary) 并 flush。错误码:session-not-found / subagent-owned / agent-busy / message-not-found / recall-rejected。
  • 浏览器端(lib/client.js):以 priority: -1 覆盖 conversation.chat.node 的 user keyed 渲染器,在每条用户消息旁渲染撤销按钮(点击以该用户消息 seq 为边界撤回),并复刻框架的用户气泡外观;「已撤回的消息」提示节点通过 session/recall 事件定义注册到 recall key。撤回提交成功后,被撤回用户消息的文本经 conversation.input.for(scope).setDraft() 写回输入框(仅文本,图片不恢复)。
  • 依赖的核心协议(无插件接缝,需 dsh 运行时内置):dsh-session 的 session/recall 事件类型 + surface 折叠召回支持;dsh-client-runtime 对已撤回事件的窗口过滤。

开发

node test/smoke-host.mjs    # 宿主路由:成功/拒绝路径
node test/smoke-client.mjs  # 客户端注册、定义、文案、确认门

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-recall for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:Mongfayi/dsh-recall

Headless (CLI) profile:

dsh plugin --profile headless add github:Mongfayi/dsh-recall

Test report

Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.

When to use it

Give the agent a memory, a knowledge base, or a retrieval layer so it stops forgetting context between sessions.

Who it's for

Users running long projects who want the agent to remember decisions, docs, and preferences without re-explaining.

For developers — extending it

The memory/retrieval backend is the seam — plug a new store, tune what gets distilled, or add citation and audit trails.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Knowledge

Browse all 7797 plugins →