Full-text global search for the DSH Web GUI: a sidebar search box that searches history sessions (via the sessionQuery index, with a per-session scan fallback) and settings panels, highlights matches, and jumps to the matching session or settings card.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:hyzyn/dsh-plugin-kit#path:/packages/search
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time. Only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DSH Web GUI 的 全局搜索插件:在侧边栏注入全局搜索框,点击 / 聚焦后弹出搜索窗,输入关键词即可全文搜索历史会话与设置面板:
- 历史会话:走 DSH 自带的
sessionQuery全文索引,展示命中的会话片段,点击打开会话并尝试自动定位到匹配文字位置; - 设置面板:列出「设置 → 插件」中已安装插件的可配置面板(终端、Agent 循环、网页搜索以及各插件卡片),点击直接跳转到对应设置卡片;
- 关键词高亮:命中的会话片段中的匹配词会高亮显示。
路由
仅限 loopback + 同源访问:
GET /api/dsh-search/query?q=<关键词>—— 返回{ sessions, panels }会话与设置面板搜索结果
安装
pnpm --filter @hyzyn/dsh-search build
dsh plugin --profile web add link:$(pwd)/packages/search
插件自身行由 cordis.patch.yml 的 insert: { id: global-search, name: '@hyzyn/dsh-search' } 挂载;浏览器半体在侧边栏「新建会话」下方添加全局搜索框。
配置
interface Config {
/** 关闭整个插件。默认 false。 */
enabled?: boolean
/** 单次搜索返回的最大结果条数。默认 8。 */
maxResults?: number
/** 是否搜索历史会话。默认 true。 */
includeSessions?: boolean
/** 是否搜索设置面板。默认 true。 */
includePanels?: boolean
/** 是否向 agent 注入插件能力公告。默认 true。 */
announceToAgent?: boolean
}
说明
- 浏览器半体依赖核心客户端
sessions服务(点击会话时打开),并通过 DOM 注入侧边栏搜索框; - 设置面板清单内置在宿主半体:官方恒有的面板(终端、Agent 循环、网页搜索)始终可搜;插件面板按宿主当前已加载的插件过滤,未安装插件的面板不会出现在结果里;
- 如果宿主未安装
sessionQuery服务,会话搜索会返回空数组而不是报错; - 如果
session-query全文索引被配置为openAt: "never",历史会话会自动退化为逐会话扫描原始事件,不会让整个搜索失败; - 会话结果会过滤为当前 DSH 可见 / 可跳转的会话,避免出现“能搜到但点不开”的情况。
Links
More in this category
Anionex/dsh-turn-rewind★ 81
Rewind conversation and workspace state, powered by a persistent Change Ledger.
Nwflower/dsh-chat-import★ 61
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
whyihaveyou/dsh-suite#plugin-session-export★ 40
Export the append-only session log as human-readable Markdown or HTML, grouped by trajectory source.
Chinesezjc/dsh-interconnect★ 33
Cross-instance message and event handoff between DSH instances via an interconnect server.
Moeblack/dsh-message-edit★ 30
Branch-based message editing, reroll, retry, and a version timeline.
hellodigua/dsh-share★ 23
Share your conversations with one click.