Back to home

uckkk

dsh-session-search

DSH 会话全文搜索:跨所有本地会话按关键词检索(支持 zstd 与明文存储)。Full-text search across DeepSeek Harness sessions.

Stars
0
Language
JavaScript
Created
Aug 17, 2026
Updated
Aug 17, 2026

Introduction

dsh-session-search · DSH 会话全文搜索

npm GitHub License: MIT

在 DeepSeek Harness(DSH)本地保存的所有会话中按关键词全文搜索,找回历史对话、代码片段与决策记录。 Full-text search across DeepSeek Harness (dsh) sessions — find anything you ever discussed, in zstd or plaintext session logs.

支持 zstd 压缩.jsonl.zstd,DSH 默认存储格式)与明文.jsonl)两种会话存储。纯 Node 实现,零第三方运行时依赖。

功能 Features

  • session_search — 关键词全文搜索:返回命中会话(标题/ID/工作目录)、命中行号与具体行内容
  • 按最近使用排序,默认扫描最近 20 个会话;maxSessions/limit 可调
  • 不区分大小写(可开关 caseSensitive
  • peer-only 依赖(随 DSH 宿主加载)

安装 Install

dsh plugin --profile web add dsh-session-search
# 或任意 profile:dsh plugin --profile <name> add dsh-session-search

使用 Usage(agent 工具)

  • 「我上次讨论过 <关键词>,帮我找找」→ 调用 session_search
  • 「搜索会话里所有提到 <函数名> 的地方」→ session_search query=<函数名>
  • English: "Find where I mentioned " → session_search

为什么选它 Why

  • 找回被遗忘的历史:agent 会话是重要资产,搜索让它们可复用
  • 跨项目检索:所有工作目录的会话一网打尽

配套插件 Companion plugins

License

MIT © istone