Live data from Hacker News

Is grep all you need? How agent harnesses reshape agentic search

arxiv.org

51–60 of 73 posts

Re: Is grep all you need? How agent harnesses reshape agentic search

#51

It seems ridiculous that, for example, Copilot running in Visual Studio working on a C# codebase finds stuff in code by grepping around instead of using the Roslyn-driven code symbol and semantic database built into Visual Studio. I'm guessing it's because the people they get to work on AI stuff are AI People who probably only write in Python

There's a lot more examples of grep usage than Visual code search in the training set.

Re: Is grep all you need? How agent harnesses reshape agentic search

#52

Earlier quoted context omitted.

> If you think grep is great, it’s because you’ve been social engineered to organize your content to be findable. ... This is such a strange train of thought. How do did you get there?

I'm not literally saying you were social engineered. I'm saying all the incentives are there for you to organize your content. Incentives to make things findable is more important to search than any technology.

I read that as, "you've learned to insert weird entropy meta-breadcrumbs just for finding"

so if i just index and search then i can stop writing like that?

Re: Is grep all you need? How agent harnesses reshape agentic search

#53

It seems ridiculous that, for example, Copilot running in Visual Studio working on a C# codebase finds stuff in code by grepping around instead of using the Roslyn-driven code symbol and semantic database built into Visual Studio. I'm guessing it's because the people they get to work on AI stuff are AI People who probably only write in Python

It is sort of funny when Copilot hasn’t been integrated with Microsoft’s stuff. But it does make some sense from a business point of view. Make it work with grep, it works everywhere.

Microsoft was mostly on the Embrace step. They've reached the Extend step with Copilot. They'll eventually Extinguish grep.

It's best not to use Microsoft products.

Re: Is grep all you need? How agent harnesses reshape agentic search

#54

Earlier quoted context omitted.

It is sort of funny when Copilot hasn’t been integrated with Microsoft’s stuff. But it does make some sense from a business point of view. Make it work with grep, it works everywhere.

Microsoft was mostly on the Embrace step. They've reached the Extend step with Copilot. They'll eventually Extinguish grep. It's best not to use Microsoft products.

What does this even mean, how do you extinguish grep

Re: Is grep all you need? How agent harnesses reshape agentic search

#56

In my research grep is fine if you don’t care about tokens and you have less than 100k files. The direct corpus interaction paper [1] shows a breakdown past this level. In my personal experience you get a bit better relevance than a BM25 search engine with grep plus an agent. But it requires you to eat tokens. If you think grep is great, it’s because you’ve been social engineered to organize your content to be findab…

> If you think grep is great, it’s because you’ve been social engineered to organize your content to be findable. ... This is such a strange train of thought. How do did you get there?

Long before AI I remember asking people in code review to add comments specifically to make the code grep-able. Same for for privileging key value mapping to dynamic string concatenation.

Re: Is grep all you need? How agent harnesses reshape agentic search

#57

Earlier quoted context omitted.

That assumes that the agent knows which one is better. And to bake in which one is better via post-training would require a study like this to establish where each one works well

I’ve got a custom ultra high performance streaming semantic search I exposed as a tool and the RL bias in Claude is almost insurmountable without copious and consistent steering. Codex will follow instructions and use the tools I ask it to but for gods sake between Claude asking to take a nap because it’s getting late in the session and it regressing to RL biased tools like grep it’s maddening. When I can get it to u…

Anthropic is, I believe, fully pursuing the idea that you shouldn't use their model with anything but their own products. They don't care whether it generalizes.

I agree it's very frustrating to use with custom tools/harnesses that can speed up the process for domain specific purposes.

Re: Is grep all you need? How agent harnesses reshape agentic search

#58

In my research grep is fine if you don’t care about tokens and you have less than 100k files. The direct corpus interaction paper [1] shows a breakdown past this level. In my personal experience you get a bit better relevance than a BM25 search engine with grep plus an agent. But it requires you to eat tokens. If you think grep is great, it’s because you’ve been social engineered to organize your content to be findab…

The social engineering thing runs deep. For example, if you grep for “Key” method, chances are the type/class name would stand on the same line. This is the case in Go and, I think, in many other programming languages (ironically, not C).

Lines are a fundamental building block of text and it’s not unreasonable to optimize them.

)

Re: Is grep all you need? How agent harnesses reshape agentic search

#59
From the article:

> 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...

Re: Is grep all you need? How agent harnesses reshape agentic search

#60

I have always used traditional grep to search codebases. It serves me better than an IDE when there’re lots of scattered and frequent queries. grep’s design is surprisingly winning, exceeding expectations to this day.

you might be interested in https://github.com/boyter/cs pretty fast and neat project to search code interactively with a lot of optimizations on finding the right thing

Came here to post than and you already did. Thank you!
Post reply on HN