What to Cut? Predicting Unnecessary Methods in Agentic Code Generation
Kan Watanabe, Tatsuya Shirai, Yutaro Kashiwa, Hajimu Iida

TL;DR
This paper introduces a prediction model to identify code functions likely to be deleted during pull request reviews, aiming to help reviewers focus on essential code and improve review efficiency.
Contribution
It presents the first predictive approach to identify code likely to be removed during review, with a model achieving an AUC of 87.1%.
Findings
Functions deleted for different reasons have distinct features.
The model achieves an AUC of 87.1%.
Predictive methods can assist reviewers in prioritizing code review efforts.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Testing and Debugging Techniques · Software Engineering Techniques and Practices
