
ripgrep
rgCode searchBy BurntSushi ↗
GitHub repository: Within freshness window. Last successful check . Freshness policy ↗
Search files and source code quickly with regular expressions.
Is ripgrep the right tool?
- Best for
- Searching file contents with regular expressions across a project. It recurses by default and skips .gitignore'd, hidden and binary files, so results stay focused on source. Official source ↗
- Look elsewhere when
- You need a portable, POSIX-standard tool that is already on every machine. ripgrep's own README recommends grep for that job. Official source ↗
Compared with related CLIs
ast-grepChoose ast-grep to match code by syntax (abstract syntax tree nodes) instead of text, for example to find or rewrite a call pattern. Official source ↗
fdChoose fd to find files and directories by name. It matches file names, not file contents. Official source ↗
Try a documented task belowRead the official docs ↗
Summarized from each project's own documentation, checked . Not execution-tested by useclis.
For your agent
Find relevant code and return line matches or JSON events to an agent.
Source-list workflow marking: Not marked in source list (source list)
Agent capabilities and setup
Documentation reviewed; this example has not been execution-tested by useclis. Sources checked .
- Structured output
- The --json flag emits a stream of JSON messages for search results. Official source ↗
- Unattended use
- A pattern and explicit path can be supplied as command arguments, without an interactive search interface. Official source ↗
- Authentication
- This local-file example needs filesystem read access; it does not use a service login. Official source ↗
- Platforms
- Windows, macOS and Linux. Official source ↗
- Limitations
- Search skips ignored, hidden and binary files by default. Official source ↗
Try a useful task
Find TODO markers in a project as JSON
Before you start: Install ripgrep using the official instructions and confirm rg is available in your shell. Setup instructions ↗
Run from the project directory you intend to inspect. The dot means that directory; default ignore rules still apply.
rg --json --fixed-strings TODO .Expected result: JSON messages describe matching lines. Exit status 0 means a match, 1 means no match, and 2 indicates an error. Command reference ↗
View prompt
What it does
- Recursive search
- Regular expressions
- JSON output
Homebrew installs
ripgrep ↗Explicitly requested installation events
- 30 days
- 37,767
- 90 days
- 123,622
- 365 days
- 508,399
From Homebrew installations that report analytics. Includes package variants; counts are not unique users.
Homebrew: Within freshness window. Last successful check . Freshness policy ↗
Checked . Source dated . How installs are counted ↗
GitHub binary downloads
BurntSushi/ripgrep ↗- Cumulative · selected release binaries
- 62,076,085
Downloads of selected binaries from published, non-prerelease releases (492 assets across 63 releases). Excludes source archives, checksums, and signatures. Deleted assets are no longer included. These are cumulative counts, not downloads over the last 30 days.
Downloads are not unique users or confirmed installations. Sources can overlap and should not be added together.
GitHub release downloads: Within freshness window. Last successful check . Freshness policy ↗
Checked . Snapshot . How downloads are counted ↗
GitHub activity: Within freshness window. Last successful check . Freshness policy ↗
Repository activity
Commits per week · GitHub snapshot
Tap, hover, or use the arrow keys to inspect weekly commits. Weekly totals can extend beyond the selected dates; the latest week may be incomplete. All time includes up to 52 recorded weeks. Hourly data is unavailable.
Commands and capabilities are described from the project documentation. Repository statistics cover BurntSushi/ripgrep, which may contain more than the CLI. Listing a tool does not mean every command has been tested with every agent.


