Search papers, labs, and topics across Lattice.
This paper addresses the problem of unnecessary code generated by agentic coding tools, which increases the burden on code reviewers. They propose a prediction model to identify functions likely to be deleted during pull request review, aiming to help reviewers prioritize their efforts. The model achieves an AUC of 87.1% in predicting which functions will be deleted, demonstrating the feasibility of using predictive approaches to improve code review efficiency.
Save your reviewers' time: a model can predict with 87% accuracy which AI-generated functions will be deleted during code review.
Agentic Coding, powered by autonomous agents such as GitHub Copilot and Cursor, enables developers to generate code, tests, and pull requests from natural language instructions alone. While this accelerates implementation, it produces larger volumes of code per pull request, shifting the burden from implementers to reviewers. In practice, a notable portion of AI-generated code is eventually deleted during review, yet reviewers must still examine such code before deciding to remove it. No prior work has explored methods to help reviewers efficiently identify code that will be removed.In this paper, we propose a prediction model that identifies functions likely to be deleted during PR review. Our results show that functions deleted for different reasons exhibit distinct characteristics, and our model achieves an AUC of 87.1%. These findings suggest that predictive approaches can help reviewers prioritize their efforts on essential code.