paper-with-me

Papers

Refactoring Codebases through Library Design

2025-05-26 · Ziga Kovacic, Celine Lee, Justin Chiu, Wenting Zhao, Kevin Ellis

Maintainable and general software allows developers to build robust applications efficiently, yet achieving these qualities often requires refactoring specialized solutions into reusable components. This challenge becomes particularly relevant as code agents become increasingly accurate at solving isolated programming problems. We investigate code agents' capacity to refactor code in ways supporting growth and reusability. We present both a method and a benchmark for refactoring: Librarian, a sample-and-rerank method for generating reusable libraries, and Minicode, a benchmark where code agents must minimize and refactor multiple independent solutions into a joint library. Compared to state-of-the-art code agents, Librarian achieves strong results on both compression and correctness on Minicode, obtaining compression rates 1.6-2x better than coding agents while also improving correctness. We open-source our code and benchmark at https://code-refactor.github.io/.

📄 PDF Abstract BibTeX arXiv:2506.11058

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

CodeTaste: Can LLMs Generate Human-Level Code Refactorings?

2026-03-04 · Alex Thillen, Niels Mündler, Veselin Raychev, Martin Vechev arxiv

LLM coding agents can generate working code, but their solutions often accumulate complexity, duplication, and architectural debt. Human developers address such issues through refactoring: behavior-preserving program tra…

Teaching Code Refactoring Using LLMs

2025-08-12 · Anshul Khairnar, Aarya Rajoju, Edward F. Gehringer arxiv

This Innovative Practice full paper explores how Large Language Models (LLMs) can enhance the teaching of code refactoring in software engineering courses through real-time, context-aware feedback. Refactoring improves c…

Trust Calibration in IDEs: Paving the Way for Widespread Adoption of AI Refactoring

2024-12-20 · Markus Borg

In the software industry, the drive to add new features often overshadows the need to improve existing code. Large Language Models (LLMs) offer a new approach to improving codebases at an unprecedented scale through AI-a…

Position

How We Refactor and How We Document it? On the Use of Supervised Machine Learning Algorithms to Classify Refactoring Documentation

2020-10-26 · Eman Abdullah AlOmar, Anthony Peruma, Mohamed Wiem Mkaouer, Christian Newman 외

Refactoring is the art of improving the design of a system without altering its external behavior. Refactoring has become a well established and disciplined software engineering practice that has attracted a significant …

LLM-Based Design Pattern Detection

2025-02-25 · Christian Schindler, Andreas Rausch

Detecting design pattern instances in unfamiliar codebases remains a challenging yet essential task for improving software quality and maintainability. Traditional static analysis tools often struggle with the complexity…