ES version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
88% Positive
Analyzed from 1593 words in the discussion.
Trending Topics
#grep#search#code#tools#agent#claude#tool#better#https#more

Discussion (50 Comments)Read Original on HackerNews
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 :)
1- https://arxiv.org/abs/2605.05242
This is such a strange train of thought. How do did you get there?
Incentives to make things findable is more important to search than any technology.
so if i just index and search then i can stop writing like that?
It's best not to use Microsoft products.
> 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.
grep’s design is surprisingly winning, exceeding expectations to this day.
pretty fast and neat project to search code interactively with a lot of optimizations on finding the right thing
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.
https://github.com/Genivia/ugrep#aliases
Claude Code may ship with ugrep already.
It depends on if it is using Grep the harness tool or Grep from the bash tool
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 . . .
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.
- regex (grep) - hybrid search (bm25+vector)
this X vs Y is uninteresting when the answer can be both.
https://github.com/tobi/qmd
I agree it's very frustrating to use with custom tools/harnesses that can speed up the process for domain specific purposes.
What do you mean by this? Do you mean not automatically build the index?
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...
> 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.
Edit: looks like you’re in London, too. Hit me up and let’s connect. My details are in the bio!
I'm currently working on a markdown kb / search tool for my agents, in part built on TS