ripgrep

CLI>=13.0

Recursively searches directories for a regex pattern, respecting .gitignore.

Blazing-fast regex search across files, respects .gitignore

4 curated recipes · not yet executed by the harness#search#grep#regex#fast

Recipes

Curated from documentation and usage. Percentages are estimates, not measurements.

Search for pattern in all files

~99% est.
rg 'pattern' .

Search only in specific file type

~98% est.
rg 'pattern' --type ts .

Search case-insensitive

~99% est.
rg -i 'pattern' .

List files containing pattern

~99% est.
rg -l 'pattern' .

Install

Homebrewbrew install ripgrep
Cargocargo install ripgrep

Agent notes

When to use
Searching codebases or large directory trees for patterns
Quick examples
  • rg 'fn main' src/
  • rg -l 'TODO' .

Use from an agent

curl -s https://clihub.com/api/tools/ripgrep | jq '.agentHints.provenRecipes[] | {task, command, verified}'

Or call get_tool with slug ripgrep on the MCP server at https://clihub.com/mcp.

Homepage ↗MIT OR Unlicense0 views