Give the Agent a Language Server, Not Just grep: Jump to the Exact Symbol Instead of Reading Five Files

~1/3 fewer tool-output tokens on large/multi-language repos, plus exact reference counts vs grep's miscounts (self-reported benchmark) Advanced 5 min read

A coding agent with only grep answers 'where is this used?' with a text superset — the definition, real calls, comments, string matches, and same-named symbols — then reads whole files to disambiguate, re-billing them every turn. Wire the project's language server (LSP) in as a tool so find-references, go-to-definition, and hover return exact, type-resolved locations instead, cutting the disambiguating reads and the wrong-edit retries that come from a miscount.

🔒 Pro tip · Advanced

Unlock this tip — and 140 more

This is one of 141 advanced, fact-checked tactics reserved for Pro. Get the full 163-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.