Morph WarpGrep

Intelligent code search with WarpGrep

A code search subagent that searches your codebase in a separate context window. Returns only relevant code—keeps your main agent clean.

"WarpGrep lets us search giant codebases in seconds without blowing context windows."

Senior Engineer, JetBrains

"We switched from embeddings to WarpGrep—faster searches, simpler infra."

Platform Lead, ClickUp
AutoHand

"WarpGrep keeps retrieval fast, precise, and easy to deploy across our codebase."

CTO, AutoHand

Subagent-powered search

WarpGrep operates in its own context window. Your main agent receives only relevant results.

01
import { morph } from 'morph'
02
 
03
const result = await morph.warpGrep.execute({
04
  query: 'Find where billing invoices are emailed',
05
  repoRoot: './my-project',
06
})
07
 
08
// Clean results, no context pollution
09
console.log(result.contexts)  // Relevant code only
10
console.log(result.summary)   // Search findings
WarpGrep

Search codebases without blowing context

Isolated context window

WarpGrep is a specialized AI model that searches your codebase in a separate context window. Instead of your main agent running grep and accumulating context, WarpGrep does intelligent multi-step searching and returns clean results.

01
import { morph } from 'morph'
02
 
03
// WarpGrep searches in isolation
04
const result = await morph.warpGrep.execute({
05
  query: 'Find where billing invoices are generated',
06
  repoRoot: '.',
07
  excludes: ['node_modules', '.git'],
08
  includes: ['src/**/*.ts']
09
})
10
 
11
// Returns only relevant code sections
12
for (const ctx of result.contexts) {
13
  console.log(ctx.file, ctx.content)
14
}

Multi-turn reasoning

Your agent calls WarpGrep with a natural language query. WarpGrep reasons about what to search, runs up to 24 tool calls (grep, read, list_dir) across 4 turns in under 6 seconds, and returns the relevant code sections.

WarpGrep
Running 8 parallel searches…
├─grep -r "webhook.*handler"2.1k
Searching…
├─grep -E "async.*subscribe"1.8k
Searching…
├─read src/api/billing.ts:1423.2k
Reading…
├─grep "customer\.create"1.4k
Searching…
├─list_dir src/services/0.8k
Listing…
├─read src/lib/stripe.ts:1-802.6k
Reading…
├─grep -r "invoiceId"1.9k
Searching…
└─read src/api/checkout.ts:552.3k
Reading…
24 tool calls · 4 turns~5.8s

Best-in-class F1 score

WarpGrep achieves 0.73 F1 in just 3.8 steps—3x fewer than comparable agentic approaches. Deep logic queries show 2x-6x better performance.

Average Steps to Complete
Warp Grep3.8
SWE Grep3.7
Claude Haiku12.4
Gemini Flash10.8
GLM 4.514.5
mgrep1

Warp Grep achieves 0.73 F1 in just 3.8 steps—3x fewer than comparable agentic approaches

Built for every deployment pattern




Parallel breadth-first search

Parallel breadth-first search


Ship your first search workflow in minutes.

Get Started

$10/month in free compute