Reinforcement Learning from Compiler and Language Server Feedback
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Coding agents fail when text-level guesses outrun program facts: they hallucinate APIs, drift to the wrong symbol, and apply edits without evidence that the workspace remains valid. Compilers, type checkers, and language servers already compute the missing supervision signal, in the form of diagnostics, symbol resolution, type information, references, and refactoring preconditions, but expose it through interfaces designed for human-driven IDEs rather than learning loops. We introduce Reinforcement Learning from Compiler and Language Server Feedback (RLCSF) together with Lanser-CLI, a CLI-first orchestration layer that exposes this signal to agents and CI. RLCSF treats each tool interaction as a transition and computes a shaped process reward from deterministic changes in diagnostics, selector confidence, and edit safety. Lanser-CLI, in turn, converts ephemeral LSP sessions into replayable Analysis Bundles with pinned environment metadata and stable content hashes. Its core mechanisms are robust selectors that go beyond file:line:col, deterministic bundle normalization, preview-first guarded mutations, and a reward functional whose potential-based component is replayable under frozen snapshots. We formalize determinism for canonical bundles and prove that componentwise-improving transitions receive non-negative reward in the undiscounted setting. Together, these pieces yield a practical substrate for process supervision of coding agents.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 5 of its 15 references that are in the map. First posted on arXiv 27 Oct 2025.
Builds on
5 of 15 references.
References · 5
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2022PAL: Program-aided Language Modelscited by 635
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Learning CLI Agents with Structured Action Credit under Selective Observation
- 2025Compiler-R1: Towards Agentic Compiler Auto-tuning with Reinforcement Learning
- 2026Cross-Benchmark Transfer from RL on Agentic Coding Tasks
- 2026CodeScout: An Effective Recipe for Reinforcement Learning of Code Search Agents
- 2026CodeMidas: Scaling Agentic Coding RL Environments from Code Itself
- 2026SWE-Shepherd: Advancing PRMs for Reinforcing Code Agents
- 2026Feedback-Normalized Developer Memory for Reinforcement-Learning Coding Agents: A Safety-Gated MCP Architecture
- 2026Opera: A Verbal Critic Framework for Long-horizon Coding Agents