Execution Feedback for LLM-based Coding Agents:Acquiring, Trusting, and Using Runtime Signalsfor Debugging and Performance Optimization
The Hong Kong University of Science and Technology (Guangzhou)
Data Science and Analytics Thrust
PhD Qualifying Examination
By Mr. WANG, Xin
Abstract
Large language model (LLM) based coding agents increasingly debug and optimize real software. Both tasks are difficult to solve from source code alone, because the causes of failures and slowdowns are revealed only when the program runs. As a result, recent approaches close the loop between generation and execution: they run tests, inspect variable states, insert logging statements, attach debuggers and profilers, and measure performance, and then feed these runtime signals back to the model.
This survey reviews execution feedback for LLM-based coding agents through a unified framework built on the execution-feedback loop and three questions: how agents acquire runtime signals, whether those signals can be trusted, and how they are used for debugging and performance optimization. I propose a five-dimensional taxonomy covering signal type, acquisition, trust handling, use, and task granularity, and apply it to representative approaches from function-level self-debugging to repository-level and production-scale optimization agents. The survey connects this LLM-era work with the logging and performance-engineering literature that supplies its signals, and analyzes benchmarks and evaluation practice.
The review shows a clear shift toward actively acquired, fine-grained signals, but also that trustworthiness is largely overlooked: logging code can be defective or insecure, performance measurements can be dominated by environmental noise, and models can misinterpret correct signals. Recent audits of performance-optimization benchmarks illustrate the consequences. Finally, the survey outlines open challenges, including budgeted observation, calibrated performance feedback, feedback-quality-aware agents, secure runtime observation, and utility-based evaluation.
Keywords: large language models; coding agents; execution feedback; debugging; logging; performance optimization; performance measurement.
PQE Committee
Chair: Prof. TANG, Nan (onsite)
Prime Supervisor: Prof. DING, Zishuo (onsite)
Co-Supervisor: Prof. WANG, Wei(onsite)
Examiner: Prof. XIE, Zeke (onsite)
Date
09 December 2026
Time
11:00:00 - 12:00:00
Location
E3-201, HKUST (GZ)
Event Organizer
Data Science and Analytics Thrust
dsarpg@hkust-gz.edu.cn