Skip to main content
Copy-paste examples for real-world WarpGrep use cases. All examples use the TypeScript SDK with Anthropic, OpenAI, or Vercel AI SDK.

Codebase Q&A Agent

Answer natural language questions about any codebase. WarpGrep finds the relevant code, Claude explains it.
What it does: Agent receives a question, searches the codebase for relevant code, then synthesizes an answer with file references. Multiple search rounds if the first pass doesn’t find enough context.

PR Review with Full Context

Review pull requests by searching the surrounding codebase for context the diff alone doesn’t show.
Why this is better than reviewing the diff alone: The agent searches for callers of modified functions, checks for similar patterns that might need the same change, and finds tests that should be updated. A diff-only review misses these.

Search across multiple public GitHub repos without cloning. Find how different projects implement the same pattern.
What it does: Searches multiple GitHub repos server-side (no local clone needed), then compares how each project solves the same problem.

Security Audit Agent

Scan a codebase for common security vulnerabilities. WarpGrep finds the code, Claude evaluates the risk.
How it works: Runs each security check as an independent search-and-analyze pass. Each check gets a fresh context window, so WarpGrep can focus its search budget on that specific vulnerability class.

Streaming Search UI

Show real-time search progress in a terminal or web UI.
Output:
Streaming adds zero latency overhead. The steps are yields from the same search operation, not separate API calls.

Dependency Debugger

Search inside node_modules to understand how a library works or debug an issue at the source.
Why excludes: []: WarpGrep excludes node_modules by default. Passing an empty excludes list disables all default excludes so you can search library source code.

Migration Scout

Before a large migration, search for every pattern that needs to change.
What it does: Exhaustively searches for every usage of the old framework’s patterns, then produces a file-by-file migration checklist with before/after code snippets.

More Examples

GitHub Examples Repo

10 self-contained examples in TypeScript and Python

Python Guide

Complete Python implementation without the TypeScript SDK

Sandbox Execution

Run WarpGrep in E2B, Modal, Daytona, Docker, and more

Direct API

Build a custom harness in any language