RepoClean: Evaluating Coding Agents on Repository-Level Obsolete Code Cleanup
The best-performing model solved just 23% of tasks requiring agents to remove obsolete code safely.
RepoClean contains 200 cleanup tasks drawn from 34 open-source Python repositories. The benchmark reintroduces previously deleted code into newer versions, keeping cases where the additions break previously passing tests. Agents must identify what to remove while preserving current implementations and restoring functionality. Across seven models, GPT-6 Astra performed best; agents also removed substantially less obsolete code when cleanup was not explicitly requested.
ArXiv · AI/CL/LG's note
RepoClean contains 200 cleanup tasks drawn from 34 open-source Python repositories. The benchmark reintroduces previously deleted code into newer versions, keeping cases where the additions break previously passing tests. Agents must identify what to remove while preserving current implementations and restoring functionality. Across seven models, GPT-6 Astra performed best; agents also removed substantially less obsolete code when cleanup was not explicitly requested.
ArXiv · AI/CL/LG's note
score 5