Runnable examples for Morph's subagent products.
Use this table to jump to the right place based on what you're building.
| I'm writing... | Go to |
|---|---|
| Python | warpgrep/python-agent — full protocol reference, no SDK |
| TypeScript | warpgrep/basic-search — simplest starting point |
| TypeScript + Anthropic SDK | warpgrep/anthropic-agent — Claude in an agent loop |
| TypeScript + OpenAI SDK | warpgrep/openai-agent — GPT-4o in an agent loop |
| TypeScript + Vercel AI SDK | warpgrep/vercel-agent — automatic tool loop |
| TypeScript + Google AI SDK | warpgrep/gemini-agent — Gemini in an agent loop |
| I want to... | Go to |
|---|---|
| Search a local repo | warpgrep/basic-search |
| Search a GitHub repo (no clone) | warpgrep/github-search |
| Stream search progress | warpgrep/streaming |
| Run search in a Vercel Sandbox | warpgrep-vercel-sandbox |
| Run search in a Cloudflare Worker | warpgrep-cloudflare-sandbox |
| Build a PR review bot | github_app |
| Benchmark PR review quality | pr_review_agent |
| Platform | Go to |
|---|---|
| Local (CLI) | warpgrep/ — all local examples |
| Vercel Sandbox | warpgrep-vercel-sandbox — isolated VM via @vercel/sandbox |
| Cloudflare Workers | warpgrep-cloudflare-sandbox — Durable Object sandbox via @cloudflare/sandbox |
| GitHub App | github_app — deploy as a GitHub App |
All in warpgrep/:
| Example | Language | Description |
|---|---|---|
| basic-search | TypeScript | Query in, results out |
| streaming | TypeScript | Stream 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 |
| anthropic-agent | TypeScript | Claude + WarpGrep agent loop |
| openai-agent | TypeScript | GPT-4o + WarpGrep agent loop |
| vercel-agent | TypeScript | Vercel AI SDK automatic tool loop |
| gemini-agent | TypeScript | Gemini + WarpGrep agent loop |
| python-agent | Python | Full protocol reference (no SDK) |
| Example | Platform | Description |
|---|---|---|
| warpgrep-vercel-sandbox | Vercel | Search code inside an isolated Vercel Sandbox VM |
| warpgrep-cloudflare-sandbox | Cloudflare | Search code inside a Cloudflare Worker with Durable Object sandbox |
| Example | Language | Description |
|---|---|---|
| github_app | Python | Production GitHub App — Claude + WarpGrep multi-pass PR review |
| pr_review_agent | Python | Benchmarking pipeline for PR review strategies |
- Morph API key (
MORPH_API_KEY) — all examples - ripgrep — local search examples only
- Node.js 18+ — TypeScript examples
- Python 3.10+ — Python examples
ANTHROPIC_API_KEY— agent examples using ClaudeOPENAI_API_KEY— agent examples using GPT
cd warpgrep/basic-search
npm install
MORPH_API_KEY=your-key npx tsx search.ts "Find the main entry point" /path/to/repo