Certified Long-Horizon Code Agent Evolution via Validation-Gated Skill Optimization
cs.AI
Submitted: 2026-09-26
Updated: 2026-09-26
Code: https://github.com/SWE-agent/mini-swe-agent
License: http://creativecommons.org/licenses/by/4.0/
The gist: Long horizon agent self-evolution without model weight updates is essential for enabling deployed agents to accumulate reusable skills and improve over time.
Terminology
Abstract
Long horizon agent self-evolution without model weight updates is essential for enabling deployed agents to accumulate reusable skills and improve over time. Prior self-evolution work has focused primarily on short-horizon tasks, while repository-level software engineering remains unexplored despite being an ideal testbed for long-horizon adaptation. In this setting, agents are required to solve streams of sequential tasks, navigate complex dependencies with evolving repositories and persistently store and reuse experience. Text-based skill optimization offers an efficient, non-parametric approach for such adaptation. However, existing methods often suffer from unstable updates, performance drawdown, and agent collapse over extended deployments. In this paper, we formalize the concept of in-context self-evolution and introduce VALVE, a validated-gated framework for long-horizon skill optimization. We establish finite convergence, provide theoretical guarantees for future-task gain and drawdown, and derive the validation and evaluation holdout sizes required for a prescribed tolerance, with leading-order scaling Empirically, our pipeline, VALVE achieves stable self-improvement over evolution horizon spanning more than 1,000 SWE tasks, with average final and peak gains of 14.9 and 16.5 points across three frontier models (GPT-5.5, Claude-4.6 and MiniMax-M2.7). The validation gate reduces average drawdown by 75% and produces an 11x more compact skill bank than ungated evolution. We further present extensive ablations identifying the design choices most critical to long-horizon skill evolution.
Sources
- GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning
- EvoSkill: Automated Skill Discovery for Multi-Agent Systems
- Evolving Excellence: Automated Optimization of LLM-based Agents
- Training-Free Group Relative Policy Optimization
- SWE-Exp: Experience-Driven Software Issue Resolution
- SearchQA: A New Q&A Dataset Augmented with Context from a Search Engine
- Memp: Exploring Agent Procedural Memory
- EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizers
- Learn Like Humans: Use Meta-cognitive Reflection for Efficient Self-Improvement
- SoK: Agentic Skills -- Beyond Tool Use in LLM Agents
- SkillsBench: Benchmarking How Well Agent Skills Work Across Diverse Tasks
- SkillForge: Forging Domain-Specific, Self-Evolving Agent Skills in Cloud Technical Support
- Trace2Skill: Distill Trajectory-Local Lessons into Transferable Agent Skills
- ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memory
- Automatic Prompt Optimization with "Gradient Descent" and Beam Search
- A Self-Improving Coding Agent
- SkillOpt-Lite: Better and Faster Agent Self-evolution via One Line of Vibe
- ALFWorld: Aligning Text and Embodied Environments for Interactive Learning
- Dynamic Cheatsheet: Test-Time Learning with Adaptive Memory
- Voyager: An Open-Ended Embodied Agent with Large Language Models
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems