Manuscript Offprint
arXiv:2610.33851Software Engineering LLMs: Why We Need Them and How Software Engineering Helps Build Them
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Amir M. Ebrahimi*, Mohammed Mehedi Hasan*, Seyed Shayan Daneshvar†, Jiahuei Lin†, Gopi Krishnan Rajbahadur*, Ahmed E. Hassan*
*Queen's University, Canada; †University of Manitoba, Canada
†Center for Software Excellence, Huawei Technologies, Canada
amir.ebrahimi@queensu.ca mohammedmehedi.hasan@queensu.ca daneshvs@myumanitoba.ca
jhlin@cs.queensu.ca grajbahadur@acm.org ahmed@cs.queensu.ca
Abstract—Software engineering (SE) expertise can shape how coding large language models (LLMs) are trained and which engineering capabilities they acquire. We examine this role through an industrial case study of capability-focused training for a 92B-parameter coding LLM serving more than 100,000 developers. We demonstrate how established SE knowledge can guide the selection of engineering capabilities, the construction of verifiable training data, and the evaluation of model improvements. To target repository-level refactoring, we developed RefactorForge, a pipeline that combines refactoring knowledge, established SE tools, and verification techniques to construct training data. Across 306 Python repositories, RefactorForge generated 5,704 executable tasks and retained 4,572 verified teacher trajectories totaling 72.51 million tokens. Incremental supervised fine-tuning on these trajectories, accounting for 0.46% of the preceding coding mixture's tokens, improved RefactorBench performance by 18.00 percentage points and SWE-Bench ProMax performance by 7.06 points. Under OpenCode, these improvements extended to SWE issue resolution, with gains of 4.97 points on SWE-Bench Verified and 1.23 points on SWE-Bench Pro. Improvements also persisted across other coding-agent harnesses, while greenfield repository generation showed mixed results. We report lessons from constructing capability-focused training data and evaluating its effects across engineering workloads. Building on this industrial experience, we propose a research agenda for expanding SE's role in transforming coding LLMs into SE LLMs: incorporating SE knowledge into model training, applying engineering methods to model development and maintenance, and systematically defining the engineering capabilities these models should acquire.
Index Terms—Software engineering for AI (SE4AI), large language models (LLMs), coding agents, software refactoring, supervised fine-tuning, synthetic data, software maintenance.
I. INTRODUCTION
Large language models (LLMs) and coding agents are reshaping software development in industry and open source. Google reports that AI generates 75% of its new code [1], while Robbes et al. [2] estimate coding-agent adoption at 22 to 29% across 128,018 GitHub projects. Frontier coding LLMs now score above 96% on SWE-Bench Verified: Claude Opus 5, DeepSeek V4 Pro, and GPT-5.6 Sol reach 97.0%, 96.4%, and 96.2%, respectively, under the same minimal agent harness [3].
Strong coding performance, however, does not guarantee the engineering capabilities required to maintain and evolve software. Whitfill et al. [4] found that automated benchmark

Fig. 1. Operation-level success rates of GPT-5.2 and GLM-5.1 across 13 RefactorBench categories. Aggregate success rates of 62% and 51% conceal substantial differences across individual operations.
scores exceeded estimated maintainer acceptance rates by 24.2 percentage points, but code quality and compatibility were reported concerns. Open-source evidence reveals problems after merge: across 182 repositories, Xia and Miller [5] found higher corrective-maintenance rates for agentic code and associated higher rates of unreviewed merges with greater maintenance burden. Software engineering requires more than completing difficult programming tasks. Engineers must preserve compatibility, manage dependencies, remove unnecessary code, and maintain systems as requirements evolve. Refactoring is one such software engineering capability that goes beyond code generation. Refactoring supports long-term maintainability by improving software structure while preserving behavior [6], [7]. Although developers increasingly delegate refactoring to coding agents, which pair coding LLMs with harnesses that supply tools and prompts [8], frontier coding LLMs perform unevenly across these operations. To examine this gap, we evaluated GPT-5.2 and GLM-5.1 on RefactorBench, which contains repository-level, multi-file refactoring tasks across 13 operation categories (see Section IV for the evaluation setup).
The models achieved overall success rates of 62% (GPT-5.2) and 51% (GLM-5.1), but both failed every Extract Class task. GPT-5.2 also failed every Move Class and Introduce Parameter Object (Figure 1). These results reveal that even highly capable coding LLMs struggle with established software engineering operations.
What coding LLMs learn depends on the training data developers can provide and the improvements they reward. Pretraining develops broad programming knowledge, while subsequent specialization and post-training strengthen selected capabilities through curated data and feedback. Rajbahadur et al. [9] describe post-training as programming with data: training examples act as instructions, their mixture forms the program, and the checkpoint is the compiled result. Repository histories and executable tests make issue resolution an attractive training target, as SWE-Gym and SWE-smith demonstrate [10], [11]. OpenAI, Anthropic, and Microsoft describe evaluation-driven development, where measured weaknesses guide subsequent improvements [12]–[14]. Under finite budgets, public leaderboard incentives can further steer training toward benchmark gains, which Chen et al. [15] call benchmarking. This practice raises three challenges. First (C1), data availability and evaluation priorities can leave gaps in verified training data needed to improve specific engineering capabilities and demonstrate those improvements [16]. Second (C2), benchmark-oriented gains do not consistently transfer to other coding tasks [17]. Third (C3), training trajectories encode harness-specific conventions, and improvements can diminish or reverse when the harness changes [18], [19]. These challenges highlight the limits of relying on readily available training data and benchmark gains to develop engineering competence systematically.
A coding LLM serving diverse engineering workloads needs capabilities that extend beyond the benchmarks and harnesses used to develop them. Our team maintains a coding LLM used by over 100,000 developers across diverse repositories, workflows, and systems that have evolved over decades (Section II). Developers access the coding LLM through different coding agents and rely on it to maintain existing software as well as implement new functionality. We therefore explored a complementary hypothesis, which we call capability-focused training: strengthening a foundational engineering capability can improve the related tasks and workflows that depend on it. We selected refactoring as an initial case because it exercises code localization, dependency reasoning, coordinated modification, and behavior preservation. The challenge was to construct reliable training data for these operations and determine whether the improvements transferred beyond the targeted tasks and training harness.
If post-training is programming with data, software engineering (SE) expertise should help write the program. Decades of SE research and practices have produced knowledge and tools for specifying, modifying, and verifying software. We argue that this knowledge should shape what coding LLMs learn, not merely evaluate their outputs or establish safeguards around them. Prior systems such as EM-Assist and RefactoringMirror combine LLMs with program analysis and IDE tools to support individual refactorings [20], [21]. RefactorForge applies established SE techniques to construct verifiable training data for improving the model itself, with refactoring as the organizing capability. Refactoring preconditions and program analysis identify eligible examples, PyCharm and Ruff construct reference transformations, and structural and regression tests that determine which teacher-generated trajectories qualify for training. Building this data presents challenges. For example, repository histories can intertwine refactorings with other changes, while LLM-generated transformations require independent verification. We therefore began with seven bounded, tool-verifiable refactoring types, predominantly re-names. We report the data construction process, empirical outcomes, and engineering lessons as an industrial case study rather than proposing a new training algorithm.
Our results indicate that SE-guided training data can improve a targeted engineering capability and transfer to related tasks that are not explicitly covered during training. RefactorForge constructed 5,704 executable tasks from 306 Python repositories and retained 4,572 verified trajectories. For C1, incremental fine-tuning of an existing 92B coding LLM on these trajectories, comprising 72.51 million tokens, i.e., 0.46% of its preceding coding mixture, improved performance by 18.00 percentage points on RefactorBench and 7.06 points on SWE-Bench ProMax. The gains extended to related SWE issue-resolution tasks (C2), with improvements of 4.97 points on SWE-Bench Verified and 1.23 points on SWE-Bench Pro. Although we collected the training trajectories using OpenCode, the fine-tuned coding LLM achieved higher average scores under all four evaluated harnesses (C3), including a statistically significant improvement under Mini-SWE-Agent on SWE-Bench Verified (p = 0.002). Transfer remained task-dependent: performance on greenfield repository generation improved under two harnesses but regressed under two others. These findings demonstrate the potential of training interventions focused on a bounded capability, while underscoring the challenges of consistent transfer across tasks and harnesses.
As coding LLMs increasingly contribute to software development, SE must shape how these models are developed. Debates over agentic and AI-native SE largely focus on how engineers will work with these systems [22], [23]. Our industrial case study demonstrates a complementary role: we used established SE knowledge to select engineering capabilities, construct verified training data, and evaluate model improvements. Building RefactorForge also revealed practical challenges, including losses during training-data construction, the constraints verification imposes on capability coverage, and the need to assess improvements and regressions across workloads and agent harnesses. Building on this experience, we call on the SE community to contribute directly to coding LLM training, develop engineering methods for model development and maintenance, and systematically define the capabilities these models should acquire, drawing on established knowledge in SWEBOK [24].
II. INDUSTRIAL BACKGROUND AND MOTIVATION
Maintaining and updating the coding LLM. The coding LLM evolves through post-training, which combines data targeting different capabilities into a shared training mixture. At this scale, post-training requires substantial computing resources and the allocation of a finite data budget across competing objectives. Full post-training runs therefore follow scheduled cycles rather than being conducted as individual research experiments. Industrial model-development reports describe the same constraint [9], [14]. Between cycles, research teams develop candidate training datasets and evaluate their effectiveness through incremental fine-tuning of an existing checkpoint. Before proposing these datasets for inclusion in the next post-training mixture, our team assesses the three challenges introduced in Section I: whether verified training data improves the targeted capability (C1), whether gains transfer to related tasks without unacceptable regressions in other capabilities (C2), and whether improvements persist across agent harnesses (C3). These criteria guide our evaluation in Section IV.
B. Motivating Study: Tool-Guided Refactoring Across Repositories
Motivation. A recent industrial report described substantial maintainability gains from tool-guided refactoring, achieved through considerable engineering effort. Tornhill [25] reported increasing the Code Health of a 300,000-line codebase from 5.6 to 10 with CodeScene, which assesses more than 25 maintainability factors on a scale from 1 to 10 [26]. The effort took three weeks, involved 2,903 commits, approximately US$4,000 in inference costs, an evolving project-specific refactoring playbook, and specialized behavioral verification. In our setting, we cannot build comparable guidance and verification infrastructure for every repository, nor commit such resources to each one. We therefore investigated whether a frontier coding agent could achieve meaningful improvements across repositories with a common refactoring procedure and a fixed budget, without project-specific skills or playbooks.
Approach. We selected five repositories from the DeepSWE long-horizon task set [27] to evaluate a common procedure across different codebases rather than a single customized environment. We ran Codex with GPT-5.6 Sol at xhigh reasoning effort. Guided by CodeScene feedback, the agent identified refactoring candidates, generated characterization tests when needed, and retained a change only when project tests passed and Code Health improved. The workflow ran autonomously under a budget of US$1,500 until no acceptable change remained or its allocated budget was exhausted.
Results. Three of the five runs exhausted their budgets before completing, despite substantial time and inference expenditure. Together, the runs consumed nearly 99 hours, 2.18 billion tokens, and US$1,500. The unfinished runs improved Code Health by 1.12% to 7.22%, corresponding to absolute gains of 0.10 to 0.50 points on the 10-point scale. Among the two completed runs, Aiomonitor improved by 5.86% (0.48 points). We observed a maximum absolute improvement of 1.76 Code Health points in Dateutil (3.88 to 5.64); although this represented a 45.36% relative gain, its final score remained below the other repositories' initial scores (Table I).
Our results suggest that tool-guided refactoring alone may yield limited improvements under our industrial constraints. Despite substantial agent effort, maintainability improvements were modest and uneven. Our shared coding LLM serves developers across heterogeneous repositories, where we cannot rely on open-ended agent budgets or repository-specific refactoring playbooks. Together with the uneven refactoring performance in Figure 1, these observations motivated us to investigate whether SE knowledge could strengthen the coding LLM's underlying refactoring capability through training. Section III presents RefactorForge, which constructs the verified training data needed to improve this capability.
III. REFACTORFORGE: FROM SE KNOWLEDGE TO VERIFIED TRAINING DATA
We constructed RefactorForge to leverage established SE knowledge to generate verified training data for improving the refactoring capability of our coding LLM. RefactorForge first constructs executable tasks from controlled refactoring transformations in real repositories. Each task has a known objective and independently verifiable outcome. A teacher coding agent then attempts each task without access to its reference patch or hidden grading tests. We retain trajectories only whose final solutions pass the specified checks. Each retained trajectory records the task instruction, tool calls, repository observations, and code edits. We then use these successful trajectories to train our coding LLM through supervised fine-tuning (SFT), as described in Section IV-A.
We drew on SE knowledge to guide how RefactorForge constructs and verifies tasks. Specifically, we used refactoring preconditions to identify eligible code, established engineering tools to construct reference transformations, and structural and behavioral checks to define acceptable solutions. Following the executable-task format established by SWE-Bench [28], RefactorForge uses fail-to-pass (F2P) tests that fail before the transformation and pass afterward, and pass-to-pass (P2P) tests that remain passing in both states. Figure 2 summarizes the twelve-step pipeline across four phases. We first explain how we selected refactoring types, then present the state of practice, SE-informed decision, and implementation for each phase.
TABLE I
CODESCENE-GUIDED REFACTORING ACROSS FIVE PROJECTS. CODE HEALTH GAINS REMAINED RELATIVELY MODEST DESPITE SUBSTANTIAL TIME AND MODEL COSTS. SIZE IS SMALL (<5K LOC), MEDIUM (5K–10K), OR LARGE (>10K). FINAL HEALTH IS THE SCORE OF THE REPOSITORY AFTER THE LAST ACCEPTED REFACTORING, AND IS THE RELATIVE CHANGE IN PERCENTAGE. ACC. AND REJ. ARE THE NUMBERS OF ACCEPTED AND REJECTED REFACTORING ITERATIONS. REFACTORING TIME IS THE AGENT'S TOTAL RUNTIME DURING THE REFACTORING PROCESS.
| Project | LOC | Size | Code Health | Iterations | Cost | Status | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Initial | Final | Δ (%) | Acc. | Rej. | Tokens (M) | USD | Time (h:min) | ||||
| Arktype | 32,617 | Large | 8.89 | 8.99 | 1.12 | 19 | 3 | 383.58 | 268.44 | 19:31 | Budget exhausted |
| Participle | 7,859 | Medium | 8.04 | 8.46 | 5.22 | 24 | 3 | 668.07 | 454.24 | 28:29 | Budget exhausted |
| ABS | 6,596 | Medium | 6.93 | 7.43 | 7.22 | 20 | 2 | 591.20 | 425.81 | 28:43 | Budget exhausted |
| Dateutil | 5,725 | Medium | 3.88 | 5.64 | 45.36 | 20 | 7 | 263.07 | 165.29 | 10:09 | Finished |
| Aiomonitor | 2,653 | Small | 8.19 | 8.67 | 5.86 | 10 | 0 | 274.72 | 186.22 | 12:01 | Finished |
| Total | 55,450 | — | — | — | — | 93 | 15 | 2,180.64 | 1,500.00 | 98:53 | — |

Fig. 2. Overview of RefactorForge's twelve-step pipeline.
A. Selecting Refactoring Types
We selected refactoring operations that require repository-level code changes and have explicitly verifiable outcomes. Each type specifies eligibility conditions and a structural objective that the pipeline can check, allowing us to construct targeted training tasks without relying on an LLM to define the correct transformation.
State of Practice. Existing coding-model training pipelines use several approaches to task construction. SWE-Gym and SWE-smith derive tasks from repository issues or synthetic faults [10], [11], while SWE-Flow uses test-driven development to construct incremental training tasks [29]. Refactoring-specific training focuses on individual operations: Palit and Sharma [30] train models for Java Extract Method, and RefBERT studies variable-name recommendations [31]. Our pipeline requires executable repository-level tasks across several refactoring types, including operations that coordinate changes to definitions and references across files.
SE-Informed Decision. We selected the Rename, Move, and Remove families based on empirical evidence about refac- toring practices and coding-model limitations. Murphy-Hill et al. [32] found that developers frequently rename program elements and perform move refactorings. Caivano et al. [33] documented persistent unused methods, while Ebrahimi et al. [34] found that coding LLMs can avoid deleting code even when the intended change requires removal. These operations provide explicit training targets while requiring agents to locate definitions, trace dependencies, and coordinate changes across files.
Implementation. RefactorForge supports seven types: Rename Function, Rename Class, Rename Constant, Rename Attribute, Move Function, Remove Unused Function, and Remove Unused Import. Table II lists their candidate code, structural F2P properties, and task counts. Our pilot targets correct execution of specified transformations rather than judging whether a refactoring improves software design. We therefore limit coverage to operations that established tools can apply and our checks can verify. Renames account for 96.4% of generated tasks.
B. Preparing Reproducible Repository Environments (Phase I)
We prepared reproducible repository environments and established behavioral baselines for subsequent refactoring task construction and verification. Each transformation must execute against a known project version, and RefactorForge must check whether previously passing tests continue to pass.
State of Practice. Constructing executable repository environments remains a bottleneck in coding-agent training [11]. Existing pipelines use LLM agents to identify dependencies and resolve installation failures. SWE-smith combines agent-assisted environment discovery with manual review [11], while SWE-rebench uses execution feedback to refine model-generated installation recipes [35]. Scale-SWE, SWE-Factory, and daVinci-Env use agents for the construction of the environment [36]–[38]. Although these approaches reduce manual configuration effort, they incur inference costs without guaranteeing successful environment construction [37]. These costs can become substantial at scale [38].
TABLE II
REFACTORING CANDIDATES, F2P TEST CHECKS, AND TASK COUNTS. FUNCTION AND CLASS RENAMING ACCOUNT FOR 80.12% OF TASKS.
| Refactoring type | Candidate code | Properties checked by generated F2P tests | Tasks (share) |
|---|---|---|---|
| Rename Function | Top-level functions. | New name present in the defining module and old name absent. Where affected by the reference change, identifier uses, import bindings, and __all__ exports also reflect the rename. | 1,899 (33.29%) |
| Rename Class | Top-level classes. | 2,671 (46.83%) | |
| Rename Constant | Module-level constants. | __all__ exports also reflect the rename. | 567 (9.94%) |
| Rename Attribute | Class and instance attributes. | New name replaces the old name in the owning class. Affected attribute references reflect the rename. | 362 (6.35%) |
| Remove Unused Function | Private top-level functions with no resolved references. | Target function absent. Remaining top-level definition names match the reference outcome. | 25 (0.44%) |
| Remove Unused Import | Names flagged as unused in from ... import ... statements. | Target import bindings absent. Retained bindings and top-level definition names remain. | 46 (0.81%) |
| Move Function | Top-level functions moved between repository modules. | Function defined in the destination, not the source. Affected from ... import ... statements target its new location. | 134 (2.35%) |
| Total | 5,704 (100%) |
SE-Informed Decision. We approached environment preparation as a problem of reproducible builds and regression testing. We designed RefactorForge to derive installation recipes from package metadata, apply explicit repair rules, and reserve bounded LLM assistance only for unresolved failures. We accept an environment only after it passes validation and its frozen recipe was successfully replayed. However, these requirements restrict the pool of repositories available for training-task construction, as repositories without reproducible environments are excluded.
Implementation. Phase I comprises four steps.
Step 1. Select PyPI projects: We selected actively maintained packages from the Python Package Index (PyPI) because its structured release, dependency, and installation metadata supports automated environment construction and reproducible project-version selection. For each package, RefactorForge identifies the upstream repository, maps the release to a tag, and records the corresponding commit hash to fix the project version.
Step 2. Specify build recipes: RefactorForge extracts compatible Python versions and build and test dependencies from package metadata, optional dependency groups, requirements files, and tox configurations. It uses these to generate Dockerfiles, then attempts project installation, test collection, and test execution before requesting LLM assistance.
Step 3. Repair environment failures: RefactorForge first applies deterministic repairs and cached solutions to address known installation failures, unsupported pytest options and markers, missing imports, and dependency incompatibilities. If these fail, RefactorForge queries GLM 5.3 to propose structured repairs to dependencies, Python versions, or environment variables. The model cannot execute shell commands, modify project code, or change test commands. RefactorForge applies and validates each proposal and caches successful repairs for reuse. Each project receives at most six build-and-test-collection attempts, two additional rounds of dependency repair, and seven LLM repair requests. Projects with unresolved failures are rejected.
Step 4. Validate and retain environments: RefactorForge accepts an environment only when the project installation succeeds, test collection completes without errors, and two testing conditions hold: the project has at least one passing test, and no tests fail or produce errors. Skipped tests and expected failures are permitted but do not count as passing tests. RefactorForge records the passing tests and baseline execution time, freezes the recipe, and verifies reproducibility through replay. These passing tests form the P2P regression suite used in later phases.
We assessed 729 projects; 614 built successfully (84.2%), 476 reached test execution (65.3%), and 306 met the final acceptance criteria (42.0%). We incurred $11.38 in LLM expenditure for environment construction, or 3.72 cents per accepted recipe. The remaining 423 projects did not satisfy all acceptance requirements.
C. Constructing Reference Refactorings (Phase II)
We used established SE tools, refactoring preconditions, and transformation semantics to construct independently verifiable reference patches. While Phase I establishes reproducible repositories in which models can practice, Phase II determines which transformations they should learn.
State of Practice. Prior work combines LLMs with SE tools to support refactoring execution. EM-Assist separates candidate generation, static analysis, and transformation, using an LLM, program analysis, and an IDE, respectively [20]. MANTRA instead uses collaborating agents to generate and repair refactored code [39], while RefactoringMirror uses IntelliJ IDEA to reapply transformations detected in LLM-generated revisions [21]. Although these approaches support refactoring execution, constructing training data also requires reference transformations with independently checkable correctness criteria. Obtaining such transformations presents two challenges. First, mining repository histories requires separating refactorings from accompanying changes, as SWE-Refactor demonstrates [40]. Second, generating refactorings with LLMs can produce unsafe transformations that available unit tests fail to detect, as Liu et al. found [21].
SE-Informed Decision. We chose to generate reference patches using refactoring semantics rather than unconstrained LLM-generated changes. We defined eligibility conditions and structural transformation procedures for each refactoring type. RefactorForge uses program analysis to identify eligible symbols and PyCharm or Ruff to apply the specified transformations. We restricted LLM assistance to bounded parameters, such as alternative identifiers, rather than code changes. This approach avoids dependence on mined developer patches but limits coverage to transformations supported by the selected tools and checks.
Implementation. Phase II comprises three steps.
Step 5. Select candidates and generate parameters: RefactorForge uses PyCharm's program-analysis APIs to identify definitions, resolve repository-wide usages, and evaluate type-specific eligibility conditions. For example, Remove Unused Function targets private, undecorated top-level functions with no resolved usages. For Remove Unused Import, RefactorForge uses Ruff's unused-import diagnostics, restricted to from ... import ... statements. For each eligible candidate, RefactorForge records its source location, current name, and relevant usage metadata.
For rename operations, we require plausible alternative identifiers that RefactorForge could validate without allowing an LLM to modify code. RefactorForge uses GLM 5.3 to propose a different, meaning-preserving identifier from the symbol's name, type, file path, and surrounding code. Deterministic filters reject unchanged names, invalid identifiers, Python keywords, and changes to the original leading-underscore category. These filters also enforce PEP 8 naming conventions: snake_case for functions and attributes, CapWords for classes, and UPPER_SNAKE_CASE for constants.
For Move Function, RefactorForge identifies plausible destinations from the distribution of resolved function usages, favoring modules that already depend on the function. It counts usages by repository module, excluding import statements, and selects the module outside the source module with the highest count. The destination must contain at least two usages and more usages than the source module. RefactorForge breaks ties by lexicographic file-path order and rejects destinations containing a conflicting definition or an import binding the same name to a different symbol. However, RefactorForge permits existing imports of the function being moved. This heuristic identifies a plausible training destination, not necessarily the architecturally optimal one. Remove operations require no additional parameters.
Step 6. Construct reference patches: RefactorForge uses PyCharm's program-structure and refactoring APIs to apply supported rename and move transformations, and Ruff's diagnostic fixes to remove unused imports. These tools construct patches without LLM-generated code changes. For each candidate, RefactorForge applies the transformation to the project version pinned in Step 1, records the patch and refactoring metadata, and restores the original repository before processing the next candidate.
Although each transformation has a bounded objective, its patch can require coordinated changes across files. Across 5,704 generated tasks, the median patch changes two files, spans four diff hunks, and involves eight lines of patch churn (lines added plus deleted). At the 95th percentile, patches change six files, span 17 hunks, and involve 56 lines of churn.
Step 7. Validate reference patches: RefactorForge validates each reference patch by applying it to the original repository and executing syntax and operation-specific structural checks. For renames, it checks naming conventions and incomplete reference updates. For Move Function, it verifies that the definition appears at the destination, disappears from the source, leaves unrelated top-level definitions unchanged, and introduces no duplicate imports. RefactorForge then reruns every project test that passed in Phase I and accepts the patch only if all structural checks pass and previously passing tests remain passing.
We thus obtained reference patches that passed the implemented structural checks and the project tests that had passed before the transformation.
D. Constructing Verifiable Training Tasks (Phase III)
A validated reference patch specifies what the model should change, but does not establish how to assess an agent's solution. In Phase III, RefactorForge converts each reference transformation into an executable instruction with independently verifiable correctness criteria.
State of Practice. Coding-agent benchmarks commonly use executable F2P and P2P tests. Pipelines such as SWE-smith and R2E-Gym construct tasks from synthetic faults or development histories [11], [41]. For refactoring, however, passing project tests does not establish that the requested transformation occurred. Hong et al. [42] demonstrate this distinction in SWE Refactor Bench. Across 520 migration runs, 30 preserved tested behavior but failed the migration audit, while 252 satisfied the audit but failed behavioral tests. SWE-Refactor, RefactorBench, and CodeTaste also combine structural checks with behavioral validation [40], [43], [44].
SE-Informed Decision. We used refactoring-specific correctness obligations to construct training tasks. RefactorForge generates instructions that specify the intended operation without revealing its implementation, requiring agents to locate and modify the relevant code. To verify the resulting changes, RefactorForge derives structural F2P tests from the reference transformation and reuses previously passing project tests for regression checking.
Implementation. Phase III comprises three steps.
Step 8. Generate task instructions: RefactorForge provides GLM 5.3 with the refactoring type, symbol metadata, and validated reference patch to generate a task instruction. Following RefactorBench's Lazy instruction style, the model produces a brief developer-facing request that identifies the required symbols but omits file paths and patch contents. RefactorForge checks the instruction against the recorded metadata. Instructions containing unsupported details, file paths, or raw patch syntax are rejected, and a revision is requested.
Step 9. Generate and verify F2P tests: RefactorForge derives structural F2P tests from each reference transformation to check operation-specific changes to names, definitions, references, and imports. It validates each test against both repository states, retaining it only if it fails on the original repository and passes after the reference patch is applied. Where appropriate, RefactorForge also reuses project tests modified by the reference transformation to exercise the changed interface. Table II summarizes the structural properties checked for each refactoring type.
Step 10. Export executable tasks: RefactorForge packages each validated refactoring as an executable Harbor [45] task containing the pinned project version, Docker environment, setup procedure, task instruction, and F2P and P2P tests.
In Phase III, RefactorForge produced 5,704 executable tasks across seven refactoring types.
E. Selecting Verified Training Trajectories (Phase IV)
Executable tasks establish what coding agents must accomplish and how to verify their solutions. In Phase IV, RefactorForge collects demonstrations of how a teacher agent solves these tasks, and we use engineering-defined correctness to determine which trajectories enter the training mixture.
State of Practice. Coding-model post-training commonly uses executable checks to select successful teacher-agent trajectories for training. SWE-Gym, Skywork-SWE, SWE-Lego, and Open-SWE-Traces follow this approach to collect demonstrations for repository-level tasks [10], [46]–[48].
SE-Informed Decision. Unlike the preceding phases, Phase IV introduces no additional SE-specific mechanism. We adopted established post-training data collection practice, using the refactoring correctness criteria defined in the preceding phases to select teacher trajectories. RefactorForge retains a trajectory only when its final solution satisfies both the structural and behavioral requirements.
Implementation. Phase IV comprises two steps.
Step 11. Generate and verify teacher solutions: We selected GLM 5.3 as the teacher model to generate solutions and execution trajectories for the refactoring tasks. Its publicly available weights support self-hosted inference, and its reported 95.4% SWE-Bench Verified score under Mini-SWE-Agent demonstrates substantial repository-level coding capability [3]. For each executable task, RefactorForge runs GLM 5.3 through the OpenCode [49] coding-agent harness. The teacher receives the task instruction and original repository but neither the reference solution nor the hidden grading tests. RefactorForge checks the teacher's final solution against both F2P and P2P tests and retains the trajectory only if it passes both. Of 5,704 tasks, 4,889 (85.71%) yielded successful teacher trajectories.
Step 12. Assess trajectory quality: RefactorForge further filters successful trajectories for malformed conversations, incomplete responses, excessive repetition, garbled text, restricted terms, non-English characters, and invalid multi-turn structure. Unlike the F2P and P2P checks, these filters assess the trajectory rather than the final code. After filtering, 4,572 trajectories remained for student training.
Together, these phases produce verified trajectories for training our model.
IV. INDUSTRIAL CASE STUDY AND FINDINGS
We used the distilled trajectories retained after verification and quality filtering in Phase IV for refactoring-oriented SFT. We evaluated the intervention against the three criteria our team uses when considering data for a subsequent post-training mixture (Section II-A): improvement in the targeted capability (C1), transfer to related tasks with acceptable effects on other capabilities (C2), and persistence of improvements across agent harnesses (C3).
A. Study Design
Training. Our baseline, Baseline-92B , was our company's 92B-parameter coding LLM (Section II-A), post-trained from a pre-trained model using a mixture spanning multiple capabilities. While we cannot disclose the full mixture, its code-related portion comprised 938,180 trajectories and 15.66 billion tokens. As discussed in Section II-A, we used incremental supervised fine-tuning (SFT) to evaluate the effectiveness of new training data between scheduled full post-training cycles. We fine-tuned Baseline-92B on 4,572 verified RefactorForge trajectories totaling 72.51 million tokens (0.46% of the preceding code-related allocation), producing Refact-92B. These trajectories averaged 11.77 agent turns and covered seven refactoring types across the Rename, Move, and Remove families. Training ran for 6 epochs and 83 iterations on 12 nodes, with a batch size of 48 sequences and a maximum sequence length of 128K tokens (full settings in the supplementary material [50]).
Evaluation. We designed our evaluation around the three challenges identified in Section II-A. For each benchmark, we report Avg. @3, the average score across three independent runs per model, and the difference between models in percentage points (pp). We also compare each model's highest-scoring run using a one-sided exact McNemar test [51]. Because both models attempt the same tasks, McNemar tests differences in paired binary outcomes rather than treating success rates as independent. We report matched-pair odds ratios (OR), where OR greater than 1 favors Refact-92B.
C1: Improving refactoring capability. We evaluated targeted refactoring using two benchmarks: RefactorBench [43] (Lazy set) and SWE-Bench ProMax [52]. The Lazy set contains
Anonymized for double blind
TABLE III REFACTORING AND SWE ISSUE-RESOLUTION RESULTS (AVG. @3). * DENOTES (ONE-SIDED EXACT MCNEMAR TEST).
| Refactoring (C1) | SWE issue resolution (C2) | |||
|---|---|---|---|---|
| SWE-Bench ProMax | RefactorBench (Lazy) | SWE-Bench Verified | SWE-Bench Pro | |
| Baseline-92B | 51.18 | 43.00 | 62.00 | 48.97 |
| Refact-92B | 58.24 | 61.00 | 66.97 | 50.20 |
| Improvement (pp) | +7.06 | +18.00* | +4.97 | +1.23 |
100 Python tasks with brief instructions that require agents to infer the necessary repository changes, while ProMax contains 170 refactoring tasks across seven languages. We used OpenCode [49] for both benchmarks, matching the harness used to collect teacher trajectories.
C2: Transfer to other engineering tasks. We evaluated transfer beyond targeted refactoring using three benchmarks: SWE-Bench Verified [53], SWE-Bench Pro [54], and NL2Repo-Bench [55]. The first two assess issue resolution. SWE-Bench Verified contains 500 human-screened Python issues, while SWE-Bench Pro's public v1 set contains 731 bug-fixing and feature-implementation tasks across four languages. SWE-Bench Pro is significantly more challenging and requires long-horizon reasoning. NL2Repo-Bench assesses repository generation, requiring agents to construct a complete, installable Python repository, including its architecture, dependencies, and implementation, from a natural-language requirements document and an empty workspace.
We also explored potential code-quality benefits by using PyExamine [56] to compare code smells introduced by the two models when resolving the same Python SWE-Bench Pro tasks. We restricted the comparison to tasks both models resolved and patch pairs PyExamine successfully analyzed.
C3: Transfer across agent harnesses. We assessed whether improvements persist beyond OpenCode, the harness used to generate training trajectories. We evaluated both models on the SWE issue-resolution and greenfield benchmarks using four agent harnesses: OpenCode [49], Claude Code [57], OpenHands [58], and Mini-SWE-Agent [59], [60].
B. Findings
C1: Fine-tuning on verified refactoring trajectories improves refactoring performance.
Refact-92B outperforms Baseline-92B by 18.00 percentage points (pp) on RefactorBench and 7.06 pp on SWE-Bench ProMax. Success rates increased from 43.00% to 61.00% on RefactorBench, and from 51.18% to 58.24% on ProMax (Table III). The ProMax improvement is notable because the benchmark evaluates large-scale refactoring across seven programming languages, with tasks modifying 11.4 files on average, whereas our training data came exclusively from Python repositories.
Refact-92B outperforms Baseline-92B in seven of thirteen refactoring categories and successfully completed tasks in eleven, despite training on only seven refactoring types. Renames accounted for 96.4% of our training tasks, yet improvements extended to other operations. For example, success on Introduce Parameter Object increased from 0% to 75.0% (Figure 3). The number of categories with success rates below 50% also decreased from seven to five, producing a more even performance profile. Refact-92B's overall success rate of 61% approached GPT-5.2's 62% and exceeded GLM-5.1's 51% in our motivating evaluation (Figure 1). Refact-92B also succeeded in 11 of 13 categories, compared with 10 for GPT-5.2 and 12 for GLM-5.1. These results show how a bounded, capability-focused training intervention can strengthen performance across refactoring operations beyond those explicitly trained.

Fig. 3. RefactorBench Lazy success rates by refactoring category for Baseline-92B and Refact-92B. Refact-92B reduced unevenness across refactoring operations.
C2: Performance gains extend beyond refactoring to other SE tasks.
Refact-92B outperforms Baseline-92B by 4.97 pp on SWE-Bench Verified and 1.2 pp on SWE-Bench Pro, extending gains beyond the refactoring tasks used for training. Under OpenCode, SWE-Bench Verified increased from 62.00% to 66.97%, while SWE-Bench Pro increased from 48.97% to 50.20% (Table III). SWE-Bench Pro is demanding, evaluating long-horizon bug fixing and feature implementation across four programming languages. These improvements extend to related SE tasks that require changes to existing repositories rather than explicitly specified refactorings.
Refact-92B also outperforms Baseline-92B on greenfield repository generation under two of four agent harnesses, despite greenfield development not being a training target. On NL2Repo-Bench, Refact-92B improved over Baseline-92B under Claude Code, from 26.94% to 28.88%, and OpenHands, from 28.12% to 31.00%. It declined under Mini-SWE-Agent, from 27.65% to 24.20%, and OpenCode, from 27.96% to 25.12%. NL2Repo-Bench presents a different and demand-
(a) SWE-Bench Pro

(b) SWE-Bench Verified
Baseline-92B Refact-92B
Fig. 4. Average scores from three independent runs across four agent harnesses. Panel (a) shows SWE-Bench Pro and panel (b) SWE-Bench Verified. Purple dotted bars show Baseline-92B and green dashed bars Refact-92B. Bar labels give average scores, and arrows give absolute improvements in percentage points.
ing workload: agents must construct complete, installable repositories, including their architecture, dependencies, and implementation, from natural-language requirements and an empty workspace. Unlike the consistent improvements on related SWE issue-resolution tasks, gains on this less directly related workload depended on the harness.
Refact-92B introduced 6.9% fewer detected code smells than Baseline-92B when resolving the same software issues. Of the 131 Python SWE-Bench Pro tasks both models resolved, PyExamine successfully analyzed 111 patch pairs. It detected 54 introduced code smells in Refact-92B's patches, compared with 58 in Baseline-92B's patches. This exploratory result extends our evaluation beyond task completion to properties of the generated code.
C3: Performance improvements persist across different agent harnesses.
Refact-92B outperformed Baseline-92B in all eight benchmark-harness combinations across four coding-agent harnesses. On SWE-Bench Pro, improvements ranged from 1.23 to 6.57 pp, while SWE-Bench Verified improvements ranged from 1.91 to 7.10 pp (Figure 4). Refact-92B consistently outperformed Baseline-92B under OpenCode, Claude Code, OpenHands, and Mini-SWE-Agent, demonstrating that the improvements persisted across different agent execution environments.
The largest improvements on both SWE issue-resolution benchmarks occurred under harnesses absent from training-data collection. On SWE-Bench Pro, Claude Code produced the largest gain of 6.57 pp, from 38.16% to 44.73%. On SWE-Bench Verified, Mini-SWE-Agent produced the largest gain of 7.10 pp. We collected all training trajectories using OpenCode, yet the largest improvements emerged under harnesses with different tools, prompts, and execution conventions. These results demonstrate that the gains extended beyond familiarity with the harness used for training data collection.
V. LESSONS LEARNED
In this section, we present the lessons learned from developing RefactorForge to construct capability-focused training data and evaluating its effects on a coding LLM designed to support diverse workloads at industrial scale.
A. Lessons for Building Capability-Focused Training Data
L1. Account for losses at each stage of training-data construction. Generating executable tasks does not guarantee usable training data. Of the 729 projects we assessed, 614 built successfully, but only 306 (42.0%) satisfied our environment acceptance criteria. These environments yielded 5,704 executable tasks, of which the teacher agent successfully solved 4,889. Subsequent trajectory-quality filtering left 4,572 trajectories for training. Each stage imposes distinct requirements, from reproducible environments and correct solutions to suitable trajectories for training. Teams must account for these reductions when planning training-data generation and allocating resources.
L2. Plan capability coverage together with verification. The refactoring operations RefactorForge could include in training depended on its ability to construct and verify their transformations. We selected seven refactoring types based on established practices [32]. For instance, renames accounted for 96.4% of generated tasks (Table II). This concentration also reflects their verifiability: PyCharm can identify eligible symbols and update affected references, while structural and regression tests can check whether the requested transformation occurred and previously passing tests remain passing. As SWE Refactor Bench demonstrates, verifying that a transformation occurred and that it preserved behavior requires distinct checks [40]. The availability of such checks therefore shapes which engineering capabilities we can reliably train our models on.
Extract Class illustrates this challenge. Neither Baseline-92B nor Refact-92B solved the Extract Class tasks in RefactorBench (Figure 3). However, we were not able to generate training tasks for this operation. Although we can verify a prescribed Extract Class transformation, deciding which members belong in the extracted class requires design judgment that our structural checks and existing tests cannot capture. Expanding capability coverage therefore requires not only additional task generators but also verification methods that capture more complex engineering objectives. important role for SE research.
B. Evaluating Capability Improvements in Coding LLMs
L3. Evaluate capability improvements against regression gates. Post-training an existing coding LLM requires the same regression-testing discipline as maintaining conventional software [9]. Refact-92B improved refactoring and related SWE issue-resolution performance but regressed on greenfield repository generation under two of four harnesses. Refactoring and issue resolution share operations such as locating code, tracing dependencies, and preserving behavior, whereas greenfield generation requires additional capabilities our training data does not explicitly target. Our incremental fine-tuning experiment revealed these trade-offs before integration into the full post-training mixture, highlighting the importance of regression gates when evaluating model updates.
L4. Evaluate improvements across the agent harnesses used in practice. Benchmark improvements under one harness do not establish that those gains persist across different agent configurations [19]. Refact-92B improved SWE-Bench Pro under all four evaluated harnesses, but gains ranged from 1.2 pp under OpenCode to 6.57 pp under Claude Code (Figure 4). The largest improvements on both SWE issue-resolution benchmarks occurred outside OpenCode, which we used to collect training trajectories. Evaluating only the collection harness would have missed these differences.
VI. SE MUST SHAPE CODING LLM DEVELOPMENT: A RESEARCH AGENDA
Recent advances in coding LLMs have intensified questions about the future of SE research. Salsabil et al. [61] revisited 35 LLM-based techniques from ICSE 2026 and found that a newer model using a single prompt outperformed 13, with mixed results for another nine. Importantly, techniques providing domain-specific knowledge and external feedback proved more resilient, highlighting the enduring value of engineering expertise. Meanwhile, ongoing discussions question how increasingly capable coding agents will reshape software development and whether the roles of developers and SE expertise will diminish [22], [23], [62]–[64]. We see a different opportunity. Our experience demonstrates how SE knowledge can directly improve the coding LLMs driving these changes. Rather than diminishing, we argue that our field's role must expand to developing these models themselves. We propose three calls to action for SE research.
Evolve coding LLMs into software engineering LLMs. If post-training is programming with data [9], software engineering must help write that program. The training data used to develop and refine coding LLMs shapes the engineering behaviors they acquire. Our field has decades of knowledge about how software should be designed, constructed, tested, and maintained. Research such as SWE-smith [65] already demonstrates the value of contributing training data directly to model development. RefactorForge extends this direction by using established refactoring knowledge to determine what the model practices and what constitutes a correct solution. This reflects the value of domain knowledge identified by Salsabil et al. [61]. SE researchers must bring their expertise into training-data construction, from selecting engineering operations to generating executable tasks and developing verification methods. These contributions can move us from coding LLMs toward software engineering LLMs, improving the engineering capabilities of the models themselves rather than only the systems built around them.
Apply SE to coding LLM development and maintenance. Developing coding LLMs requires more than generating training data. Prior work characterizes industrial post-training as brownfield maintenance, where teams update existing checkpoints under finite budgets while preserving established capabilities [9]. This introduces familiar SE challenges throughout model development, from training-data construction and integration to regression testing and release decisions. SE researchers must develop regression-aware methods that predict how training-data changes affect other capabilities without repeatedly running expensive benchmark suites. Early work on data-mixture performance prediction and proxy metrics provides promising foundations [66], [67]. These methods should complement automated regression testing across model updates, workloads, and agent harnesses. Beyond regression testing, SE research must also advance methods for validating training data, ensuring reproducibility, tracing the effects of data changes, and managing model integration and releases. Together, these opportunities call for applying established SE principles throughout the model-development lifecycle.
Systematically define what coding LLMs should learn. Individual training interventions cannot address the breadth of capabilities required for SE. Our field needs a systematic account of what coding LLMs should learn and how to verify that they have learned it. SWEBOK provides a foundation by organizing established knowledge across requirements, design, construction, testing, maintenance, and other areas [24]. SE researchers must translate this knowledge into explicit engineering capabilities, their constituent operations, appropriate training tasks, and correctness criteria. These specifications must also identify relationships among capabilities and guide evaluations of acquisition and transfer. RefactorForge provides an initial example for refactoring, while its verification challenges demonstrate the work needed for more complex engineering activities. Such a research agenda would connect our field's accumulated knowledge to the capabilities we develop in coding LLMs.
Much of our community’s current research examines how to use coding LLMs in SE tasks [68], how to evaluate their performance [69], and where their capabilities remain insufficient [70]. These contributions remain essential, but our field has a larger role to play. We must move beyond studying and adapting to increasingly capable coding LLMs and actively contribute to their development. As coding LLMs increasingly engineer software, SE must help engineer the models themselves.
VII. Conclusion
Moving from coding LLMs to software engineering LLMs requires our field to shape both what models learn and how we develop them. Our industrial case study demonstrates one way to achieve this. Through RefactorForge, we applied established SE knowledge, tools, and verification practices to construct training data that improved refactoring and related issue-resolution performance across agent harnesses. We evaluated one 92B model and seven bounded refactoring types, predominantly renames. Constructing verified training data, fine-tuning large models, and evaluating their improvements require substantial engineering effort, computational resources, and financial investment. Our findings therefore provide an initial demonstration rather than evidence of generality across models and capabilities. We call on the SE community to systematically define the capabilities these models should acquire and apply its expertise throughout model training, evaluation, development, and maintenance.
REFERENCES
[1] S. Pichai, “Cloud Next ’26: Momentum and innovation at Google scale,” Apr. 2026, Accessed: Oct. 22, 2026. [Online]. Available: https://blog.google/innovation-and-ai/infrastructure-and-cloud/google-cloud/cloud-next-2026-sundar-pichai/
[2] R. Robbes, T. Matricon, T. Degueule, A. Hora, and S. Zacchiroli, “Agentic much? Adoption of coding agents on GitHub,” ACM Transactions on Software Engineering and Methodology, 2026.
[3] Vals AI, “SWE-bench Verified leaderboard and methodology,” 2026, Accessed: Oct. 22, 2026. [Online]. Available: https://www.vals.ai/benchmarks/swebench
[4] P. Whitfill, C. Wu, J. Becker, and N. Rush, “Many SWE-bench-passing PRs would not be merged into main,” METR note, Mar. 2026, Accessed: Oct. 2, 2026. [Online]. Available: https://metr.org/notes/2026-03-10-many-swe-bench-passing-prs-would-not-be-merged-into-main
[5] C. S. Xia and C. Miller, “Do these violent delights have violent ends? Measuring the post-merge fate of agentic code,” arXiv preprint arXiv:2607.09902, 2026.
[6] M. Fowler, “Refactoring,” Accessed: Oct. 3, 2026. [Online]. Available: https://refactoring.com/
[7] M. Kim, T. Zimmermann, and N. Nagappan, “An empirical study of refactoring challenges and benefits at Microsoft,” IEEE Transactions on Software Engineering, vol. 40, no. 7, pp. 633–649, 2014.
[8] R. Huang, A. Reyna, S. Lerner, H. Xia, and B. Hempel, “Professional software developers don’t vibe, they control: AI agent use for coding in 2025,” arXiv preprint arXiv:2512.14012, 2025.
[9] G. K. Rajbahadur, A. M. Ebrahimi, B. Chen, and A. E. Hassan, “LLM post-training as brownfield maintenance: An industrial perspective on dataware engineering,” arXiv preprint arXiv:2608.31102, 2026.
[10] J. Pan, X. Wang, G. Neubig, N. Jaitly, H. Ji, A. Suhr, and Y. Zhang, "Training software engineering agents and verifiers with SWE-Gym," in Proceedings of the 42nd International Conference on Machine Learning (ICML), ser. Proceedings of Machine Learning Research, vol. 267, 2025, pp. 47 717–47 737.
[11] J. Yang, K. Lieret, C. E. Jimenez, A. Wettig, K. Khandpur, Y. Zhang, B. Hui, O. Press, L. Schmidt, and D. Yang, “SWE-smith: Scaling data for software engineering agents,” in Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track, 2025.
[12] OpenAI, “How evals drive the next chapter in AI for businesses,” Nov. 2025, Accessed: Oct. 3, 2026. [Online]. Available: https://openai.com/index/evals-drive-next-chapter-of-ai/
[13] Anthropic, “Demystifying evals for AI agents,” Jan. 2026, Accessed: Oct. 3, 2026. [Online]. Available: https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
[14] The Microsoft AI Team, “MAI-Thinking-1: Building a hill-climbing machine,” Microsoft AI, Tech. Rep., 2026, Accessed: Oct. 3, 2026. [Online]. Available: https://microsoft.ai/pdf/mai-thinking-1.pdf
[15] Y. Chen, G. Zhang, and M. Hardt, “Leaderboard incentives: Model rankings under strategic post-training,” in Proceedings of the 43rd International Conference on Machine Learning (ICML), ser. Proceedings of Machine Learning Research, vol. 306, 2026, pp. 18 142–18 165.
[16] M. I. Gorinova, M. Baker, A. Heineike, M. Shaposhnikov, R. Willoughby, and D. Knox, “Position: Coding benchmarks are misaligned with agentic software engineering,” arXiv preprint arXiv:2606.17799, 2026.
[17] E. Shibaev, V. Kudrevskaia, T. Galimzyanov, M. Evtikhiev, A. Terna, R. Rabatin, T. Kudashev, T. Bryksin, A. Puchkova, P. Bartak et al., “Don’t claim benchmark-oriented optimization improves general coding capability—diverse evaluation is required,” arXiv preprint arXiv:2608.13566, 2026.
[18] B. Peng, W. Yao, Q. Wu, H. Cheng, X. Yu, R. Yang, T. Ge, A. Sordoni, X. Yuan, Y. Shen, P. He, T. Zhang, Z. Yu, and J. Gao, “Orchard: An open-source agentic modeling framework,” arXiv preprint arXiv:2605.15040, 2026.
[19] K. Thangarajah, B. Chen, and A. E. Hassan, “DCAS: Decoupling CLI agent scaffolding to internalize planning across scaffolds,” in Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering (ASE), 2026, pp. 3945–3956.
[20] D. Pomian, A. Bellur, M. Dilhara, Z. Kurbatova, E. Bogomolov, T. Bryksin, and D. Dig, “Next-generation refactoring: Combining LLM insights and IDE capabilities for Extract Method,” in Proceedings of the 40th IEEE International Conference on Software Maintenance and Evolution (ICSME), 2024, pp. 275–287.
[21] B. Liu, Y. Jiang, Y. Zhang, N. Niu, G. Li, and H. Liu, “Exploring the potential of general purpose LLMs in automated software refactoring: An empirical study,” Automated Software Engineering, vol. 32, no. 1, Art. no. 26, 2025.
[22] Z. Cao, “Agentic software: How AI agents are restructuring the software paradigm,” arXiv preprint arXiv:2606.05608, 2026.
[23] A. E. Hassan, G. A. Oliva, D. Lin, B. Chen, and Z. M. J. Jiang, "Towards AI-native software engineering (SE 3.0): A vision and a challenge roadmap," ACM Transactions on Software Engineering and Methodology, vol. 35, no. 9, pp. 1–25, 2026.
[24] H. Washizaki, “Guide to the software engineering body of knowledge (SWEBOK guide), version 4.0,” IEEE Computer Society, 2024, Accessed: Oct. 23, 2026. [Online]. Available: https://www.computer.org/education/bodies-of-knowledge/software-engineering
[25] A. Tornhill, “Case study: Refactoring at scale with agents,” CodeScene blog, Sep. 2026, Accessed: Oct. 1, 2026. [Online]. Available: https://codescene.com/blog/case-study-refactoring-at-scale-with-agents
[26] CodeScene, “CodeHealth: The metric you can trust,” CodeScene, Accessed: Oct. 1, 2026. [Online]. Available: https://codescene.com/product/code-health
[27] W. Huang, C. Lee, L. Tng, and S. Ge, “DeepSWE: Measuring frontier coding agents on original, long-horizon engineering tasks,” Datacurve, May 2026, Accessed: Oct. 1, 2026. [Online]. Available: https://deepswe.datacurve.ai/blog/deepswe
[28] C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. Narasimhan, “SWE-bench: Can language models resolve real-world GitHub issues?” in Proceedings of the 12th International Conference on Learning Representations (ICLR), 2024.
[29] L. Zhang, J. Yang, M. Yang, J. Yang, M. Chen, J. Zhang, Z. Cui, B. Hui, and J. Lin, “Synthesizing software engineering data in a test-driven manner,” in Proceedings of the 42nd International Conference on Machine Learning (ICML), ser. Proceedings of Machine Learning Research, vol. 267, 2025, pp. 76518–76540.
[30] I. Palit and T. Sharma, “Reinforcement learning vs supervised learning: A tug of war to generate refactored code accurately,” in Proceedings of the 29th International Conference on Evaluation and Assessment in Software Engineering (EASE), 2025, pp. 429–440.
[31] H. Liu, Y. Wang, Z. Wei, Y. Xu, J. Wang, H. Li, and R. Ji, “RefBERT: A two-stage pre-trained framework for automatic rename refactoring,” in Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA), 2023, pp. 740–752.
[32] E. Murphy-Hill, C. Parnin, and A. P. Black, “How we refactor, and how we know it,” in Proceedings of the 31st International Conference on Software Engineering (ICSE), 2009, pp. 287–297.
[33] D. Caivano, P. Cassieri, S. Romano, and G. Scanniello, “On the spread and evolution of dead methods in Java desktop applications: An exploratory study,” Empirical Software Engineering, vol. 28, no. 3, 2023.
[34] A. M. Ebrahimi, M. M. Hasan, A. Bhatia, G. K. Rajbahadur, and A. E. Hassan, “To add is machine, to delete is human: Measuring and mitigating deletion avoidance in LLM code editing,” arXiv preprint arXiv:2607.28887, 2026.
[35] I. Badertdinov, A. Golubev, M. Nekrashevich, A. Shevtsov, S. Karasik, A. Andriushchenko, M. Trofimova, D. Litvintseva, and B. Yangel, "SWE-rebench: An automated pipeline for task collection and decontaminated evaluation of software engineering agents," in Advances in Neural Information Processing Systems (NeurIPS), 2025.
[36] J. Zhao, G. Chen, F. Meng, M. Li, J. Chen, H. Xu, Y. Sun, W. X. Zhao, R. Song, Y. Zhang, P. Wang, C. Chen, J.-R. Wen, and K. Jia, "Immersion in the GitHub universe: Scaling coding agents to mastery," arXiv preprint arXiv:2602.09892, 2026.
[37] L. Guo, Y. Wang, C. Li, W. Tao, P. Yang, J. Chen, H. Song, D. Tang, and Z. Zheng, “SWE data construction, automatically!” Proceedings of the ACM on Software Engineering, vol. 3, no. FSE, pp. 525–546, 2026. [Online]. Available: https://doi.org/10.1145/3797119
[38] D. Fu, S. Wu, Y. Wu, Z. Peng, Y. Huang, J. Sun, J. Zeng, M. Jiang, L. Zhang, Y. Li, J. Hu, L. Liu, J. Hou, and P. Liu, "daVinci-Env: Open SWE environment synthesis at scale," arXiv preprint arXiv:2603.13023, 2026. [Online]. Available: https://arxiv.org/abs/2603.13023
[39] Y. Xu, F. Lin, J. Yang, T.-H. P. Chen, and N. Tsantalis, “MANTRA: Enhancing automated method-level refactoring with contextual RAG and multi-agent LLM collaboration,” arXiv preprint arXiv:2503.14340, 2025.
[40] Y. Xu, J. Yang, and T.-H. P. Chen, “SWE-Refactor: A repository-level benchmark for real-world LLM-based code refactoring,” arXiv preprint arXiv:2602.03712, 2026.
[41] N. Jain, J. Singh, M. Shetty, T. Zhang, L. Zheng, K. Sen, and I. Stoica, "R2E-Gym: Procedural environment generation and hybrid verifiers for scaling open-weights SWE agents," in Proceedings of the Second Conference on Language Modeling (COLM), 2025.
[42] D. Hong, Y. Chi, W. Li, X. Wang, M. Gao, K. Yang, B. He, Y. Zheng, C. Xiao, and Q. Na, “SWE Refactor Bench: Can coding agents complete a long-horizon, whole-repository stack migration?” arXiv preprint arXiv:2608.23564, 2026.
[43] D. Gautam, S. Garg, J. Jang, N. Sundaresan, and R. Z. Moghaddam, “RefactorBench: Evaluating stateful reasoning in language agents through code,” in Proceedings of the 13th International Conference on Learning Representations (ICLR), 2025.
[44] A. Thillen, N. Mündler, V. Raychev, and M. Vechev, “CodeTaste: Can LLMs generate human-level code refactorings?” in Proceedings of the 43rd International Conference on Machine Learning (ICML), ser. Proceedings of Machine Learning Research, vol. 306, 2026, pp. 120 544–120 572.
[45] Harbor Framework Team, “Harbor: A framework for evaluating and optimizing agents and models in container environments,” Software, 2026, Accessed: Oct. 23, 2026. [Online]. Available: https://github.com/harbor-framework/harbor
[46] L. Zeng, Y. Li, Y. Xiao, C. Li, C. Y. Liu, R. Yan, T. Wei, J. He, X. Song, Y. Liu et al., “Skywork-SWE: Unveiling data scaling laws for software engineering in LLMs,” arXiv preprint arXiv:2506.19290, 2025.
[47] C. Tao, J. Chen, Y. Jiang, K. Kou, S. Wang, R. Wang, X. Li, S. Yang, Y. Du, J. Dai, Z. Mao, X. Wang, L. Shang, and H. Bai, “SWE-Lego: Pushing the limits of supervised fine-tuning for software issue resolving,” arXiv preprint arXiv:2601.01426, 2026.
[48] W. U. Ahmad, N. Ludwig, S. Majumdar, and B. Ginsburg, “Open-SWE-Traces: Advancing dual-mode multilingual distillation for software engineering agents,” arXiv preprint arXiv:2606.16038, 2026.
[49] Anomaly, “OpenCode: The open source coding agent,” Software, Accessed: Oct. 2, 2026. [Online]. Available: https://github.com/anomalyco/opencode
[50] Anonymous, “RefactorForge supplementary material,” 2026, Supplementary material, accessed Oct. 24, 2026. [Online]. Available: https://drive.google.com/drive/folders/1BuvZ86gTo3j2UOXZsdLXbW6xxwz0j1ZB?usp=sharing
[51] Q. McNemar, “Note on the sampling error of the difference between correlated proportions or percentages,” Psychometrika, vol. 12, no. 2, pp. 153–157, 1947.
[52] Y. Shi, J. Xu, K. Fu, W. Zeng, S. He, L. Zhang, Y. Liu, Z. Zhao, T. Y. Zhuo, J. Cao, S. Ye, T. Liu, K. Cai, S.-C. Cheung, and X. Gu, "SWE-Bench ProMax: Benchmarking agents on large-scale multilingual code refactoring," in Proceedings of the Third Conference on Language Modeling (COLM), 2026.
[53] OpenAI, “Introducing SWE-bench Verified,” Aug. 2024, Accessed: Oct. 1, 2026. [Online]. Available: https://openai.com/index/introducing-swe-bench-verified/
[54] X. Deng, J. Da, E. Pan, Y. Y. He, C. Ide, K. Garg, N. Lauffer, A. Park, C. Rane, K. Sampath, M. Krishnan, S. R. Kundurthy, S. M. Hendryx, Z. Wang, C. B. C. Zhang, N. Jacobson, B. Liu, and B. Kenstler, “SWE-Bench Pro: Can AI agents solve long-horizon software engineering tasks?” in Proceedings of the 43rd International Conference on Machine Learning (ICML), ser. Proceedings of Machine Learning Research, vol. 306, 2026, pp. 23917–23934.
[55] J. Ding, S. Long, C. Pu, G. Zhang, Z. Huan, H. Gao, X. Gao, C. He, Y. Hou, F. Hu, Z. Li, W. Shi, Z. Wang, D. Zan, C. Zhang, X. Zhang, C. Qizhi, X. Cheng, B. Deng, Q. Gu, K. Hua, J. Lin, P. Liu, M. Li, M. Li, X. Pan, Z. Peng, Y. Qin, Y. Shan, Z. Tan, H. Wang, Z. Wang, W. Xie, Y. Yuan, J. Zhang, Y. Zhao, H. Zhu, L. Zhu, C. Zou, M. Ding, J. Jiao, J. Liu, M. Liu, Q. Liu, C. Tao, J. Yang, T. Yang, Z. Zhang, X. Chen, and W. Huang, "NL2Repo-Bench:
Towards long-horizon repository generation evaluation of coding agents," in Proceedings of the 43rd International Conference on Machine Learning (ICML), ser. Proceedings of Machine Learning Research, vol. 306, 2026, pp. 25035–25054. [Online]. Available: https://proceedings.mlr.press/v306/ding26j.html
[56] K. Shivashankar and A. Martini, “PyExamine: A comprehensive, un-opinionated smell detection tool for Python,” in Proceedings of the 22nd IEEE/ACM International Conference on Mining Software Repositories (MSR), 2025, pp. 763–774.
[57] Anthropic, “Claude Code: Overview,” Product documentation, Accessed: Oct. 23, 2026. [Online]. Available: https://code.claude.com/docs/en/overview
[58] X. Wang, B. Li, Y. Song, F. F. Xu, X. Tang, M. Zhuge, J. Pan, Y. Song, B. Li, J. Singh, H. H. Tran, F. Li, R. Ma, M. Zheng, B. Qian, Y. Shao, N. Muennighoff, Y. Zhang, B. Hui, J. Lin, R. Brennan, H. Peng, H. Ji, and G. Neubig, “OpenHands: An open platform for AI software developers as generalist agents,” in Proceedings of the 13th International Conference on Learning Representations (ICLR), 2025.
[59] J. Yang, C. E. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press, “SWE-agent: Agent-computer interfaces enable automated software engineering,” in Advances in Neural Information Processing Systems (NeurIPS), 2024.
[60] SWE-agent Team, “mini-SWE-agent: Overview,” Project documentation, Accessed: Oct. 3, 2026. [Online]. Available: https://mini-swe-agent.com/latest/
[61] N. Salsabil, J. Saha, S. B. Dristi, N. Phair, N. J. Mozumder, M. B. Dwyer, and S. Elbaum, “What survives the next model? benchmarking llm-based techniques against single-prompts,” 2026. [Online]. Available: https://arxiv.org/abs/2609.00468
[62] M. Welsh, “The end of programming,” Communications of the ACM, vol. 66, no. 1, pp. 34–35, 2023.
[63] D. M. Yellin, “The premature obituary of programming,” Communications of the ACM, vol. 66, no. 2, pp. 41–44, 2023.
[64] E. Brynjolfsson, B. Chandar, and R. Chen, “Canaries in the coal mine? Six facts about the recent employment effects of artificial intelligence,” Stanford Digital Economy Lab, Working paper, 2025, Accessed: Oct. 23, 2026. [Online]. Available: https://digitaleconomy.stanford.edu/wp-content/uploads/2025/08/Canaries_BrynjolfssonChandarChen.pdf
[65] J. Yang, K. Lieret, C. E. Jimenez, A. Wettig, K. Khandpur, Y. Zhang, B. Hui, O. Press, L. Schmidt, and D. Yang, “SWE-smith: Scaling data for software engineering agents,” in Advances in Neural Information Processing Systems, 2025. [Online]. Available: https://arxiv.org/abs/2504.21798
[66] J. Ye, P. Liu, T. Sun, J. Zhan, Y. Zhou, and X. Qiu, “Data mixing laws: Optimizing data mixtures by predicting language modeling performance,” in International Conference on Learning Representations, 2025. [Online]. Available: https://arxiv.org/abs/2403.16952
[67] A. Patel, S. Reddy, M. Mosbach, and D. Bahdanau, “Forecasting downstream performance of llms with proxy metrics,” 2026. [Online]. Available: https://arxiv.org/abs/2605.18607
[68] B. Steenhoek, K. Sivaraman, R. S. Gonzalez, Y. Mohylevskyy, R. Z. Moghaddam, and W. Le, “Closing the gap: A user study on the real-world usefulness of ai-powered vulnerability detection & repair in the ide,” in Proceedings of the IEEE/ACM International Conference on Software Engineering, 2025.
[69] C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. R. Narasimhan, “SWE-bench: Can language models resolve real-world github issues?” in International Conference on Learning Representations, 2024. [Online]. Available: https://openreview.net/forum?id=VTF8yNQM66
[70] Y. Ding, Y. Fu, O. Ibrahim, C. Sitawarin, X. Chen, B. Alomair, D. A. Wagner, B. Ray, and Y. Chen, “Vulnerability detection with code language models: How far are we?” in Proceedings of the IEEE/ACM International Conference on Software Engineering, 2025, pp. 1729–1741.