Skip to content
NewA calmer, faster ZeroHour

RepoClean finds coding agents resolve only 23% of cleanup tasks

Original title: RepoClean: Evaluating Coding Agents on Repository-Level Obsolete Code Cleanup

arXiv cs.AI / cs.LG / cs.CLby Hongyixuan Yuan ()1 min read1 · 1 read
AI summary · x-ai/grok-4.7Summaries by Vani AI

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.

Key facts
  • 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.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at arxiv.org

Large 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.

arXiv cs.AI / cs.LG / cs.CL

By Hongyixuan Yuan · arxiv.org

Read the full article at arXiv cs.AI / cs.LG / cs.CL

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.