Remote Commands
The simplest way to run WarpGrep in a sandbox. Provide three functions that execute shell commands remotely — the SDK handles all parsing.grep— return ripgrep stdout (path:line:contentformat with-C 1context lines)read— return raw file content (SDK adds line numbers)listDir— return one path per line (findcommand output)
Platform Examples
See complete, runnable examples for each platform:Custom Providers
A provider is a set of tool implementations (grep, read, list directory) that override WarpGrep’s defaults. WarpGrep ships with built-in tools for Linux, macOS, and Windows. If your code runs in a non-standard environment — or you need to replace the built-in tools entirely — implement theWarpGrepProvider interface. Most users should use remoteCommands above instead.
Provider Interface
Required Output Formats
grep — ripgrep-style output:Usage
streamSteps: true).