Search for a function name across a 10,000-file codebase and get results in under a second.
Find all references to a deprecated API before refactoring a large project.
Explore an unfamiliar open-source repository to understand how a specific module is used.
The Silver Searcher (also known as "ag") is a command-line tool for searching through code files extremely fast. Think of it like the "Find in files" feature in a code editor, but running in your terminal and dramatically quicker. It's designed for developers who need to search through large codebases to find where a particular word, function name, or piece of text appears. The standout feature is speed, benchmarks show it's roughly 34 times faster than similar tools, searching an 8GB codebase in about 3 seconds rather than nearly 2 minutes. It achieves this through several technical tricks: it runs multiple searches in parallel across your computer's processor cores, and it automatically skips files listed in your project's .gitignore file (the list of files that shouldn't be tracked in version control), so it only searches through files that actually matter. For vibe coders and developers working in Cursor or VS Code, this kind of tool runs in the terminal and is often integrated into editor plugins. If you're exploring someone else's codebase or trying to find every place a certain function is used, ag lets you get results almost instantly regardless of how large the project is. It's available on Mac, Linux, and Windows, and can typically be installed with a single command (like brew install the_silver_searcher on Mac). Written in C (a low-level, compiled language, which is why it's so fast), it's been trusted by developers for over a decade with 27,000 GitHub stars.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.