arXiv:2603.13258cs.LGcs.AI2026-03被引 4

让代码助手像人一样成长,通过历史代码和反馈持续进化。

Your Code Agent Can Grow Alongside You with Structured Memory

  • 用历史提交提炼人类编程意图,构建可演化记忆
  • 实时根据验证反馈自我修正行为,提升准确率9.4%
  • 适合需要长期协作的复杂项目开发场景

尽管‘意图导向编程’(或称‘氛围编程’)正在重塑软件工程,现有代码代理仍依赖静态代码快照,难以捕捉项目演进中的关键信息,无法利用过往成功实践所隐含的‘推理轨迹’。这导致行为僵化、缺乏自主适应能力,难以应对复杂的仓库级问题。为此,我们提出MemCoder框架,实现人与AI的持续协同进化。该框架首先将历史人类经验结构化,从过往提交中提炼隐含的意图到代码映射;随后通过验证反馈驱动的自优化机制,实时纠正代理行为;关键的是,引入经验内化机制,将经人类验证的解决方案固化为长期知识,支持持续演进。在SWE-bench Verified上的实验表明,MemCoder不仅达到当前最优(SOTA)性能,且相比通用基础模型DeepSeek-V3.2,解决率提升9.4%。结果表明,通过项目历史与实时反馈赋予代理共演化能力,能有效释放通用模型在复杂软件工程任务中的潜力。

原文摘要 · Abstract (English)

While "Intent-oriented programming" (or "Vibe Coding") redefines software engineering, existing code agents remain tethered to static code snapshots. Consequently, they struggle to model the critical information embedded in the temporal evolution of projects, failing to leverage the "reasoning trajectories" implicit in past successful practices. This limitation results in rigid behavioral logic and a lack of autonomous adaptability, ultimately hindering their ability to tackle complex, repository-level problems. To bridge this static-dynamic mismatch, we propose MemCoder, a framework designed to enable continual human-AI co-evolution. MemCoder first structures historical human experience to distill latent intent-to-code mappings from past commits. It then employs a self-refinement mechanism driven by verification feedback to correct agent behavior in real-time. Crucially, an experience self-internalization mechanism is introduced to crystallize human-validated solutions into long-term knowledge, thereby supporting sustained evolution. Experimental results on SWE-bench Verified demonstrate that MemCoder not only achieves State-of-the-Art (SOTA) performance but also delivers a 9.4% improvement in resolved rate over the general foundation model DeepSeek-V3.2. These findings indicate that equipping agents with the capability to co-evolve with humans via project history and real-time feedback effectively unlocks the potential of general models in complex software engineering tasks.

代码生成人机协同记忆机制AI代理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。