Bundle
dsh-session-search
DSH 会话全文搜索:在所有本地会话(含 zstd 压缩与明文存储)中按关键词检索,返回命中的会话、行内容与上下文。Full-text search across DeepSeek Harness sessions — find any past conversation by keyword, works with zstd and plaintext session logs.
- Source
- uckkk
- stars
- 1 stars
- License
- MIT
- Updated
- Updated 2 days ago
Readme
# dsh-session-search · DSH 会话全文搜索 [](https://www.npmjs.com/package/dsh-session-search) [](https://github.com/uckkk/dsh-session-search) [](LICENSE) 在 DeepSeek Harness(DSH)本地保存的所有会话中按关键词**全文搜索**,找回历史对话、代码片段与决策记录。 **Full-text search across [DeepSeek Harness](https://github.com/deepseek-ai/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 ```sh 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 <keyword>" → `session_search` ## 为什么选它 Why - **找回被遗忘的历史**:agent 会话是重要资产,搜索让它们可复用 - **跨项目检索**:所有工作目录的会话一网打尽 ## 配套插件 Companion plugins - [dsh-session-export](https://github.com/uckkk/dsh-session-export) — 会话导出/备份 - [dsh-context-dashboard](https://github.com/uckkk/dsh-context-dashboard) — 会话上下文/Token 统计 ## License MIT © istone
Install
dsh plugin --profile web add github:uckkk/dsh-session-search
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-session-search from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.