Grep beats LSP? Why coding agents ignore your fancier tools
kaonashi-tyc-01
48 points
23 comments
September 04, 2026
Related Discussions
Found 5 related stories in 59.0ms across 5,468 title embeddings via pgvector HNSW
- Show HN: Open Bot – an open-source Grok Bot that works with any agent harness mikeryan52 · 12 pts · August 19, 2026 · 51% similar
- Show HN: Graft – Claude Code hooks that cut grep tokens by 42% shrishdwi · 39 pts · August 14, 2026 · 51% similar
- Show HN: Reverse-engineering web apps into agent tools pancomplex · 30 pts · July 09, 2026 · 48% similar
- Protobuf has LSP support. You're welcome theanonymousone · 137 pts · August 16, 2026 · 47% similar
- Grok 4.6 iLuddite · 486 pts · August 12, 2026 · 47% similar
Discussion Highlights (11 comments)
nomilk
Tangental, but my LSP config breaks every few months. I don't bother to fix it anymore, I open an LLM in ~/dotfiles and complain until it works again, usually in a few minutes. What's interesting is observing how much work this takes. (it gives me much more empathy toward my past self; how was a clumsy human supposed to know and reason about these things!?, especially when I hadn't touched the configs since a few months prior and had forgotten them almost entirely). Most often there's 10-20 very small programs all working together to give the desired experience. The amount of minutes and tokens required to solve these seemingly simple problems like "My LSP isn't working" is sometimes much more than expected.
wonnage
This article presents some evidence for why Grep might work better but I don’t think it does a great job of explaining why it gets chosen - is it something that was intentionally reinforced during training or was it just because LSP is harder to train on because it’s usually hidden behind some IDE interface There’s no reason why you couldn’t write a search tool that e.g combines LSP and grep. Or ast-grep, for that matter. It feels like one of those things we haven’t spent much time investigating because grep is good enough
brunoborges
What has worked well for me is to have a SKILL that instructs to use the LSP more often than not. LSP works best when using dependencies that are already compiled locally, but if all source is available, yeah... I still don't have a solid answer on which one is best. But again, for already compiled dependencies (think Java bytecode), without LSP configs, the agent is likely going to attempt to extract binaries from JAR files, use grep and javap, and potentially attempt to decompile the .class files.
nxc18
It is astonishing how easy it is to see the AI hand at work in the writing. Really, it is almost impossible not to see. I don’t get how these people feel it is appropriate to pass off slop like this and not even bother to edit it. Just painful to read.
tonyarkles
There’s been an interesting co-evolution that I’ve been experiencing with Claude Code. I’ll ask it to do a task, I’ll watch what it’s doing (often lots of find and grep and ripgrep) and then after the task is complete I’ll ask it if there are any tools that would’ve made the job easier. This has led to tools like fzf and others (notmuch for indexing email, for example). I’ve then taken those tools and figured out how to work them into my own workflow, both CLI and Emacs. We’ve also collaborated on some Python tooling that takes a rather slow data format that I often have to process and analyze, indexed the whole corpus, and for analysis I can do (or Claude Code can) a single-pass conversion to Parquet which is then queryable with DuckDB. That tool has dramatically improved my turnaround time on one-off analysis tasks and as a Python CLI tool using Typer, the interface is also nicely discoverable for LLM harnesses to work with.
monster_truck
This has not been my experience at all.
fithisux
I don't see why someone needs an LLM as an LSP when code is structured data.
farhanhubble
Just a few days ago I was pondering why an Emacs like environment that provides such powerful tools to examine and manipulate texts is not being used more prominently than say VSCode where you need to be build many features or use plugins or rely on system utilities.
polotics
At the end of the first paragraph there is this sentence: "Training support is a hypothesis consistent with these results, not something this study proves." I understand it, but I find the wording very unnatural. To improve readability I would have written it in the active form: "We cannot prove training explains this result, but this fits the data best."
x-complexity
Setting up an LSP relies on 2 requirements to properly work: (a) The LSP's tools being competently built & consistent, and (b) the LLM using it having been properly trained to use LSPs in general. Using a native tool like grep has the same 2 assumptions, but (a) is satisfied due to ossification of grep's core features (a good thing), and (b) is extra-satisfied because the LLM can be trained to properly use grep specifically, and not "20th variation of grep wrapped behind an LSP, but just different enough to throw curveballs". On top of that, grep is almost always present in default Linux environments, so its presence is assumed & can be relied upon when needed.
Glyptodon
TBH I frequently have a hard time getting Claude to use LSP at all. I'm not sure if it just breaks or what. It's like 10 items down on my list of random crap to figure out eventually.