跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2611.29321 · v1

Multi-Agent Coordinated Method-Level Refactoring of Rust Code

首次提交 2026-11-22 16:34
版本更新 2026-11-22 16:34
雷达观测 2026-11-24 12:47
arXiv ↗PDF ↗

摘要

As Rust codebases evolve, developers refactor code to reduce duplication, simplify complex methods, and keep related functionality together. Developers can make these changes manually or use IDE assists for supported operations, then check the resulting code with compiler diagnostics and tests. Method-level refactoring in Rust must preserve observable behavior while accounting for ownership, borrowing, and lifetimes. We present a large language model (LLM)-based workflow for extracting, inlining, and moving methods in Rust. The workflow combines candidate generation, configurable specialist review,and container-based validation. On six tasks from three open-source Rust projects, three end-to-end configurations passed all task checks on their first attempt, using 6, 13, and 31 model calls. To isolate the effect of review, we then gave four configurations the same six reference patches and six deliberately behavior-changing variants. A designated specialist rejected all six behavior-changing patches before container validation and let all six reference patches proceed, reducing Docker invocations from 24 to 12 relative to direct validation. The fixed specialist panel also caught all six faults early and rejected two reference patches over unmeasured performance concerns. On this workload, specialist review reduced execution work, while its effect on total time depended on review overhead and which patches reached validation.

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

目前只收录了一个版本。收录下一版后,可以对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v1 · 2026-11-22 16:34 · 最新观测版本

Multi-Agent Coordinated Method-Level Refactoring of Rust Code

As Rust codebases evolve, developers refactor code to reduce duplication, simplify complex methods, and keep related functionality together. Developers can make these changes manually or use IDE assists for supported operations, then check the resulting code with compiler diagnostics and tests. Method-level refactoring in Rust must preserve observable behavior while accounting for ownership, borrowing, and lifetimes. We present a large language model (LLM)-based workflow for extracting, inlining, and moving methods in Rust. The workflow combines candidate generation, configurable specialist review,and container-based validation. On six tasks from three open-source Rust projects, three end-to-end configurations passed all task checks on their first attempt, using 6, 13, and 31 model calls. To isolate the effect of review, we then gave four configurations the same six reference patches and six deliberately behavior-changing variants. A designated specialist rejected all six behavior-changing patches before container validation and let all six reference patches proceed, reducing Docker invocations from 24 to 12 relative to direct validation. The fixed specialist panel also caught all six faults early and rejected two reference patches over unmeasured performance concerns. On this workload, specialist review reduced execution work, while its effect on total time depended on review overhead and which patches reached validation.

查看此版本解读 →查看此版本原文 ↗