dsh-qq-archive
Manifest validLocal searchable archive of DSH chat history: decodes the multi-frame zstd session logs (thousands of concatenated frames), extracts user and assistant text into SQLite, and exposes sync / search / st
dsh-qq-archive
把 DSH 的聊天历史变成本地可检索的库 —— 不需要任何外部服务、不上传。
QQ / Telegram / 微信这些 IM 通道的消息内容,插件层通常拿不到;但宿主本来就把每条 user/message、assistant/message 写进了 ~/.dsh/sessions/**.jsonl.zstd。
问题在于:那份日志是几千个 zstd 帧首尾相接,直接丢给 zstdDecompressSync 只能解出第一帧(一个 session 头)。这个插件里有逐帧解码器,实测 3596 帧全解。
装
dsh plugin --profile web add dsh-qq-archive
三个工具
| 工具 | 作用 |
|---|---|
qq_archive_sync | 扫描 ~/.dsh/sessions/**.jsonl.zstd,抽 user/assistant 文本入库(幂等,重复跑不会重复写) |
qq_archive_search | 关键词检索历史对话,返回角色 + 时间 + 片段 |
qq_archive_stats | 库里有多少条、时间跨度、哪些会话最多 |
用起来是什么样
> qq_archive_sync {}
扫描 3/3 个会话文件
抽出 393 条消息,新入库 393 条(重复的自动跳过)
> qq_archive_search { "query": "重启" }
[我 2026/11/4 14:27:39] 我们把睡眠关了,插电不休眠…
[小鱼 2026/11/4 09:12:02] 重启会中断会话,记录在磁盘上不会丢…
设计取舍
- 只存文本:图片、工具调用结果不进库(日志里太大,检索价值低)
- 过滤机器消息:
[dsh-proactive …]、[SCHEDULE REMINDER …]这类定时唤醒不算聊天,跳过 - 幂等:唯一索引
(session_id, role, at, text),同一会话反复 sync 不会膨胀 - 纯本地:
~/.dsh/qq-archive.db(node:sqlite,无需编译),删掉即清空
已知限制
- 只能读到宿主写下来的日志;日志被轮转/删除就没法补
- 逐帧解码依赖帧头 magic 扫描,文件格式若变动需要跟着改
- 检索是
LIKE,不做分词/向量 —— 对聊天这种短文本够用,量大后可以换 FTS5
License
MIT
Comments
Loading…
Similar plugins
by Ultroncn
Archive Management for DeepSeek Harness: search archived and unarchived chats, preview conversations, organize tags and notes, archive by workspace, keep ZIP backups, inspect origins and branches, che
★ 28
MIT
JavaScript
Nov 10, 2026
dsh plugin --profile web add dsh-archived-chatsby elk-9527
Automatically archives idle DSH conversations after a configurable number of days and clears the projection cache of archived sessions, without deleting transcripts or attachments.
★ 0
MIT
JavaScript
Oct 26, 2026
dsh plugin --profile web add dsh-auto-archiveby Ultronen
Local-first session lifecycle for DeepSeek Harness: safely bulk-archive workspaces, search and preview archived chats, restore history as copies, manage backups, recycle protection, retention, and lin
★ 28
↓ 1.8k/wk
MIT
JavaScript
Aug 24, 2026
dsh plugin --profile web add dsh-archived-chatsby honyKing
DSH 上下文存档与历史检索插件:自动压缩前把会话完整存档(zstd 解码为可读 jsonl + 摘要),压缩后按需全文检索历史对话。内置 archive_session / search_archive 工具与打包技能,dsh plugin add 一键安装。
★ 0
MIT
Python
Aug 23, 2026
dsh plugin --profile web add dsh-session-archive-pluginby YOGEMOW
Codex-style archived-chats manager for DeepSeek Harness: search, filter, unarchive and permanently delete archived sessions. | DSH 已归档会话管理器
★ 0
MIT
TypeScript
Oct 2, 2026
dsh plugin --profile web add dsh-archive-managerby chameleonn4
DSH 插件:自动读取本地 Codex 会话历史,让 DeepSeek Harness 与 Codex 无缝衔接
★ 3
MIT
JavaScript
Oct 27, 2026
dsh plugin --profile web add dsh-codex-history