ripgrep

ripgrep

Line-oriented Rust regex search tool that recursively searches directories at blazing speed while respecting gitignore rules.

★ 70.4K

Search Massive Codebases in Milliseconds With ripgrep

Running traditional grep across a modern monorepo often stalls for seconds while chewing through node_modules, build artifacts, and hidden Git objects. ripgrep (`rg`) combines Rust’s SIMD-accelerated regex engine with smart default filtering to search millions of lines of code in the blink of an eye. Backed by 70.4K GitHub stars and 3,500 forks under the MIT and Unlicense dual license, it is the search engine under the hood of VS Code and countless AI coding agents.

What Makes ripgrep So Fast

  • Smart Defaults Out of the Box: Automatically respects `.gitignore`, `.ignore`, and `.rgignore` files while skipping hidden folders and binary blobs.
  • Rust DFA and SIMD Acceleration: Delivers full Unicode support and literal optimizations that routinely beat GNU grep, ack, and The Silver Searcher by 5x to 30x.
  • Lock-Free Parallel Traversal: Walks deep directory trees concurrently across CPU cores and automatically switches between memory maps and buffered reads.
  • Rich Developer Ergonomics: Filter by language (`rg -tpy`), search inside compressed archives (`-z`), or opt into PCRE2 (`-P`) for look-around regexes.

Practical Caveats

Because ripgrep skips ignored and hidden files by default, searching inside a `.env` file or `vendor/` directory requires passing `-u` or `-uuu`. It is also not a strict POSIX drop-in for legacy shell scripts that rely on exact GNU grep flag quirks.

Quick Takeaway

Whether you are hunting down a symbol in the terminal or powering an AI coding agent’s file search, ripgrep is the fastest code search tool you can install.

Ready to try ripgrep?

Experience the full capabilities on their official website.

Visit Official Website