RepoClean finds coding agents resolve only 23% of cleanup tasks
Original title: RepoClean: Evaluating Coding Agents on Repository-Level Obsolete Code Cleanup
The benchmark has 200 tasks from 34 Python repositories; agents also delete less obsolete code unless cleanup is requested.
Researchers introduce RepoClean, a benchmark of 200 repository-level obsolete-code cleanup tasks drawn from 34 popular open-source Python repositories. Tasks reinsert deleted historical code into newer versions while keeping current implementations and cases where previously passing tests then fail. Across seven models, the best, GPT-6 Astra, resolves only 23% of tasks. Agents remove substantially less obsolete code when cleanup is not explicitly requested.
Unconfirmed: The 23% figure and model ranking are the authors' reported evaluation results.
- Tasks come from real repository histories, not synthetic edits.
- Agents must preserve current implementations and restore failing tests.
- Cleanup is evaluated without asking agents to add new features.
- Performance drops when cleanup is not an explicit request.
From the original article
1 min read at arxiv.orgLarge language model (LLM) agents have demonstrated strong repository-level programming capabilities. However, as software evolves, repository code may become redundant or obsolete, increasing maintenance costs and potentially introducing functional issues. Agents must therefore identify and remove unnecessary code safely, yet autonomous repository-level code cleanup remains insufficiently evaluated in isolation.
By Hongyixuan Yuan · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.