Developer tools · code search tool
ag (The Silver Searcher)
Fast command-line code search tool that people prefer over grep and IDE search for its ergonomic defaults, such as flexible casing and simpler file filtering. No criticisms recorded.
Summarized from 6 comments.
Fast command-line code search tool that people prefer over grep and IDE search for its ergonomic defaults, such as flexible casing and simpler file filtering. No criticisms recorded.
- recommend
- 6
- criticize
- 0
- months recommended
- 5 of 13
Why people love it
Ergonomic defaults and simpler file filtering · 2
its file filtering using -g is so much more cumbersome than -G in ag
Sep 2026 · commentag is also a little more ergonomic with its default flex casing
Sep 2026 · comment
What hackers pick instead
- ripgrepA much faster grep replacement for searching codebases, also widely used by AI coding agents; the main caveat is its default skipping of gitignored and hidden files.122recommend
- ast-grepA syntax-aware command-line tool for searching and refactoring code without regex headaches, which people also expose to AI agents as a skill. Some report mixed results.21recommend
- SembleDevelopers recommend Semble for fast local code search that needs fewer tokens and queries than grep. Critics question how the token savings are measured.20recommend
- Graft (Claude Code hooks)People recommend it for giving coding agents a map of the code that searches inside files rather than by names, cutting tokens and latency. Critics say the benchmarks are thin and the README reads as generated.13recommend
- Lat.mdRecommended as a Markdown knowledge graph that helps AI agents search code faster than grep. Main caveat: critics want proof of better performance.11recommend
Every quote
The 5 most detailed of 6 comments. Each links to the original.
its file filtering using -g is so much more cumbersome than -G in ag
Recommends · Sep 2026 · in “Small programming tricks”
ag is also a little more ergonomic with its default flex casing
Recommends · Sep 2026 · in “Small programming tricks”
His 6086-character grep-like utility, "ag", from 1993 is all-time favorite
Recommends · Oct 2026 · in “NetBSD adds a new text editor called atto”
Ag, grep beat IDE searches any day
Recommends · Jan 2026 · in “Threat Actors Expand Abuse of Microsoft Visual Studio Code”
they are both faster than GNU/Grep
Recommends · Apr 2026 · in “Show HN: GNU Grep as a PHP Extension”
Counts from 1,795,640 Hacker News comments, Nov 2025 to Nov 2026. How we count · Report a mistake