AI Agents 相关度: 9/10

SWE-AGILE: A Software Agent Framework for Efficiently Managing Dynamic Reasoning Context

Shuquan Lian, Juncheng Liu, Yazhe Chen, Yuhong Chen, Hui Li
arXiv: 2604.11716v1 发布: 2026-04-13 更新: 2026-04-13

AI 摘要

SWE-AGILE框架通过动态推理上下文,在推理深度、效率和上下文约束之间取得平衡,提升软件工程Agent性能。

主要贡献

  • 提出SWE-AGILE框架
  • 引入动态推理上下文策略
  • 在SWE-Bench-Verified上达到新的SOTA

方法论

利用“滑动窗口”维护详细推理,防止重复分析;将历史推理压缩成简明摘要,保证推理效率。

原文摘要

Prior representative ReAct-style approaches in autonomous Software Engineering (SWE) typically lack the explicit System-2 reasoning required for deep analysis and handling complex edge cases. While recent reasoning models demonstrate the potential of extended Chain-of-Thought (CoT), applying them to the multi-turn SWE task creates a fundamental dilemma: retaining full reasoning history leads to context explosion and ``Lost-in-the-Middle'' degradation, while discarding it would force the agent to redundantly re-reason at every step. To address these challenges, we propose SWE-AGILE, a novel software agent framework designed to bridge the gap between reasoning depth, efficiency, and context constraints. SWE-AGILE introduces a Dynamic Reasoning Context strategy, maintaining a ``sliding window'' of detailed reasoning for immediate continuity to prevent redundant re-analyzing, while compressing historical reasoning content into concise Reasoning Digests. Empirically, SWE-AGILE sets a new standard for 7B-8B models on SWE-Bench-Verified using only 2.2k trajectories and 896 tasks. Code is available at https://github.com/KDEGroup/SWE-AGILE.

标签

AI Agents Reasoning Software Engineering

arXiv 分类

cs.AI cs.CL