The 50-year-old Unix legend quietly powering the most advanced AI agents today.
Ken Thompson (left) and Dennis Ritchie (right), 1973 • Public Domain via Wikimedia Commons
While building Unix at Bell Labs, Ken Thompson pulled the regular expression engine from the ed editor
and created g/re/p — global regular expression print. It was originally a quick tool to help search code and documents.
Grep became a cornerstone command on every Unix-like system. Variants like egrep, fgrep, and later ripgrep (2016) made it faster and more powerful.
Andrew Gallant’s Rust-based ripgrep brought massive speed improvements. Today it powers VS Code, GitHub, and most modern AI coding agents.
No embeddings. No indexing delays. Perfect for codebases.
Recent agent research shows lexical search often outperforms complex RAG for structured code tasks.
“Give an AI agent the same tools a senior engineer uses — grep, read, edit — and it becomes dramatically more capable.”
Heavy use of ripgrep for codebase exploration. Fast, accurate context without expensive vector search.
Modern AI IDEs and CLI agents expose grep/ripgrep as core tools for the model.
Structural code search combined with AI — the next evolution of grep for intelligent refactoring.
Interactive demo — edit the code and search
The best AI agents don’t replace classic tools — they master them.