Is Grep All You Need? How Agent Harnesses Reshape Agentic Search
Posted by Anon84 10 hours ago
Comments
Comment by softwaredoug 5 hours ago
If you think grep is great, it’s because you’ve been social engineered to organize your content to be findable. We document why something is useful to an agent. We put it in a logical place.
Just organizing content is at least half of building search, agentic or not. It’s one reason Google is successful, we’re all trying to make our content findable by the search engine. It’s not all technology :)
Comment by piekvorst 1 hour ago
Lines are a fundamental building block of text and it’s not unreasonable to optimize them.
)
Comment by cpburns2009 4 hours ago
This is such a strange train of thought. How do did you get there?
Comment by softwaredoug 4 hours ago
Incentives to make things findable is more important to search than any technology.
Comment by nh23423fefe 2 hours ago
so if i just index and search then i can stop writing like that?
Comment by allan_s 1 hour ago
Comment by contextfree 5 hours ago
Comment by SkitterKherpi 2 hours ago
Comment by bee_rider 4 hours ago
Comment by inetknght 2 hours ago
It's best not to use Microsoft products.
Comment by contextfree 1 hour ago
Comment by quinncom 7 hours ago
> We evaluate on a 116-question representative subset of the LongMemEval benchmark (Wu et al., 2025), which tests an agent’s ability to answer questions over long conversations spanning multiple sessions.
Comment by schipperai 5 hours ago
Comment by alexrigler 7 hours ago
Comment by piekvorst 7 hours ago
grep’s design is surprisingly winning, exceeding expectations to this day.
Comment by weaksauce 6 hours ago
pretty fast and neat project to search code interactively with a lot of optimizations on finding the right thing
Comment by hmokiguess 8 hours ago
Comment by sdesol 8 hours ago
https://github.com/gitsense/gsc-cli
`gsc grep` is just an alias for `gsc rg`, mostly because agents are much more likely to reach for “grep” than “rg”.
It works pretty well, but it is not a perfect drop-in replacement. `grep` and `ripgrep` differ in a few details, especially around glob/wildcard behaviour and flags. What I found works is to not use `grep` in search examples, and have the CLI spit out an error message for the AI saying this is `ripgrep`, so it needs to use `ripgrep` syntax.
Comment by celrod 8 hours ago
https://github.com/Genivia/ugrep#aliases
Claude Code may ship with ugrep already.
Comment by verdverm 8 hours ago
It depends on if it is using Grep the harness tool or Grep from the bash tool
Comment by hmokiguess 8 hours ago
Comment by joelfried 8 hours ago
If you'd told me a decade ago I'd finally learn some sed in 26 because I'd want to understand what the AI was doing I'd have told you you were crazy . . .
Comment by Analemma_ 7 hours ago
Comment by cyanydeez 7 hours ago
Comment by gbacon 8 hours ago
Comment by sdesol 7 hours ago
Comment by yetanotherjosh 53 minutes ago
> LongMemEval rewards recovering literal witnesses: exact dates, counts, preferences, and spans that often remain stable under tokenization.
Is this saying they chose a benchmark that is biased towards doing well against literal string matching, thus works well with grep, and then (gasp) showed that grep did well, finally declaring "grep is all you need"?
The examples in the benchmark's demo image(1) are all examples you could see grep doing well on. A conversation about bikes, then a query about bike(s) where "bike" is a common token hit. But not stuff like a conversation about a Beethoven sonata, then a question about classical music, where embedding based approach would shine.
(1) https://github.com/xiaowu0162/LongMemEval/blob/main/assets/l...
Comment by SkyPuncher 5 hours ago
So far every Grep vs RAG discussion I've seen conflates overlapping factors. The most common is simply that a company rebuilt their pipeline from scratch and fixed a bunch of problems. The worst is when they go from one-shot RAG to multi-step Grep and completely miss the fact that multi-step RAG would likely get them similar results.
At the end of the day, the most important thing is knowing the _product features_ your users care about and making sure that's represented in the pipeline.
Comment by ako 4 hours ago
Comment by krzyk 4 hours ago
Comment by jeffchuber 8 hours ago
- regex (grep) - hybrid search (bm25+vector)
this X vs Y is uninteresting when the answer can be both.
Comment by bachittle 7 hours ago
Comment by budududuroiu 6 hours ago
Comment by pastel8739 7 hours ago
Comment by fnordpiglet 7 hours ago
Comment by mediaman 1 hour ago
I agree it's very frustrating to use with custom tools/harnesses that can speed up the process for domain specific purposes.
Comment by dominotw 7 hours ago
Comment by worthless-trash 8 hours ago
Comment by sdesol 7 hours ago
What do you mean by this? Do you mean not automatically build the index?
Comment by worthless-trash 7 hours ago
Comment by worthless-trash 7 hours ago
Comment by piker 8 hours ago
I wrote about it[1] and came away with a different view on both Palantir and the future of agentic workflows personally.
[1] sorry, LinkedIn: https://www.linkedin.com/pulse/fund-managements-killer-app-d...
Comment by darkteflon 5 hours ago
> But it would make no sense to have an LLM regurgitate an existing form document token-by-token rather than call a piece of 1994 software like Hotdocs to populate some placeholders.
This is a real “oof”, isn’t it. Very difficult to understand what they were going for here. Perhaps they just assumed no one in the intended audience would pick it up. But it certainly is enough of a red flag that it made me go back to the top of your write-up for a re-read, thinking about their whole pipeline in much more sceptical terms.
Comment by piker 5 hours ago
Edit: looks like you’re in London, too. Hit me up and let’s connect. My details are in the bio!
Comment by stephantul 6 hours ago
Comment by _pdp_ 1 hour ago
Comment by liminal 7 hours ago
Comment by yodon 8 hours ago
Comment by verdverm 8 hours ago
I'm currently working on a markdown kb / search tool for my agents, in part built on TS
Comment by kwillets 8 hours ago
Comment by sys_64738 8 hours ago
Comment by greenavocado 7 hours ago
Comment by nibbleyou 6 hours ago
Comment by KaiShips 5 hours ago
Comment by tailor_gunjan93 6 hours ago
Comment by sdesol 8 hours ago
Comment by gauravvij137 6 hours ago
Comment by wseadowntown 8 hours ago