What to Cut? Predicting Unnecessary Methods in Agentic Code Generation

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Watanabe, Kan, Shirai, Tatsuya, Kashiwa, Yutaro, Iida, Hajimu
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912912918970368
author Watanabe, Kan
Shirai, Tatsuya
Kashiwa, Yutaro
Iida, Hajimu
author_facet Watanabe, Kan
Shirai, Tatsuya
Kashiwa, Yutaro
Iida, Hajimu
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2602_17091
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle What to Cut? Predicting Unnecessary Methods in Agentic Code Generation
Watanabe, Kan
Shirai, Tatsuya
Kashiwa, Yutaro
Iida, Hajimu
Software Engineering
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.
title What to Cut? Predicting Unnecessary Methods in Agentic Code Generation
topic Software Engineering
url https://arxiv.org/abs/2602.17091