Editor’s introduction
The study examines self-evolving coding agents—systems that update their behavior based on past coding interactions. It identifies evolution targets such as memory, skills, tools, and workflows, and analyzes when and how these changes are triggered by code-specific signals like execution outcomes and repository context. The research notes that while such agents can learn from their own work, the evidence for improvement is not always clear. A key boundary is that passing a test validates an artifact under specific conditions, but does not prove the agent’s behavior has improved over time. The study emphasizes that true progress requires reuse of updates on held-out, matched tasks to demonstrate sustained performance gains.
Introduction
Coding offers unusually concrete evidence for studying this step. Tests provide executable outcomes; compiler messages and stack traces narrow failures; and trajectories record the searches, edits, and retries that preceded a patch. Issues, diffs, and versioned repositories connect those observations to the software conditions under which they arose. Recorded dependencies and tool versions can make many observations re-executable, although changing environments limit that reproducibility. Specific, traceable feedback is still incomplete feedback. A passing test checks only selected behavior, and functional success need not establish patch quality or security. Interpreting this evidence requires distinguishing changes to the program being built from changes to the agent that builds it. The first change is visible in a patch and its validation results. The second requires an experience-derived update to a reusable agent component, followed by its use in later execution. Earlier agent research showed how reflection and stored experience can inform later attempts; coding-specific systems now retain repair knowledge across issues. We use self-evolving coding agent for a system whose retained updates improve subsequent coding behavior. A successful patch may yield an overgeneralized memory, while an unsuccessful attempt may contain a useful diagnosis. The current artifact’s result therefore cannot by itself establish the value of an agent update.
The same debugging experience can enter an agent at different depths. SWE-Exp and Repository Memory retain information for later retrieval, while CODESKILL and Socratic-SWE turn trajectories into reusable procedures. Live-SWE-agent creates callable utilities during issue resolution. Other methods revise the execution structure, as in source-level agent evolution, workflow search, harness repair, or team coordination; Agent-RLVR and SWE-RL instead update model parameters using coding feedback. We organize these targets as assets, architecture, and model parameters. The ordering reflects typical intervention depth: a resource can often be edited locally, whereas changes to control flow or learned policy can affect more decisions. Depth does not guarantee benefit. The update target alone does not explain how evolution occurs. Coding signals determine what evidence a method consumes, while adoption timing determines how much evidence is available before a change enters execution. A utility can be created within a task, team instructions can change between development rounds, experience can be retained after an issue, and a model update can aggregate trajectories across tasks. Earlier adoption allows a rapid response to local feedback; later adoption permits broader validation but delays reuse.
Evaluation must determine whether a retained change helped after reuse, rather than crediting it for the task that produced it. Issue-resolution benchmarks measure patches, while sequential agent benchmarks make persistence and later-task behavior part of the protocol. Coding tasks and their tests may also be used to construct updates, select candidates, and report final performance. Reusing related cases across these roles can make adaptation to an evaluator look like general progress. Studies of harness evolution further show why search budgets and harness choice matter when attributing a gain. An evolution study should therefore identify what persists, compare updated and frozen agents under matched conditions on held-out tasks, and report regressions and costs alongside gains. Those controls separate improvement from extra attempts, computation, or familiarity with evaluation cases.
Memory Self-Evolution
Experience-Derived Memory. The shortest reuse horizon is a later attempt at the same problem. Reflexion retains verbal interpretations of feedback in an episodic buffer to guide subsequent trials. SAGE instead abstracts an initial rollout into a plan that preserves dependencies and constraints before re-executing the same task. SE-Agent revises, recombines, and refines pilot trajectories, using relationships among previous attempts to explore alternative solutions. These methods demonstrate different ways of making earlier computation useful to later execution. Their same-task improvements should be distinguished from evidence that a retained memory benefits unseen tasks, and from improvements obtained simply by increasing the number of attempts.
Across tasks, abstraction must balance reusable guidance against the details that make a past solution applicable. SWE-Exp distills successful and failed repair trajectories into a bank spanning issue comprehension and concrete code changes. EvoCoder addresses issue reproduction through a hierarchical pool separating common experience from repository-specific experience. EXPEREPAIR separates concrete repair demonstrations from reflective insights in episodic and semantic memories, combining both when constructing an inference prompt. These designs expose complementary dimensions of memory organization. Repository scope determines where a lesson applies, while abstraction level determines how much of the original repair must be reconstructed before it can guide a decision.
Domain-specific feedback further changes what should be remembered. EvoRepair combines accumulation within a vulnerability with reuse across vulnerabilities, updating its experience bank through quality-aware scoring. MemRepair distinguishes historical fixes, security patterns, and refinement trajectories, preserving repository conventions alongside reusable defenses and lessons from failed validation. In RTL generation, VeriAgent converts simulation and synthesis feedback into memory nodes with triggering conditions, guidance, and metadata; its manager inserts, refines, or discards nodes. The adaptive system for ML library development retains verified generated programs as demonstrations and selects them by difficulty, using successful examples to support remaining tasks in an unfamiliar programming language. These mechanisms retain different evidence, from repair failures to physical design signals and executable examples, rather than treating every trajectory as an interchangeable text record.
External Knowledge Memory. Repository history records decisions that the agent did not necessarily make itself. Repository Memory uses historical commits, linked issues, and summaries of actively changing code regions to improve localization. This supplements a code snapshot with associations between past problems and likely modification sites. MemCoder structures human commit history into intent-to-code mappings, refines execution using verification feedback, and incorporates human-validated solutions into long-term knowledge. The distinction is between recalling where and why developers changed code and retaining the agent’s own trial-and-error record, although a single memory system can eventually contain both. External supervision can also reveal project conventions that tests do not fully express. Learning to Commit attempts historical issues, compares its changes with actual commits, and distills the differences into reusable guidance about style, internal APIs, and architectural constraints. Its chronological split evaluates future pull requests, directly aligning the reuse claim with later repository work, although the reported study centers on one repository. Accumulated Behavioral Rules converts accepted review comments into persistent instructions and a pre-submission checklist. Its production observations support cross-session retention of corrections, but the small session sample and absence of a controlled baseline limit causal claims about improvement. Such artifacts overlap with skills and context in their eventual use; their distinguishing contribution here is converting developer knowledge into a maintained source of guidance.
Harness Evolution
Archive-Based Evolution. An archive makes earlier executable agents available as starting points for further improvement. This matters because a modification can have value beyond its immediate task score. A branch that currently performs poorly may contain a useful implementation choice, expose a recurring failure, or support a later change that would be difficult to discover from the current best agent. DGM operationalizes this idea by sampling agents from an expanding archive, modifying their source code, and evaluating the resulting variants on coding tasks. Retaining alternative branches allows search to continue from earlier designs instead of requiring every useful path to pass through the latest agent. The archive retains executable implementations alongside their traces, evaluation records, and lineage information. Search uses this history both to select a parent and to construct a candidate modification. Retention for further search and adoption for task execution are separate decisions. An archive can preserve an informative candidate without making it the deployed agent.
The first holds the agent fixed, and the second holds the task fixed. Neither requires every agent to run on every task. These views turn the archive into a source of comparative diagnoses as well as candidate implementations. Executing the modified agent under matched conditions tests these proposed explanations.
The archive also creates an allocation problem because evaluating every possible modification can consume the evolution budget before useful branches are explored. SIFT uses an LLM judge to rank candidate patches and concentrates expensive benchmark execution on promising candidates. By reducing full evaluations, screening can make a wider search affordable, but its usefulness depends on which candidates it excludes. A judge that repeatedly favors familiar edits can suppress the unusual branches that archive-based exploration is intended to retain. The relevant comparison therefore concerns the quality of agents discovered under a common evolution budget, alongside the cost and reliability of candidate screening.
Iteration-Based Evolution. Iterative methods make the agent’s implementation a recurring coding task. SICA uses reflection and editing tools to revise the program orchestrating its model calls and actions, retaining code changes for later executions. STOP makes this relationship explicit through a seed program improver that applies its own language-model-assisted search to itself, changing how subsequent programs are generated and selected while leaving model weights fixed. Ouroboros extends implementation revision into continued operation. Explicit improvement tasks and problems encountered during ordinary work produce reviewed commits that become the runtime for later work. Its frozen benchmark snapshots and live deployment lineage provide different evidence, respectively about a particular system version and the operation of a continuing update process. The defining transition is adoption into later execution; repeatedly editing candidate code does not establish that this transition occurred.
Iterative revision also couples the quality of the current agent to the quality of its future edits. A change that improves repository inspection may help both ordinary issue resolution and inspection of the agent’s own implementation. However, these two uses expose different failure cases. Evaluating later self-modification attempts can reveal whether an update improves the revision process as well as the task solver. Retaining versioned implementations makes this distinction inspectable and supports returning to an earlier revision when a later change degrades execution.
Trace-Driven Evolution. Execution traces can reveal which runtime mechanism prevented an agent from using its available capabilities effectively. Self-Harness clusters recurring failures, proposes small changes tied to those failures, and retains modifications through regression testing. AHE makes editable components observable at file level, condenses trajectories into inspectable evidence, and pairs edits with predictions that can be checked against subsequent outcomes. HarnessFix provides more explicit localization by aligning runtime data and control flow with harness artifacts, then converting recurring diagnoses into scoped repair specifications. AutoSaddler combines mini-batch diagnosis and structured patching with development-set selection and separate final testing, distinguishing repair of observed failures from evidence that an update generalizes. ReCreate uses experience retrieval and a reasoning–creation process to generate scaffold edits, abstracting individual interactions into reusable domain patterns. Across these methods, the important conversion is from an observed failure to an actionable hypothesis about the execution mechanism responsible for it.
The resulting updates need not have identical scope. One Recipe, Many Harnesses finds that a shared evolution procedure yields both transferable strategies and adaptations specific to language ecosystems and model weaknesses. Evo-Harness compiles single-shot executions into general and topic-specific skill guidance that is retrieved for later tasks. Although described as harness learning, its retained Markdown skills primarily update procedural assets under our functional distinction. Harness-of-Harness illustrates a further boundary by organizing existing harnesses into repeated planning, implementation, and independent testing, retaining project histories to inform subsequent development. Its demonstrated progression concerns the software project and accumulated project state; this does not by itself establish persistent revision of the underlying execution architecture. These cases make the update target essential to interpretation, even when methods share the language of harness improvement.
Benchmarks Designed to Evaluate Evolution
Evolution-oriented benchmarks differ in the object whose change they evaluate, rather than in when an update occurs. We distinguish changes to a task solution, a software artifact, and persistent agent state. Evidence at one level does not establish change at the next.
Solution-Level Adaptation. EvoCodeBench tracks correctness, runtime, memory use, and algorithmic efficiency across successive refinements of one solution. It tests whether feedback improves the current solution. If the agent is reset before the next problem, the result does not show that the state used for future tasks has changed.
Persistent Agent-State Evolution. These benchmarks carry agent state across tasks or fresh sessions. LifelongAgentBench tests accumulation and transfer over interdependent task sequences. SkillFlow evaluates skill discovery, repair, reuse, and regression, while SkillLearnBench connects skill quality and invocation to task outcomes. PAST-Bench compares matched persistence-on and persistence-off conditions, and SEA-Eval jointly tracks reliability, long-term performance, and token use over sequential streams. MemoryArena and Evo-Memory isolate memory accumulation, revision, and behavioral reuse. Together, these protocols test whether retained experience changes later behavior; equal success rates may still conceal different trajectories and costs.
GDPevo illustrates this principle by distributing atomic rules across update tasks and recombining them in held-out cases. Its business workflows are not coding tasks, but the same design can test new combinations of APIs, defect families, repository structures, or validation requirements.
Evaluation beyond short benchmarks
Current evaluations mainly measure short-horizon success through pass rates, resolve rates, or benchmark scores. Yet real software engineering also requires maintainability, security, reviewability, efficiency, and long-term reliability. The gap is already visible without moving beyond coding. SWE-EVO requires release-scale changes spanning an average of 21 files and hundreds of tests; a GPT-5 and OpenHands configuration resolves 21% of these tasks, compared with 65% on SWE-bench Verified. The difference shows that success on isolated issues does not establish sustained planning, preservation of earlier behavior, or control of interactions among changes. Longitudinal agent benchmarks reveal a second gap. LifelongAgentBench finds that straightforward experience replay is limited by irrelevant records and context constraints. PATH-Bench further shows that strong forward transfer does not guarantee retention and that later experience can reshape gains acquired earlier in a task sequence. Coding-specific memory experiments across six benchmarks find a 3.7% average gain from cross-domain transfer, but also show that abstract validation routines transfer more reliably than concrete traces, which can cause negative transfer through excessive specificity. Evaluation must consequently follow the agent after an update rather than test it once. Repeated checkpoints should measure newly acquired behavior, regressions on earlier repositories, transfer to held-out repositories and defect families, resource growth, and sensitivity to task order. Cross-domain transfer remains an open question, but the immediate standard should be stronger: evolution learned from one part of software engineering should survive time and improve later coding work beyond the cases that produced it.
Conclusion
Coding agents are unusually well positioned to learn from their own work. Execution yields specific outcomes, diagnostics, and trajectories that can be tied to repository state and checked again. Our synthesis follows how this evidence becomes persistent change in assets, architecture, or model parameters, with progressively deeper intervention. The crucial distinction is between retaining an update and showing that it improves later decisions. Passing a test validates a software artifact under particular conditions; demonstrating agent improvement requires reuse and benefit on matched, held-out tasks.
Research and products currently favor memories, skills, tools, and editable harnesses because their changes can be scoped, inspected, and reversed. Looking ahead, a coding agent could treat these components as a versioned system that it revises during ordinary coding work. Experience would generate candidate changes, independent checks would govern their adoption, and later tasks would show whether each change should be kept, revised, or rolled back. Extending this cycle to workflows and model parameters will require stronger evidence of gains, regressions, and costs across repositories and time. The long-term goal is an agent that can identify which experiences deserve to persist, where they apply, and when they should be forgotten.


