Grep beats LSP? Why coding agents ignore your fancier tools
agentconnect.md
Grep beats LSP? Why coding agents ignore your fancier tools
1–10 of 79 posts
Re: Grep beats LSP? Why coding agents ignore your fancier tools
#2What'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.
Re: Grep beats LSP? Why coding agents ignore your fancier tools
#3There’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
Re: Grep beats LSP? Why coding agents ignore your fancier tools
#4Tangental, 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 mon…
Re: Grep beats LSP? Why coding agents ignore your fancier tools
#5LSP 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.
Re: Grep beats LSP? Why coding agents ignore your fancier tools
#6Tangental, 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 mon…
I feel like a very large percentage of my Claude usage ends up having it automate configuration shit, because historically that has been the part of software engineering I have always hated.
Re: Grep beats LSP? Why coding agents ignore your fancier tools
#7Just painful to read.
Re: Grep beats LSP? Why coding agents ignore your fancier tools
#8We’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.
Re: Grep beats LSP? Why coding agents ignore your fancier tools
#9Re: Grep beats LSP? Why coding agents ignore your fancier tools
#10This 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 ma…
that's also my doubt, it's much easier to train with grep while only a fraction of project can setup LSP properly.