Remote Commands
The simplest way to run WarpGrep in a sandbox. Provide functions that execute commands remotely and return raw stdout — the SDK handles all parsing.| Function | What to return | SDK post-processing |
|---|---|---|
grep | ripgrep stdout (path:line:content lines) | Truncates at 200 lines |
read | Raw file content (just the text) | Adds lineNumber|content formatting, truncates at 800 lines |
listDir | One path per line | Infers file/dir type, calculates depth, filters junk directories |
glob | One file path per line | Caps at 100 results |
Custom Providers
TheremoteCommands example above is itself a custom provider — a set of tool implementations (grep, read, list directory, glob) that override WarpGrep’s defaults. You might need a custom provider if you’re running on a non-standard operating system, a non-standard file system, or any environment where the built-in tools don’t work.
Below are examples of custom providers for common sandbox providers