DeepSeek Harness Plugin

Vonalier/dsh-global-session-search

Stars ★ 0 Category Sessions & Messages Added 2026-11-27

Search every DSH conversation across all workspaces and all records. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:Vonalier/dsh-global-session-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 — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

跨所有工作区搜索 DSH 的全部历史会话与记录。

用法

安装并启用后,在对话中调用 global_session_search:

  • query:要搜索的字面文本,大小写不敏感,中文与标点原样匹配。
  • limit:最多返回多少条匹配记录,默认 30,最大 100。
  • session_id:只搜索某一个会话;不填则扫描全部会话。

返回结果包含会话 id、标题、工作目录、命中记录的类型/序号/时间与上下文片段。页面支持按最新/最早排序,并按记录类型、时间范围、会话筛选。先用 session_id 定位会话,再查看该会话的更多记录。

安全边界

  • 浏览器请求通过 DSH Connection 的认证 Fetch 路由 /api/global-session-search/search 进入,和 /api 的 RPC 请求共用 Host/Origin 检查与浏览器/API Peer 鉴权。
  • 只有 owner Peer 可以读取结果;非 owner Peer 返回 403。
  • engines.dsh >= 0.2.3,使用 DSH 的 connection.fetch.register 注册精确路由,不直接暴露 webServer 匿名路由。

说明

  • 扫描 DSH profile 的 sessions 目录,不按当前工作区过滤。
  • 搜索范围包括用户消息、助手消息、系统消息、工具调用与工具结果等记录。
  • 不会修改任何会话,也不会向会话写入内容。

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.