DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

polear234 /

polear234/dsh-local-recall

Verified

This plugin has no description yet.

★ 1 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@8a429f21

local-recall · 跨对话提取

给 dsh-go 手机 App 写的一个本地小插件:把你在其他对话里问过的事和得到的结论,按关键词找出来,插进当前输入框。

纯本地、只读:不联网、不调模型、不改动任何对话、绝不自动发送。

用法

装上后有三个入口(都在手机 App 原生界面里):

入口 位置 作用
胶囊「跨对话」 输入框上方 把输入框里的文字当关键词,去其他对话里找相关问答,拼成摘要插入输入框
状态条「他处对话 N 个」 输入框上方 常驻显示积累了多少对话,点开面板
面板「跨对话提取」 对话详情页「插件」页签 / 全部功能 列出其他对话(标题 · 轮数 · 多久前),点一条插入要点

输入框为空时点胶囊,返回最近两个对话的要点。

模型工具:recall_past

插件同时注册一个模型工具,用来实现「用户说『之前的 xxx』,先查历史对话,再联网」:

  1. 用户提到「之前 / 上次 / 以前 / 那个…」时,模型先调用 recall_past,在本机其他对话里检索;
  2. 返回命中片段(对话标题、时间、问答摘要);
  3. 返回「没有找到」时,模型才去联网搜索。

工具描述里写明了这个顺序,所以不需要额外的提示词。

数据来源

只读本机会话投影缓存:

$DSH_HOME/storages/session_projcache/sessions/*.json

取每个会话的 title、turnOutline.turns(每轮提问与回答摘要)、sessionListMetadata.lastPromptAt。结果缓存 4 秒,避免频繁读盘。

安装

# 从 GitHub 安装(pnpm 会拉取仓库)
dsh plugin --profile web add github:polear234/dsh-local-recall

或者本地目录:

cp -r local-recall "${DSH_HOME:-$HOME/.dsh}/dsh-go/plugins/local-recall"
dsh plugin --profile web add "${DSH_HOME:-$HOME/.dsh}/dsh-go/plugins/local-recall"

dsh plugin add 只把包加进依赖,不会自动进 dsh.profile.bundles。还需要在 $DSH_HOME/profiles/web/package.json 的 dsh.profile.bundles 里加一行:

"local-recall"

然后重启引擎(App → 引擎 → 重启引擎)。

卸载:从 bundles 里删掉那一行,再 dsh plugin --profile web remove local-recall。

限制

  • 只做检索和摘句,不做归纳总结(没有模型调用)。
  • 缓存里的回答是截断摘要,不是全文。
  • 依赖会话投影缓存的路径与格式,引擎版本大改时可能需要跟着改。

License

MIT

—/ 5

No ratings yet

Verified DSH bundle

Commit 8a429f21dd6b

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout