longyu065/dsh-session-index ↗★ 1
dsh-session-index
会话全文索引插件,通过监听会话事件构建跨会话索引,提供搜索与统计工具,优先使用 SQLite FTS5。
AI 分析
核心用途是实现跨会话的全文检索。适合积累了大量历史会话,需要快速搜索过往聊天内容、工具执行结果或思考过程的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:longyu065/dsh-session-index说明文档
阅读完整 README ↗配置项
| 键 | 默认 | 说明 |
|---|---|---|
dataDir | ''(自动 = $DSH_HOME/session-index) | 索引落盘目录;填自定义路径可改位置 |
maxResults | 20 | session_search 默认最大命中数 |
maxSnippetChars | 240 | 摘要片段最大字符数(Unicode 码点) |
maxDocChars | 4000 | 单条文档索引的最大字符数(工具结果可能很大,截断防膨胀) |
indexReasoning | false | 是否索引 assistant 的 reasoning 思考文本 |
indexToolResults | true | 是否索引工具返回结果 |
preferFts | true | 是否优先使用框架 ctx.sessionQuery FTS5(并跑混合检索);false 则纯内存索引 |