What is WarpGrep?
WarpGrep is a specialized AI model that acts as a subagent for code search. When your main agent needs to find code, it delegates to WarpGrep instead of running grep commands directly. Under the hood, WarpGrep has access to three tools:- grep — ripgrep for pattern matching
- read — read specific file sections
- list_dir — explore directory structure
Requires
rg (ripgrep) installed locally. No embeddings, no index setup—works anywhere.Why WarpGrep?
4x Faster Search
Sub-6 second searches with parallel tool calls. Speed matters when humans are in the loop.
Clean Context
Search happens in a separate context window. Your main agent only sees relevant results.
Better Long-Horizon Performance
Agents stay on track across 10, 20, 50+ step tasks without getting lost in irrelevant files.
No Indexing Required
Works instantly on any repo. No embeddings, no vector database, no setup.

@swyx and @cognition pin P(breaking_flow) at +10% every 1s. For coding agents, speed is critical. See benchmarks for performance data.
Quick Start
For personal use we recommend using warp grep through our MCP. If you’re building a coding agent, warpgrep is available through the SDK as:Pricing
| Type | Price |
|---|---|
| Input | $0.80 per 1M tokens |
| Output | $0.80 per 1M tokens |
Next Steps
SDK Tool
Use Warp Grep as a tool in your AI agents with Anthropic, OpenAI, Gemini, or Vercel AI SDK
Direct API
Use SDK primitives to build custom agent loops with full control