dsh-tool-everything: Millisecond-Level Local File Search via Everything HTTP API

Preface

A common approach for letting a model find local files in DSH is using Shell recursion with find/dir, or relying on IDE workspace indexing. The former is slow on large drives and consumes disk resources; the latter often only covers the currently open project. On Windows, if you are already using Everything (voidtools) to maintain an NTFS filename index, queries are millisecond-level and do not require scanning directories—Everything builds its index by reading the Master File Table and uses the USN Journal for incremental updates.

dsh-tool-everything is a networked tool plugin for DSH by maintainer leolee9086: it does not build its own index but translates the model’s search requests into Everything’s native HTTP calls, organizing the results into Host tool output. The following sections introduce the capabilities it provides, how to enable Everything and the plugin, and the difference in approval requirements between system-wide and workspace-scoped searches.

What is this

  • Positioning: A DSH tool plugin that searches locally indexed filenames and paths via Everything’s HTTP interface.
  • Maintainer: leolee9086; source code on GitHub at leolee9086/dsh-tool-everything (the package is also located in the dsh-tool-everything/ subdirectory of the SAC_search repository).
  • Category: Networked Tool (Directory: SkillHub Plugin Page).
  • License: MIT; current package version 0.2.0 (subject to package.json).

The plugin exposes three Host tools: everything_search (system-wide index, requires approval by default), everything_workspace_search (scope pinned to the current session workspace, approval-free), and everything_status (probes whether Everything is available).

Core Features

Three Host Tools

Tool Scope Approval (Default approvalMode: auto)
everything_search System-wide Everything index Direct call when session is danger-full-access; goes through DSH approval for workspace-write / read-only; fail closed if permission service is unreachable
everything_workspace_search Only workspaceRoot and its subpaths (configurable via subpath) Approval-free by default; fail closed if workspace root cannot be resolved; still requires approval if approvalMode: always
everything_status Health/Probe Depends on plugin implementation and test coverage

everything_search does not provide a “search workspace only” parameter; any system-wide search will trigger approval under non-full file permissions. The workspace tool has no path parameter; its scope is resolved from the plugin and session sandbox policy, and it rejects attempts by the caller to expand the scope using absolute paths, UNC paths, .., quotes, or | in the query (| is Everything’s OR operator, which would invalidate scope restrictions).

Approval and Session File Permissions

The Everything index covers system-wide paths, and the official HTTP documentation states that indexed entries are searchable and downloadable by default (web server). The plugin reads ctx.sandboxPolicy.resolve({ session }).mode in tools/pre-execute (explicit override > session sandbox/mode > deployment default) to decide whether to return { kind: "ask" } or allow the call directly. DSH handles the audit and adjudication; the plugin does not self-authorize non-compliant calls.

config.approvalMode can be set to auto (default), always (ask regardless of permissions), or never (never ask, not recommended in documentation).

The approval summary places the current query and other parameters at the very front, and includes path/ext/probe/maxResults/offset/sort as well as regex/matchCase/wholeWord/ascending; it will be truncated if exceeding 400 characters.

Query Syntax and Convenience Parameters

query uses Everything’s native syntax; the plugin does not parse it. Tested on Everything 1.4.1.1032 HTTP interface: ext:, path:, folder:, size:, dm:, file: are effective; name: is invalid (filename should be written directly).

path and ext are concatenated into the query string (1.4 HTTP does not recognize standalone directory/extension parameters). path automatically adds a trailing \ or / to prevent C:\Program Files from mistakenly matching C:\Program Files (x86) and other directories with the same prefix.

Results are requested via path_column=1, size_column=1, date_modified_column=1; date_modified is a Windows FILETIME and needs to be converted to milliseconds, it cannot be used directly as a Unix timestamp.

Prerequisites: Enable Everything HTTP Service

The plugin has zero npm runtime dependencies but requires Windows + Everything installed and running, with the HTTP service enabled (disabled by default).

In Everything:

  1. Tools -> Options -> HTTP Server, check “Enable HTTP Server”;
  2. Ensure the listening port matches the plugin’s config.port (default 8080);
  3. Bind strictly to 127.0.0.1, do not expose to the LAN;
  4. Uncheck “Allow file downloads”.

Alternatively, edit %APPDATA%\Everything\Everything.ini:

http_server_enabled=1
http_server_bindings=127.0.0.1
http_server_port=8080
http_server_allow_file_download=0

Restart Everything after changes. To verify HTTP availability:

curl "http://127.0.0.1:8080/?search=Everything.exe&json=1&count=1&path_column=1"

The documentation notes that this was tested on Everything 1.4.1.1032; HTTP parameters in 1.5 differ from 1.4, and this plugin is implemented according to 1.4 behavior.

Installation and Activation

Requires Node.js 22.19.0 or higher.

For development, place the dsh-tool-everything/ directory into $DSH_HOME/plugins/, or link it in the profile. Mount it in the profile’s cordis.patch.yml (append if insert list already exists):

- insert:
    - id: dsh-tool-everything
      name: dsh-tool-everything
      config:
        host: 127.0.0.1
        port: 8080

The package includes a cordis.patch.yml, which can also be mounted as a bundle:

- name: dsh-tool-everything

Takes effect after reloading the plugin or restarting DSH. Please read the source code and MIT license before installation; the plugin runs with the current DSH process permissions and accesses the Everything service on the local 127.0.0.1.

Configuration Options

Key Default Description
host 127.0.0.1 Everything HTTP address
port 8080 Must match Everything options
timeoutMs 15000 Timeout for a single query
defaultResults 50 Count when maxResults is not passed
maxResults 500 Upper limit for a single return
maxQueryLength 4096 Upper limit for query string length
approvalMode auto auto / always / never
approvalReason Built-in Custom approval description

Typical Usage

Can be called by the model or Host side (examples from README):

everything_search(query="ext:psd 效果图")
everything_search(query="报价", path="D:\\工作", ext="xlsx;docx", maxResults=20)
everything_search(query="^方案.*\\.pdf$", regex=true, sort="date_modified", ascending=false)
everything_workspace_search(query="规则", ext="js;md")
everything_workspace_search(query="报价", subpath="docs\\报价")
everything_status(probe="Everything.exe")

Workspace search uses subpath to limit to a relative subdirectory within the workspace; system-wide search uses path to limit the directory (the plugin tightens the trailing separator).

Scenarios and Notes

Suitable for: Users already using Everything on Windows who want DSH agents to query system-wide filenames under controllable approval, or to quickly find config/doc/code files within the current workspace without approval.

Important Notes:

  • Windows only; if Everything is not running, it will only return an error, the plugin does not build an index.
  • The number of returned results is limited by Everything’s count, excess parts are not returned (the output will indicate remaining counts).
  • The workspace root comes from the session (cwd, etc.); changing the working directory requires a new session, the plugin does not cache it.
  • The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem is “everything is a plugin”, please verify the source and permission policies before installing third-party plugins.

Local tests provided by the maintainer (do not require Everything installed locally):

pnpm test
pnpm run check

Conclusion

dsh-tool-everything integrates Everything’s millisecond filename index into DSH: use everything_search for system-wide searches following session file permissions and approval, and everything_workspace_search for project-internal searches with scope pinned to the workspace. Before enabling, open the HTTP service bound to localhost only in Everything and disable file downloads, ensuring the port matches the plugin configuration.

  • Directory Page: https://www.skillhub.cn/plugins/leolee9086/dsh-tool-everything
  • GitHub: https://github.com/leolee9086/dsh-tool-everything
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye