NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?

Chunqiu Steven Xia, Zhe Wang, Yan Yang, Yuxiang Wei, Lingming ZhangarXiv 2025 · DOI

Abstract

Autonomous software engineering agents typically rely on fixed, manually designed toolsets that may not generalize across diverse codebases. LIVE-SWE-AGENT introduces a paradigm shift by enabling agents to synthesize and refine their own tools at runtime. By utilizing a minimalist bash-only scaffold and a continuous evolution loop, the agent creates "just-in-time" Python-based tools tailored to specific tasks. This approach achieves a state-of-the-art 77.4% resolve rate on SWE-bench Verified and 45.8% on SWE-bench Pro, outperforming both open-source and proprietary agents while avoiding the high costs associated with offline evolution.

Introduction

Building an autonomous agent to fix software bugs is fundamentally a "scaffold design" problem. Traditionally, developers equip agents with a static suite of tools (e.g., grep, ls, or custom editors). However, the optimal toolset varies significantly between projects—a configuration suitable for a Python web application may be inefficient for a C++ compiler.

Previous attempts to address this through "self-improving" agents, such as the Darwin-Gödel Machine (DGM), have relied on offline evolution. This process requires thousands of trials to optimize a scaffold before deployment, often costing tens of thousands of dollars and resulting in agents over-specialized to specific benchmarks. LIVE-SWE-AGENT proposes a more dynamic alternative: allowing the agent to build the tools it needs exactly when it needs them during the problem-solving process.

Methodology

LIVE-SWE-AGENT adopts a minimalist philosophy, starting with a bare-bones bash-only scaffold. The core of the system is a continuous evolution loop that treats tool creation as a first-class decision.

The LIVE-SWE-AGENT continuous evolution loop.

The loop consists of three primary stages:

  1. Tool Synthesis: When faced with a complex task, the agent can choose to write a Python script that acts as a new, specialized tool (e.g., a custom searcher or data analyzer).
  2. Step-Reflection: After each interaction with the environment, a lightweight prompt directs the agent to reflect on its progress and determine if creating or revising a tool would improve efficiency.
  3. Execution: The agent utilizes these synthesized tools to navigate the codebase and apply patches. Since these tools are standard Python scripts, the agent can iteratively debug and refine its own capabilities on the fly.

Experimental Setup

The researchers evaluated LIVE-SWE-AGENT across three major benchmarks to test its robustness and generalizability:

  • SWE-bench Verified: 500 curated, real-world GitHub issues.
  • SWE-bench Pro: 731 difficult enterprise-level problems across multiple repositories.
  • SWE-bench Multilingual: A subset of 50 problems spanning nine programming languages (including Go, Rust, and JavaScript).

Results

LIVE-SWE-AGENT demonstrated superior performance across all benchmarks, establishing a new state-of-the-art for autonomous software engineering agents.

Performance of LIVE-SWE-AGENT on SWE-bench Verified and Pro benchmarks.

Using Gemini 3 Pro, the agent reached a 77.4% resolve rate on SWE-bench Verified without requiring multiple attempts (test-time scaling). On the more challenging SWE-bench Pro, it achieved a record 45.8% resolve rate, surpassing top-tier proprietary solutions. Notably, on a 60-issue subset, LIVE-SWE-AGENT achieved a 65% resolve rate, significantly outperforming the offline-evolved Darwin-Gödel Machine (53.3%) while incurring zero offline training costs. The operational overhead for this self-evolution is remarkably low, adding only $0.48 to $0.73 to the cost per issue.

Discussion and Key Insights

Several key insights emerged from the development of LIVE-SWE-AGENT:

  • Agents as Software: Treating the agent's scaffold as refactorable software allows for unprecedented flexibility. For instance, when encountering niche file formats like MARC, the agent synthesized a custom analyzer to make the data human-readable.
  • Efficiency and Context: Custom tools reduce "context bloat." By replacing multiple complex bash commands with a single specialized script, the agent saves tokens and reduces the likelihood of cascading errors.
  • The Intelligence Threshold: This "live evolution" capability is highly dependent on the underlying model's reasoning power. While strong models like Claude 3.5 or Gemini 1.5 Pro benefit significantly, weaker models like GPT-4o-mini performed worse, as they struggled to effectively design and implement their own tools.

Conclusion and Future Work

LIVE-SWE-AGENT proves that runtime self-evolution is a viable and cost-effective path toward more capable autonomous agents. Current limitations include "tool amnesia," where the agent forgets synthesized tools after a task is completed. Future work will explore serializing these tools into a permanent library or "Skills" folder. Additionally, the researchers aim to expand the evolution loop to include the agent's entire workflow, including system prompts and core decision-making logic.

Summary updated

BibTeX
@misc{xia2025live,
  author = {Chunqiu Steven Xia and Zhe Wang and Yan Yang and Yuxiang Wei and Lingming Zhang},
  title = {{Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?}},
  year = {2025},
  eprint = {2511.13646},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.13646},
}
Figure