rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:QwQ2333333-QaQ/dsh-search-chat
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness(DSH)右侧栏的会话搜索插件:跨全部工作区、对聊天记录做字面匹配,结果按时间排列;点击任意一条即可打开对应会话并跳到那条消息附近。
当前版本 v0.4.1:在字面搜索基础上增加了「日期时间轴」「搜索历史」「本地缓存」。
sessionQuery 会话索引,覆盖所有工作区的历史会话。sessionQuery 服务)。dsh web 均可;本插件不改动任何宿主文件或其它插件。已发布到 npm:https://www.npmjs.com/package/dsh-search-chat
用 DSH 的插件管理器按包名安装(建议带上版本号,便于复现):
plugin_manager install_bundle target = dsh-search-chat@0.4.1
也可以先在本机查看包内容:
npm install dsh-search-chat
安装完成后如果右侧栏没有立即出现,重启 DSH 客户端(宿主路由与客户端模块在启动时装载)。
在本目录(package.json 所在目录)用 DSH 的插件管理器安装绝对路径:
plugin_manager install_bundle target = D:\Deepseek Workpalcae\dsh-search-chat
plugin_manager remove_bundle target = dsh-search-chat
状态栏会显示命中总数、耗时、以及这次是用「索引」还是「扫描」得到的。
点击标题右侧的 ⚙ 展开「外观设置」:
| 设置 | 默认 | 说明 |
|---|---|---|
| 高亮底色 | #ffd54f(亮黄) |
命中关键词的背景色,附 1px 深色描边,避免与皮肤背景混在一起 |
| 高亮文字 | 自动 | 默认按底色亮度自动取黑/白,保证对比度;也可以手动指定 |
| 关键词加粗 | 开 | 关闭后只靠底色区分 |
| 面板背景 | 透明 | 想更好读可以选一个颜色,并用滑条调整不透明度 |
| 面板文字 | 继承 | 选深色面板背景后建议改为浅色文字 |
| 预设 | 默认 / 高对比 / 柔和 | 一键切换整套高亮方案 |
| 恢复默认 | — | 回到透明背景 + 亮黄高亮 |
改动立即生效,约 0.5 秒后自动保存到 $DSH_HOME/.dsh-search-chat.json(刷新页面、重启客户端、重装插件都会保留)。保存失败时界面会提示「仅本次生效」,不影响搜索。
日期时间轴
搜索历史
$DSH_HOME/dsh-search-chat/history.json,刷新/重启保留。本地缓存
$DSH_HOME/dsh-search-chat/cache/,自动做 LRU 清理(最多 200 个 / 20MB)。data-chat-* 属性(产品内部属性,非公开 API)。选择器集中在 lib/client.js 的跳转区,DSH 升级后只需调整这一处。详见 docs/API-NOTES.md。$DSH_HOME/dsh-search-chat/,可随时删除,不影响 DSH 会话数据。Sec-Fetch-Site: cross-site)与异源 Origin。npm run validate # 语法检查 + 清单/挂载文件检查
npm test # node:test 单元测试(检索核心 + 服务编排 + 清单)
目录:
lib/index.js 宿主插件:9 条本机 JSON 路由
lib/search-service.js 检索编排(索引候选 → 字面校验 → 扫描兜底)+ 时间轴/日历/历史
lib/search-core.js 纯函数:匹配/片段/排序/分页
lib/settings.js 外观设置的校验、读取与原子写入(v3)
lib/cache-store.js 本地结果缓存(内存 LRU + 磁盘 JSON + 语料签名)
lib/history-store.js 搜索历史(去重、上限、单删、清空)
lib/calendar-index.js 日期可用性与时间窗口换算
lib/paths.js $DSH_HOME 下的插件私有目录
lib/fence.js 回环与同源校验
lib/protocol.js 路由、固定上限与时间轴常量
lib/client.js 浏览器半侧:右侧栏 tab + 搜索 + 月历时间轴 + 历史 + 外观 + 跳转
test/ node:test
docs/ API 备注与路线图
开发循环:改客户端(lib/client.js)→ 刷新页面;改宿主(lib/index.js 等)→ 重启 DSH 客户端再验证。只重装插件而不重启时,DSH 的热重载可能在 Host 路由表里留下上一实例的注册,导致新实例的路由被判重复(插件已做自愈清理与重复容错,但首次仍建议重启一次);版本按语义化递增并更新 CHANGELOG.md。
MIT。见 LICENSE。
A right-sidebar session search plugin for DeepSeek Harness. It searches chat history across all workspaces using literal character matching (phrase, all terms, or any term), lists hits in time order, and jumps the conversation to the matched message with a short highlight.
>= 0.2.2-rc.1 (right-sidebar extension points + sessionQuery).data-chat-* row attributes; the
selectors are isolated and documented in docs/API-NOTES.md.$DSH_HOME.Install the absolute package directory with the DSH plugin manager, restart the client if the tab does not appear immediately.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。