Is Grep All You Need? How Agent Harnesses Reshape Agentic Search
- AI
- Developer Tools
- Search
- Programming
The paper argues that in agentic retrieval, cheap literal search can beat more elaborate semantic pipelines once you put it inside an iterative tool-using loop. Instead of asking whether vector search is intrinsically better, it evaluates how an agent actually searches a corpus over multiple steps and reports that grep-style retrieval often comes out ahead. That is a useful corrective to one-shot RAG assumptions, but the comments land on a narrower conclusion than the title. The benchmark is LongMemEval, which is about recovering facts from long conversations across sessions, not searching code. Several people point out that this setup rewards exact witnesses like names, dates, counts, and preferences, so it is already tilted toward literal matching. The stronger read is not "grep is all you need" but "iterative retrieval plus a harness tuned for the domain can make simple tools look surprisingly good."
If you are building agent search, test the whole harness rather than swapping retrieval components in isolation. Expose multiple search tools, structure your data so exact matches are easy to recover, and benchmark on tasks that look like your real workload instead of taking a grep-friendly paper at face value.
-
arxiv.org
- Discuss on HN