Skip to main content
CenXiv.org
This website is in trial operation, support us!
We gratefully acknowledge support from all contributors.
Contribute
Donate
cenxiv logo > cs > arXiv:2510.22907

Help | Advanced Search

Computer Science > Computation and Language

arXiv:2510.22907 (cs)
[Submitted on 27 Oct 2025 ]

Title: Language Server CLI Empowers Language Agents with Process Rewards

Title: 语言服务器CLI通过过程奖励增强语言代理

Authors:Yifan Zhang, Lanser Contributors
Abstract: Large language models routinely hallucinate APIs and mislocalize edits, while language servers compute verified, IDE-grade facts about real code. We present Lanser-CLI, a CLI-first orchestration layer that pins and mediates a Language Server Protocol (LSP) server for coding agents and CI, exposing deterministic, replayable workflows. Our position is that language servers provide not only structural information (definitions, references, types, diagnostics) but also an actionable process reward: machine-checked, step-wise signals that align an agent's planning loop with program reality. In this work, Lanser-CLI contributes: (i) a robust addressing scheme beyond brittle "file:line:col" via a Selector DSL (symbolic, AST-path, and content-anchored selectors) with a principled relocation algorithm; (ii) deterministic Analysis Bundles that normalize Language Server responses and capture environment/capability metadata with stable content hashes; (iii) a safety envelope for mutating operations (rename, code actions) with preview, workspace jails, and Git-aware, transactional apply; and (iv) a process-reward functional derived from Language Server facts (diagnostic deltas, disambiguation confidence, and safe-apply checks) that is computable online and replayable offline. We formalize determinism under frozen snapshots and establish a monotonicity property for the process reward, making it suitable for process supervision and counterfactual analysis. Project Page: https://github.com/yifanzhang-pro/lanser-cli
Abstract: 大型语言模型经常错误地生成API并错误地定位编辑,而语言服务器则计算关于真实代码的经过验证的、符合IDE级别的事实。 我们提出Lanser-CLI,这是一个以CLI为主的编排层,用于为编码代理和CI固定和中介语言服务器协议(LSP)服务器,暴露确定性的、可重放的工作流程。 我们的观点是,语言服务器不仅提供结构信息(定义、引用、类型、诊断),还提供一个可操作的过程奖励:机器检查的、逐步的信号,使代理的规划循环与程序现实对齐。 在这项工作中,Lanser-CLI做出了以下贡献:(i)一种超越脆弱的“file:line:col”的强大寻址方案,通过Selector DSL(符号、AST路径和内容锚定选择器)以及有原则的重新定位算法;(ii)确定性的分析包,它们规范化语言服务器响应,并使用稳定的内容哈希捕获环境/能力元数据;(iii)对变异操作(重命名、代码操作)的安全封装,包括预览、工作区沙箱和Git感知的、事务性应用;以及(iv)从语言服务器事实(诊断差异、消歧置信度和安全应用检查)中派生的过程奖励功能,可以在在线计算并在离线重放。 我们形式化了在冻结快照下的确定性,并建立了过程奖励的单调性属性,使其适用于过程监督和反事实分析。 项目页面:https://github.com/yifanzhang-pro/lanser-cli
Comments: Project Page: https://github.com/yifanzhang-pro/lanser-cli
Subjects: Computation and Language (cs.CL) ; Artificial Intelligence (cs.AI); Programming Languages (cs.PL); Software Engineering (cs.SE)
Cite as: arXiv:2510.22907 [cs.CL]
  (or arXiv:2510.22907v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2510.22907
arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Yifan Zhang [view email]
[v1] Mon, 27 Oct 2025 01:25:20 UTC (50 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled
  • View Chinese PDF
  • View PDF
  • HTML (experimental)
  • TeX Source
view license
Current browse context:
cs.CL
< prev   |   next >
new | recent | 2025-10
Change to browse by:
cs
cs.AI
cs.PL
cs.SE

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack

京ICP备2025123034号