How Do Coding-Agent Harnesses Self-Evolve? An Empirical Study of Retrospective Adaptation
Abstract
Coding agents can adapt their harnesses, the software, configuration, and instructions used to run them, based on experience from earlier tasks, but whether these adaptations improve their behavior on later tasks remains unclear. We study , a skill that asks an agent to review a completed session and propose harness changes, and ask what changes it proposes and whether implemented changes reduce repeated work on later tasks. We ran Claude Code on 30 SWE-bench Verified issues, qualitatively coded the 125 proposals from , implemented 24, and evaluated 12 harness changes on later issues from the same repositories in fresh sessions with and without each change. Most proposals referred to an event in the session, but 18 of 43 lint-related proposals recommended a practice regardless of what had happened. Among the seven evaluations in which sessions without the change encountered the targeted problem, two changes eliminated the targeted action, one reduced its occurrence, four showed no reduction, and some changes added work on unrelated issues. Harness self-evolution requires more than generating and implementing changes: it needs ways to establish whether a change helps on later tasks and to revise or remove changes that do not.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI
Related papers
Well-Specified and Well-Tested? Assessing SWE-bench-Style Datasets with a Self-Evolving Agent
Shared title terminologycs.SEZhonghao Jiang, Xuyang Zheng, Yanfu Yan et al.
SWE-growth: Teacher-Guided Adaptive Self-Play for Software Engineering Agents
Shared title terminologycs.SESongshi Liang, Zixuan Huang, Mingxuan Song et al.
Reliable Mining of Heterogeneous AI Coding-Agent Data: Context-Aware Prediction and Resource-Aware Ranking
Shared title terminologycs.SEHaoran Yu, Lifei Liu, Danping Zhang
Toward Bounding Coding-Agent Autonomy in Software Maintenance: A Pilot Study of Boundary Contracts
Shared title terminologycs.SEHeeyong Eun, Seungyeon Chung, Hyejee Park et al.
Precedent or Intent? What Coding Agents Follow When Evolving Existing Code
Shared title terminologycs.SEHaichao Zhu, Geyang Xu, Zhaorui Yang et al.
FeatureArc: Benchmarking Coding Agents on Evolving Features
Shared title terminologycs.SEYunlong Wang, Alyssa Wu, Cuiyun Gao et al.