Hacker News
Grep beats LSP? Why coding agents ignore your fancier tools
The study compared lexical grep search with LSP-backed semantic navigation across three Claude models on Python and TypeScript codebases, measuring token usage only for successful runs. Agents chose grep on simple location tasks (0-6% semantic use) and achieved higher precision with LSP on reference-completeness tasks, though recall and token savings depended on repository noise rather than type safety.