When AI agents started assisting developers with code, many expected a leap beyond primitive tools. Instead, these agentic coding tools are finding themselves relying on decades-old technology, most notably grep. This reliance highlights a critical gap: the need for advanced search capabilities tailored to AI workflows, a challenge detailed in a recent Cursor Blog post.
For years, developer tools evolved from simple text search utilities like grep to sophisticated Language Server Protocols (LSP) that parse code syntactically. However, the advent of agentic AI has circled back to the basics, with agents frequently employing regular expressions for context gathering. While semantic indexing offers broad improvements, specific queries demand the precision of regex. This has led tools like Cursor to revisit and optimize foundational search algorithms.
The default choice for many agent harnesses, including Cursor's, is ripgrep. Developed by Andrew Gallant, ripgrep offers a faster, more sensible alternative to traditional grep. Its performance is legendary, but it still faces a significant bottleneck: it must scan every file. For developers working with massive monorepos, this can translate to search times exceeding 15 seconds, disrupting the interactive coding experience with AI assistants.
