Does a Language Server Save Tokens for Coding Agents? A Measurement Methodology and Preliminary Study
- Source
- arxiv.org
- Author
- Pengcheng Xu
- Date

Context
More precise code search does not automatically reduce a coding 's text-processing budget. A language server distinguishes code definitions and references, while ordinary text search also finds matching comments and strings. This preliminary study compares retrieval approaches by the needed to complete a task successfully.
In the tested Python and TypeScript repositories, language-server retrieval used more tokens when locating named symbols. Reference-finding benefited from precision without consistent token savings. Some rename tasks also required changing comments and strings that semantic references excluded. The results support choosing retrieval by task and model capability, rather than assuming semantic search is always cheaper.
articleDo Dynamic Languages Really Save Coding Agent Tokens?danluu.com
articleNot All Tokens Are Equal: Inflation-Aware Routing for Agentic LLM SystemsHeming Fu, Shan Lin, Qianqian Xie, Guojun Xiong
articleAgentScript-Eval: Benchmarking LLMs and Agents for Code Generation in an Enterprise DSLDipin Khati, Shubham Mehrotra, Bin Bi, Zhou Yu, Denys Poshyvanyk, James Zhu, Sitaram Asur, Phil L. Mui
Checking sign-in…
Loading comments…