DeepSeek Harness Plugin

hanbingzhiyao/deepseek-everything-plus

Stars ★ 0 Category Tools & Capabilities Added 2026-12-01

Filename search over the local Everything index, with parallel multi-pattern queries and a count step before fetching results.

Install

# from a prebuilt release tarball

dsh plugin --profile web add -w "https://github.com/hanbingzhiyao/deepseek-everything-plus/releases/latest/download/dsh-everything-plus.tgz"

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

dsh plugin --profile web add github:hanbingzhiyao/deepseek-everything-plus

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.

给 agent 用的 Everything 搜索:直接查本机 Everything 的 NTFS 索引,全盘找文件从"遍历几分钟"变成"毫秒级一轮调用"。

提供四个工具:everything_search、everything_count、everything_status、everything_reveal。不依赖 Everything 的 HTTP/ETP 服务,也不需要开端口。

为什么快

同一台机器实测(485 万条索引):

做法 耗时
目录递归找一组图片(3 万文件的小目录) 977 ms
递归找模板文件(刚体量大时) 6742 ms
本插件全盘查询 60–170 ms

关键在于「不做递归遍历」:Everything 已经维护好了文件名索引,插件只是把查询下发给它。

前置要求

  • Windows(Everything 只有 Windows 版,索引的是 NTFS 卷)。
  • 装好 Everything 并让它后台运行(首次运行会建索引)。
  • 命令行客户端 es.exe:包内自带官方 ES 1.1.1.40;若包被裁剪或想用别的版本,插件会自动从 voidtools 下载并按固定 SHA-256 校验,也可以用 esPath 指定已有文件。

安装

  • 插件市场里搜 dsh-everything-plus 安装。
  • 或从 GitHub 装(仓库 hanbingzhiyao/deepseek-everything-plus,npm install github:hanbingzhiyao/deepseek-everything-plus 已验证可用;仓库里不含 bin/es.exe,首次搜索会自动下载)。
  • 或本地目录安装:plugin_manager 的 install_bundle,target 指向本包目录。

仓库里的 ci/release.yml 是给 GitHub Actions 用的发布流水线示例:真正启用需要把它移动回 .github/workflows/release.yml,且推送账号要带 workflow scope(OAuth App 默认没有,直接推会 404)。

装完用 everything_status 自检:

Everything:运行中(1.4.1.1024)
es.exe:…\bin\es.exe(1.1.1.40)· 来源 bundled
索引卷:C: D: G: P:

工具

everything_search

everything_search { query: "ext:ts path:hook", maxResults: 20, sort: "date-modified", descending: true }
everything_search { queries: ["artbook !ext:txt", "artbook ext:jpg", "\"Code Nemesis\""], path: "D:\\Pictures" }
everything_search { query: ".", path: "D:\\proj", kind: "folders", fields: ["path"] }
参数 说明
query Everything 表达式:空格=AND,ext:js、size:>1mb、datemodified:today、parent:D:\proj、! 排除
queries 一次并行查最多 10 种写法,一轮返回分组结果(省掉多次调用往返)
path 限定目录(等价 -path)
kind all / files / folders
maxResults 每组条数上限(默认 40,多组时每组 20,上限 500)
fields 只回传 path / name / dir / size / modified,裁剪省 token
offset 0 基翻页
sort / descending 按 name / path / size / extension / 各类时间排序
regex / matchPath / matchCase / wholeWord 匹配方式

查询带空格不要紧:插件按空白拆成多个 argv(es.exe 收到单个含空格的参数会当成字面词,这是它的坑),引号短语保持整体。

everything_count

先看范围再决定要不要列:

everything_count { query: "ext:json", path: "D:\\proj", withSize: true }
→ 290 条命中 · 合计 506 KB

这一步比直接 everything_search 省得多:命中几万条时不必把结果拉进上下文。

everything_status / everything_reveal

  • status:Everything 是否在跑、版本、es.exe 路径与来源、索引了哪些卷、当前生效配置。
  • reveal:在资源管理器里选中文件(给你看,不占 agent 上下文)。

配置

cordis.patch.yml 里 config 段(都有默认值,不写也能用):

键 默认 说明
esPath '' 自定义 es.exe 完整路径,优先级最高
defaultLimit 40 单条搜索默认条数(1–500)
timeoutMs 20000 单次查询超时(1000–600000)
cacheDir %LOCALAPPDATA%\dsh-everything 自动下载的 es.exe 存放位置
autoDownload true 找不到 es.exe 时自动下载并校验

也可以用环境变量 DSH_EVERYTHING_ES 指定 es.exe。

es.exe 查找顺序:esPath → DSH_EVERYTHING_ES → 包内 bin/es.exe → 缓存目录 → Everything 安装目录(Program Files、Program Files (x86)、%LOCALAPPDATA%\Programs\Everything)。

隐私与副作用

  • 只读本机 Everything 的文件名索引;查询不出网、不上传统计。
  • 不改动 Everything 的配置、索引或服务,也不开 HTTP/ETP 端口。
  • 唯一会写的地方:缓存 es.exe(默认 %LOCALAPPDATA%\dsh-everything)、查询时在系统临时目录写一个 CSV(用完即删)。
  • 首次缺 es.exe 时会联网下载一次;关掉 autoDownload 就完全离线(需自备 es.exe)。
  • 卸载/停用后搜索退回逐层遍历,只是慢,不会留下依赖。

排障

现象 处理
Everything IPC window not found Everything 没运行;启动它(托盘有图标)后重试
没有找到 es.exe 开 autoDownload,或把 esPath 指到 es.exe
结果 0 条但文件确实在 检查是否被 Everything 的排除规则过滤;用 everything_status 看索引卷有没有覆盖那个盘
想搜文件内容 Everything 只索引文件名;内容搜索用 grep 工具或其他方案

许可

  • 本插件代码:MIT(LICENSE)。
  • 随包 bin/es.exe:ES 1.1.1.40,Copyright (c) 2025 voidtools,MIT,原样分发;全文见 LICENSE-ES.txt,说明见 THIRD-PARTY-NOTICES.md。
  • Everything 本体由用户自行安装,本包不包含。

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.