cs.AIApr 13, 2026

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

Authors: Shuquan Lian, Juncheng Liu, Yazhe Chen, Yuhong Chen, Hui Li

Organizations: Key Laboratory of Multimedia Trusted Perception and Efficient Computing Ministry of Education of China, Xiamen University · Microsoft

Abstract

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.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. From SWE-ZERO to SWE-HERO: Execution-free to Execution-based Fine-tuning for Software Engineering Agents

    Apr 2, 2026Nikolai Ludwig, Wasi Uddin Ahmad, Somshubra Majumdar +1Software Engineering AgentsLLM Agent Training

  2. SWE-Edit: Rethinking Code Editing for Efficient SWE-Agent

    Apr 28, 2026Yikai Zhang, Jiaxin Pei, Kenan Li +9AI Coding AgentsMulti-Agent Coding

  3. SWE-Router: Routing in Multi-turn Agentic Software Engineering Tasks

    Jun 30, 2026Seongho Son, Sangwoong Yoon, Jiahua Tang +3Software Engineering AgentsLLM Agent Workflow Optimization