Skip to content

Latest commit

 

History

History

README.md

WarpGrep Examples

Code search subagent examples. Each example is self-contained — pick the one that matches your stack.

Example Language What it shows
basic-search TypeScript Simplest possible search — query in, results out
streaming TypeScript Stream local search progress in real-time
search-node-modules TypeScript Search inside dependencies
github-search TypeScript Search a public GitHub repo without cloning
github-streaming TypeScript Stream GitHub search progress in real-time
anthropic-agent TypeScript Claude + WarpGrep in an agent loop
openai-agent TypeScript GPT-4o + WarpGrep in an agent loop
vercel-agent TypeScript Vercel AI SDK — automatic tool loop
gemini-agent TypeScript Gemini + WarpGrep in an agent loop
python-agent Python Full protocol reference implementation (no SDK)
e2b-sandbox TypeScript WarpGrep in an E2B cloud sandbox
modal-sandbox TypeScript WarpGrep in a Modal cloud sandbox
daytona-sandbox TypeScript WarpGrep in a Daytona sandbox
vercel-sandbox TypeScript WarpGrep in a Vercel Sandbox
cloudflare-sandbox TypeScript WarpGrep in a Cloudflare Worker sandbox
docker-ssh TypeScript WarpGrep over SSH to a Docker container

Prerequisites

All examples require a Morph API key (MORPH_API_KEY).

Local search examples also need ripgrep installed. GitHub search examples do not — WarpGrep indexes the repo remotely.

TypeScript examples need Node.js 18+. The Python example needs Python 3.10+.

Quick test

Run any example against its own directory:

cd basic-search
npm install
MORPH_API_KEY=your-key npx tsx search.ts "What files are in this project?"