Why?
Use codebase search when your primary agent needs to do broad exploration across a local repository — finding implementations, understanding how modules connect, or locating code by description rather than exact pattern.Quick Start
- Anthropic
- OpenAI
- Vercel AI SDK
Configuration
| Option | Default | Description |
|---|---|---|
repoRoot | (required) | Root directory of the repository to search |
excludes | (see below) | Glob patterns to exclude |
includes | (all files) | Glob patterns to include (e.g., ['src/**/*.ts', 'lib/**/*.js']) |
name | warpgrep_codebase_search | Tool name exposed to the LLM |
description | (see SDK) | Tool description for the LLM |
remoteCommands | (local) | Functions for remote sandbox execution (see Sandbox Execution) |
morphApiUrl | https://api.morphllm.com | Override API base URL |
timeout | 30000 | Timeout in ms (also via MORPH_WARP_GREP_TIMEOUT env var) |
Default Excludes
WarpGrep excludes common non-source directories by default:- Dependencies:
node_modules,bower_components,.pnpm,.yarn,vendor,Pods,.bundle - Build output:
dist,build,.next,.nuxt,out,target,.output - Python:
__pycache__,.pytest_cache,.mypy_cache,.ruff_cache,.venv,venv,site-packages - Version control:
.git,.svn,.hg - Lock files, minified files, source maps, and common binary formats
excludes to override these defaults. Your list replaces the defaults entirely — it does not merge with them.