Skip to content

Menu

WorksComputer Science

Small but Mighty: Test Suites as Improvement Signals for Self-Evolving Agents

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_mvnt22s6. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

A self-evolving agent rewrites its own harness and must decide which rewrites to keep, so its improvement signal is the check a rewrite has to pass. Verifying a rewrite by agent rollout is expensive and subjective, while executable checks such as the repository's own tests are too sparse to catch behavior-changing rewrites, rejecting only a quarter of them. We instead take test feedback as the executable signal, and search for test suites that are both small and strong with a quality-diversity evolutionary algorithm, so that the signal is dense and informative. TeSearch treats suite size as a behavior descriptor, so that quality is pursued at every size and a small, strong suite is reachable, and learns a transition kernel during the search that denoises the LLM as an actuator on that descriptor. Across 129 real-world modules and three backbones, TeSearch delivers the highest-quality suites of any method compared, LLM-driven evolutionary search included, and the smallest of any LLM-based one. Used as the improvement signal of a self-evolving agent, it rejects 59.9% of behavior-changing rewrites against 25.3% for the repository's tests, at a 4.0% false-alarm rate and 3.5 s per decision. The code and data are available at https://github.com/ccsnow127/TeSearch.

Introduction

Self-evolving agents get stronger by editing the code that runs them: the harness that prompts the model, parses its actions, executes them and records the trajectory [34, 55, 67]. The check a rewrite must pass to be kept is the agent’s improvement signal. Accept a rewrite that silently changes behavior and every later episode and rewrite inherits it; reject rewrites that preserve behavior and the evolution stalls. In software engineering the executable form of this check is the test suite, a regression specification [62] that captures the accepted behavior of the code so that later modification can preserve it.

The signals available today are weak. Accepting on rollout outcome spends an agent episode per candidate on a noisy end-to-end score. The repository’s own tests are free, but they were written before the agent existed and anticipate none of its edits: we find them rejecting only 25.3% of the rewrites that change behavior (§ 5.3). A generated suite can do better, but only if it is effective, so that a behavioral change breaks at least one test, and efficient, since it runs on every proposed rewrite and its failures are read by a model with a finite context. Existing generators, search-based or LLM-based, optimize effectiveness and leave size to whatever emerges [2, 18, 24, 35].

We formulate size-optimized unit test generation and, rather than scalarizing quality against size, let size define where a suite competes and quality whether it wins: size is a behavior descriptor of a quality–diversity (QD) search [39, 45], so the small end stays alive instead of being eliminated by the large one. Two challenges follow. LLM calls are expensive, so a finite budget must be *allocated across niches whose value is unknown. And unlike classical QD, the descriptor cannot be set directly: the search can only ask the LLM for a count, which LLMs follow imprecisely [71], so the niche a call targets and the niche it lands in differ.

TESEARCH answers both: an online landing kernel models the LLM as a noisy actuator on the descriptor, correcting its bias and predicting where each call lands, and a size-annealing UCB allocates calls across niches from those predictions, turning toward smaller suites only once quality is secured. Its suites are the strongest and, among LLM-based methods, the smallest on 129 real-world modules, and as the improvement signal of a self-evolving agent they more than double the detection of behavior-changing rewrites at a cost the loop can afford on every one.

Related work

Self-evolving agents and improvement signals. Self-improving LLM systems differ first in where an improvement is written. Weight-space methods fine-tune the model on its own data or rewards [56, 73, 74], a gain that cannot be read, diffed or reverted. Context-space methods write into the harness instead, through verbal self-refinement [37, 49], prompt search and textual gradients [1, 44, 60, 64], experience memory [68], skill synthesis [54] or search over the whole scaffold [22]; at the frontier the agent rewrites its own code, including the procedure that performs the update [17, 34, 65, 67]. What decides whether an improvement is kept ranges from the model’s own judgment [6, 63] to external verifiers such as tests [7, 9], compilers [20, 29] and environments [36]. Tests are the signal coding agents such as Cursor, Codex and Claude Code [3, 4, 42] lean on across whole repositories [26, 61, 66], yet they are taken as given: the repository’s own or written ad hoc. We optimize the test signal itself, for the strength and cost a loop running it on every rewrite needs. See §F for additional related work.

Evolutionary and quality–diversity search. LLMs used as variation operators under executable fitness make evolutionary search a strong inference-time optimizer [28, 41, 47], but a global objective concentrates the population around one mode [16, 19]. QD optimization instead partitions the search space by behavior descriptors and optimizes quality within each region [15, 30]: MAP-Elites keeps an elite per cell [39], and MOME a Pareto front per cell whose hypervolumes it sums [45]. Search-based test generation evolves program inputs against coverage goals [18, 35] and test-suite reduction shrinks a written suite post hoc [21, 48]; neither controls size during generation. In classical QD the descriptor is read off what an individual turns out to be; here it must be requested from an LLM before it can be observed, and TESEARCH models that actuation error explicitly.

Size-optimized test generation

Given a Python module MM, a suite TT is a finite set of test functions for MM, with size s(T)s(T). Two objectives are measured on it: coverage c(T)∈[0,1]c(T) \in[0,1], the fraction of functions of MM executed, and mutation score m(T)∈[0,1]m(T) \in[0,1], the fraction of a fixed sample of mutants of MM killed [25]. With the origin as reference, a suite has hypervolume hv⁡(T)=c(T)m(T)\operatorname{hv}(T) = c(T)m(T) [72], high only when both objectives are.

Definition 1 (Size-optimized unit test generation). Given a module MM and executable quality metrics (c,m)(c,m), produce a collection T\mathcal{T} of suites and deliver the smallest suite of maximal hypervolume:

T⋆=arg⁡min⁡T∈Tmax⁡ s(T),Tmax⁡=arg⁡max⁡T∈T hv⁡(T).T^{\star} = \underset{T\in\mathcal{T}^{\max}}{\arg\min}\ s(T), \qquad\mathcal{T}^{\max} = \underset{T\in\mathcal{T}}{\arg\max}\ \operatorname{hv}(T).

Quality–diversity formulation. Definition 1 is the terminal objective; QD is the search surrogate. Larger suites are naturally advantaged in a global competition on (c,m)(c,m) [23, 40], so size becomes the behavior descriptor and quality is optimized independently within size niches, each keeping a Pareto front over (c,m)(c,m) rather than a single elite [45]:

Aj=nd⁡(c,m){T∈T:bj−1≤s(T)<bj},j=1,…,K,(1)\mathcal{A}_j = \operatorname{nd}_{(c,m)}\left\{T\in\mathcal{T}: b_{j-1}\le s(T)<b_j\right\}, \qquad j=1,\ldots,K, \tag*{(1)}

where nd takes the non-dominated subset and b0<⋯<bKb_0<\cdots<b_K are the niche boundaries, the outermost two left open (b0=0b_0=0, bK=∞b_K=\infty). The niches are geometric, since the variation in generated size grows with the size requested (§A).

Search loop and challenges. Each iteration (Figure 1) selects a target niche; takes as parents the Pareto-front suite nearest the target in log size on each side of it, ordered weaker to stronger since an

Overview of TESEARCH

Figure 1. Overview of TESEARCH. The archive (bottom) keeps a Pareto front on (coverage, mutation score) per size niche. (1) Size-UCB picks a target niche through the transition kernel; (2) the nearest front suite on each side of the target size becomes a parent; (3) parents, module, execution feedback and target size form the context; (4) the LLM writes a suite, possibly off the requested size; (5) the suite is filed where it lands, and the size error updates the kernel.

LLM weighs its most recent context most; prompts the LLM with the parents, the module annotated with its uncovered lines and surviving mutants, and the target size (§C and §D); then scores the suite and files it where it actually lands (Algorithm 1). The two challenges are allocation of the call budget and actuation.

tesearch

The landing kernel. Requesting a suite of size aa may produce one of size s≠as \ne a, so a call aimed at one niche may land in another and credit assigned to the target goes to the wrong arm. LLMs follow count instructions with multiplicative noise [31, 58, 69], so we model landing in log space,

ln⁡s∼N(ln⁡a+δ,σ2)(2)\ln s \sim\mathcal{N}(\ln a+\delta,\sigma^2) \tag*{(2)}

with δ\delta the systematic count bias and σ\sigma the residual spread. The bias varies across modules and backbones and enters the request directly, so it is estimated online and compensated before generation: for a target niche kk with center τk=bk−1bk\tau_k=\sqrt{b_{k-1}b_k}, inverting Equation (2) gives the request ln⁡ak=ln⁡τk−δ\ln a_k=\ln\tau_k-\delta, rounded to an integer. The spread only spreads credit over neighboring niches; it is stable and fixed at its holdout median. The landing distribution of a call aimed at niche kk is

pj(k)=Φ(ln⁡bj−μkσ)−Φ(ln⁡bj−1−μkσ),μk=ln⁡ak+δ(3)p_j(k)=\Phi\left(\frac{\ln b_j-\mu_k}{\sigma}\right)-\Phi\left(\frac{\ln b_{j-1}-\mu_k}{\sigma}\right),\qquad\mu_k=\ln a_k+\delta \tag*{(3)}

with Φ\Phi the standard normal distribution function, and once the suite is measured the bias is updated by the LMS delta rule [57], δ←(1−η)δ+η(ln⁡s−ln⁡a)\delta\leftarrow(1-\eta)\delta+\eta(\ln s-\ln a).

Size-annealing UCB. Niche selection is a bandit whose arms are the niches. The reward of a call is the increment Δ\Delta it adds to the multi-objective QD score [45], MOQD⁡(A)=∑jHV⁡(Aj)\operatorname{MOQD}(\mathcal{A})=\sum_j \operatorname{HV}(\mathcal{A}_j), the total area the niche fronts dominate, credited to the niche that the suite actually lands in, whether it improves a niche or populates an empty one. The acquisition is

UCB⁡(k)=∑jpj(k)(Q^j−λzj)+cenk+1,λ=max⁡(0,HVbest−H)(4)\operatorname{UCB}(k)=\sum_j p_j(k)(\widehat{Q}_j-\lambda z_j)+\frac{c_e}{\sqrt{n_k+1}},\qquad\lambda=\max(0,\mathrm{HV}^{\mathrm{best}}-H) \tag*{(4)}

where Q^j←(1−α)Q^j+αΔ\widehat{Q}_j\leftarrow(1-\alpha)\widehat{Q}_j+\alpha\Delta is the discounted reward of landing in niche jj, initialized for an unseen niche to the mean over observed ones; zj=(j−1)/(K−1)z_j=(j-1)/(K-1) is the normalized niche index; nkn_k counts the calls aimed at niche kk whether they landed; and cec_e is an exploration coefficient [5]. Two details are load-bearing. The kernel weights the exploitation term, because pj(k)p_j(k) is an actuator outcome distribution rather than a policy prior [5, 27]; and the size penalty sits inside the expectation, so what is penalized is the size a suite lands at, not the size aimed for. The size penalty λ\lambda stays at zero until the best hypervolume found so far reaches a threshold HH, and grows with it afterwards. The search therefore secures quality first and only then favors smaller suites, following the quality-then-size order of Definition 1.

Experiments

Setup

We use the 129 distinct Python modules of TestGenEval [24], each with a containerized harness. Mutants are produced per module by cosmic-ray [50] under a fixed seed and split into a search fold, which scores the search, and a held-out eval fold, which scores what is delivered. Every method runs under an identical budget of N=50N = 50 calls per module, on GPT-5.4, Claude Opus 4.8 and Gemini 3.1 Pro. The baselines are (i) Pynguin [35], the reference search-based tool for Python, matched in wall clock (6000 s) since it makes no model call; (ii) inference-time scaling: iterative refinement [49], best-of-NN [8, 32], beam search of width 5, and the context optimizers MIPROv2 and ACE [44, 68]; GEPA [1], whose single global Pareto pool over (c,m,−s)(c, m, -s) makes it the three-objective alternative to our formulation; and OpenEvolve [43], an open implementation of AlphaEvolve [41] that evolves suites in a MAP-Elites archive under the same feedback; (iii) the coding agents Claude Code and Cursor [3, 4], told to maximize quality and minimize size, with harness feedback as tool output; and (iv) ablations: w/o kernel asks for the niche center as written and credits each arm where its calls land; w/o UCB sweeps the grid uniformly while keeping the aim; w/o nearest parents samples parents at random from the fronts; w/o λ\lambda sets λ=0\lambda= 0.

Test-suite quality

Table 1 reports the delivered suite. TESEARCH attains the highest hypervolume on every backbone, 7.0–8.5 points above the strongest baseline, in the smallest suites any LLM-based method delivers. Pynguin delivers fewer tests, but at hv = 0.090: size is a coordinate here, not the objective. The two population-based baselines isolate the formulation. OpenEvolve also keeps an archive and is the strongest baseline on GPT-5.4, but its archive is not indexed by size, so it holds nothing small to hand back and delivers 51.5 tests. GEPA puts −s-s in the objective, admitting near-empty suites as non-dominated and leaving a front wide in size but shallow in quality. The ablations separate on the axis each mechanism moves: removing λ\lambda costs little quality (−0.02-0.02 to −0.06-0.06 hv) but grows suites 1.5–2.9×; removing the kernel inflates size hardest where the actuator overshoots most (+11.7 and +27.0 tests on Claude Opus 4.8 and Gemini 3.1 Pro), since credit piles up in the larger niches that off-target calls reach; removing UCB or the nearest parents costs quality and size on all three backbones.

Methodcovmuthvsizecovmuthvsizecovmuthvsize
SBSTPynguin*0.4640.1570.09020.4
GPT-5.4Claude Opus 4.8Gemini 3.1 Pro
Inference-time scalingIter. refinement0.7980.6470.51650.80.8420.8490.71672.50.6940.7640.53956.8
Best-of-NN0.9080.7580.69347.60.9530.8610.82461.50.8370.8230.69151.4
Beam search0.8590.9050.77544.50.9710.9100.88668.80.8900.9340.83852.6
MIPROv20.9270.8020.74648.30.9720.8910.87063.10.8590.8530.73653.1
GEPA0.9290.7860.73247.90.9820.9110.89567.20.8450.8570.73254.7
ACE0.9140.7530.69252.40.9380.8780.82764.40.8350.8260.69255.5
OpenEvolve0.9630.8580.83151.50.9640.9170.88568.00.9300.8530.79856.6
Coding agentsClaude Code————0.9820.9080.89151.6————
Cursor0.9130.7620.69944.40.9670.8780.85248.20.8460.8260.70137.0
Ablationsw/o kernel0.9740.8840.86640.10.9880.9290.91740.80.9050.9420.85563.3
w/o UCB0.9730.8810.86144.10.9950.9640.96034.40.9060.9370.85142.3
w/o near. parents0.9850.8570.84739.20.9840.9490.93433.20.9220.9370.86439.4
w/o λ\lambda0.9810.8800.86558.80.9910.9610.95484.60.9090.9340.85273.4
TESEARCH (full)0.9950.9200.91638.60.9980.9770.97629.10.9400.9630.90836.3

Table 1. Delivered suite on the 129 TestGenEval modules, means over modules, same call budget for every method. Higher is better except size, ranked separately; the smallest per backbone is in blue. Claude Code runs only on its own backbone. *Pynguin is matched in wall clock and scored on the 40 modules it supports.

The actuator and the anneal. Over 6063 TESEARCH generations on GPT-5.4, the count bias δ\delta ranges from −0.037 to +0.107 across modules and changes sign, so no fixed correction serves all; online, the log-size residuals have mean 0.013 and standard deviation 0.100, as the kernel assumes. Allocation is selective without collapsing: grouped into eight normalized size bands, no band falls below a 0.067 share of calls in any window. Against constant and no size pressure, only the quality-gated ramp finishes both highest in quality and smallest in size.

Improvement signal for a self-evolving agent

Setup. We study the keep-or-discard decision on mini-swe-agent [51], an open variant of SWE-agent [61] whose harness is a few hundred lines of Python. For each of eight harness modules, GPT-5.4 receives a revision intent drawn from common self-improvement goals (latency, tokens, robustness, structure), either behavior-preserving or behavior-changing, and implements it as a revised module, 64 per module; each behavior-changing intent is the failure mode of a preserving one with the same goal and shape of edit, such as caching a function that reads changing state (§E). Two annotators verify each revision (κ=0.74\kappa= 0.74), leaving the 470 of Table 2, labeled divergent if the intent changes behavior and equivalent otherwise. A gate rejects a revision when its suite fails where it passed on the unmodified module; the TESEARCH suite is generated once from that module and compared with its repository tests.

ModuleRole in the harnessdiv/eqRepository tests DDRRepository tests FARRepository tests sTESEARCH DDRTESEARCH FARTESEARCH s
agents/defaultagent loop: model calls, actions, limits17/410.5290.00015.70.5880.0493.0
environments/localruns bash commands, captures output25/310.7200.0004.90.9200.0653.3
actions_toolcallparses tool calls; renders observations29/340.2760.0003.00.5520.0293.1
actions_textparses text actions; renders observations25/350.0400.0007.70.5600.0292.9
cache_controlplaces prompt-cache breakpoints29/260.1720.0002.90.4140.0383.0
content_stringflattens messages to text for display35/250.0570.0002.90.6000.0402.9
litellm_modelmodel client: API call, retry, cost38/250.0260.0007.10.4210.0806.7
serializemerges layered config dictionaries19/360.5790.0002.90.9470.0003.1
Pooled217/2530.2530.0005.90.5990.0403.5

Table 2. Improvement signals for self-revisions of mini-swe-agent’s harness. div/eq: divergent / equivalent revisions in the module’s pool. DDR: divergent revisions rejected (↑); FAR: equivalent revisions rejected (↓); s: mean wall clock per decision.

Results. TESEARCH rejects 59.9% of divergent revisions against 25.3% for the repository tests, and more on every module (Table 2). Repository tests check that a module performs its function; a mutation-optimized suite also pins the details a mutant perturbs, such as a separator, a default or which exception surfaces, so the gap is widest on modules that parse model outputs or render what the model reads. The tighter constraint costs little: TESEARCH rejects 10 of the 253 equivalent revisions, a 4.0% false-alarm rate, where the repository tests reject none. A decision takes 3.5 s against 5.9 s and calls no model, where acceptance by rollout spends an agent episode: the agent can afford this signal on every rewrite it proposes.

Conclusion

Self-evolving agents now rewrite their own harness fluently; what they cannot yet tell is whether a self-referential edit is correct and leaves existing behavior intact. This paper targets that gap with a quality–diversity evolutionary search that treats suite size as a behavior descriptor, so quality is pursued at every size and a small, strong suite is reachable, and learns a transition kernel during the search that denoises the LLM as an actuator on that descriptor. Across 129 modules and three backbones the resulting suites are the strongest of any method compared and the smallest of any LLM-based one, and as the gate of a self-evolving agent they reject 59.9% of behavior-changing rewrites against 25.3% for the repository’s tests, at 3.5 s per decision and no model call. TESEARCH is thus an effective improvement signal for self-evolving agents: strong enough to catch what a rewrite silently broke, cheap enough to run on every rewrite.

The size-niched grid

Suite size is the archive’s only descriptor, and the noise on it is multiplicative: asking for twice as many tests does not add a fixed error, it scales the error, which is why § 4 models landing as log-normal. The grid is therefore a partition of ln⁡s\ln s built once, immediately after the seed phase. The grid is centered on an anchor sˉ\bar{s}, the size the backbone writes at when no size is named, estimated as the geometric mean of the seed suites’ sizes. Writing T1,…,TnT_1,\ldots,T_n for the nn seed suites that measured,

sˉ=exp⁡(1n∑i=1nln⁡s(Ti)).(5)\bar{s} = \exp\left(\frac{1}{n}\sum_{i=1}^{n}\ln s(T_i)\right). \tag*{(5)}

The mean is taken on the log scale because the noise is multiplicative, and the seeds are unhinted precisely so that the anchor measures the model rather than our own prompt.

Niches are geometric, with equal width on the log scale. This is the spacing used whenever values within a constant factor of each other are interchangeable, as in MetaGrad’s exponentially spaced grid of learning rates [53], and whenever error is relative rather than absolute, as in DDSketch, whose bucket ratio is set by the relative accuracy it guarantees [38]. Under multiplicative noise, both hold for suite sizes. Consecutive niches differ by the ratio ρ=e2σ=1.22\rho= e^{2\sigma} = 1.22, where σ=0.10\sigma= 0.10 is the landing spread of the transition kernel (§ 4), so each niche spans ±σ\pm\sigma around its center on the log scale. This width is intended: since § 4 models landing noise as log-normal, an aimed draw lands in the niche it was aimed at with probability 68% under the model.

The grid is built per module over the range [smin⁡,sˉργ][s_{\min},\bar{s}\rho^\gamma], and both ends follow conventions of software testing [40, 52]. The lower end is set by the module: smin⁡s_{\min} is the number of public functions and methods of the module under test, counted statically from its AST. A suite with fewer tests than that must check several of them in one test method, which is the Eager Test smell: such a test is hard to read, hard to use as documentation of the behavior it checks, and makes tests more dependent on each other, and the prescribed remedy is to split it until each test method exercises a single method of the unit [52]. The floor also guards against reward hacking, in which the LLM packs all its checks into a Algorithm 1 TESEARCH on one module. LLM is the frozen backbone; MEASURE executes a suite in the module’s container and returns (c,m)(c,m) on its passing subset together with its written size ss.

Input: module MM; call budget NN; seeds nseedn_{\mathrm{seed}}; hyperparameters σ\sigma, η\eta, α\alpha, cec_e, HH

Output: one delivered suite

Seed phase — the grid does not exist yet, so nothing can be discarded on it.

  1. for i=1,…,nseedi=1,\ldots,n_{\mathrm{seed}} do

  2. Ti←LLM⁡(SEED⁡,M)T_i \leftarrow\operatorname{LLM}(\operatorname{SEED},M) // unhinted: no count is named

  3. MEASURE⁡(Ti)\operatorname{MEASURE}(T_i); file TiT_i provisionally, dominance off

  4. end for

  5. sˉ←\bar{s}\leftarrow Eq. (5) on the measured seed sizes; smin⁡←s_{\min}\leftarrow public functions and methods of MM

  6. derive b0…bKb_0\ldots b_K over [smin⁡,sρˉγ][s_{\min},s_{\bar{\rho}}^\gamma] (§A); re-file the archive under them

  7. δ←0\delta\leftarrow0; nk←0n_k\leftarrow0 for all kk; hvbest←max⁡ihv(Ti)\mathrm{hv}^{\mathrm{best}}\leftarrow\max_i\mathrm{hv}(T_i)

  8. replay the seed landings into Q^\widehat{Q} // a seed asked for no size

Search.

  1. while fewer than NN calls have been spent do

  2. if the archive is empty then // only after every seed failed to measure

  3. regenerate unhinted, measure, file; continue

  4. end if

  5. for k=2,…,K−1k=2,\ldots,K-1 do // the overflow niches 1 and KK are never aimed at

  6. Pk←P_k\leftarrow the front member nearest τk\tau_k in log size on each side of τk\tau_k // §C

  7. ak←exp⁡(ln⁡τk−δ)a_k\leftarrow\exp(\ln\tau_k-\delta) // the aim, § 4

  8. pj(k)←p_j(k)\leftarrow Eq. (3) at aka_k, for every jj // the kernel, run forward

  9. Sk←∑jpj(k)(Q^j−λzj)+ce/nk+1S_k\leftarrow\sum_j p_j(k)(\widehat{Q}_j-\lambda z_j)+c_e/\sqrt{n_k+1} // Eq. (4)

  10. end for

  11. k∗←arg max⁡2≤k≤K−1Skk^*\leftarrow\operatorname*{arg\,max}_{2\leq k\leq K-1}S_k // deterministic; the bonus already schedules variety

  12. mode←COMPRESS\mathrm{mode}\leftarrow\mathrm{COMPRESS} if τk∗\tau_{k^*} lies below the last parent of Pk∗P_{k^*}, else EXPAND\mathrm{EXPAND} // Table 4

  13. T←LLM⁡BREED[mode],M,Pk∗,ak∗T\leftarrow\operatorname{LLM}_{\mathrm{BREED}}[\mathrm{mode}],M,P_{k^*},a_{k^*}

  14. nk∗←nk∗+1n_{k^*}\leftarrow n_{k^*}+1 // the ask is charged, measured or not

  15. if MEASURE⁡(T)\operatorname{MEASURE}(T) succeeds then

  16. file TT in the niche of its written size, j←niche⁡(s(T))j\leftarrow\operatorname{niche}(s(T))

  17. Δ←\Delta\leftarrow increment of MOQD, clipped to [0,1][0,1] // the reward

  18. δ←(1−η)δ+η(ln⁡s(T)−ln⁡ak∗)\delta\leftarrow(1-\eta)\delta+\eta(\ln s(T)-\ln a_{k^*}) // LMS update

  19. Q^j←Q^j+α(Δ−Q^j)\widehat{Q}_j\leftarrow\widehat{Q}_j+\alpha(\Delta-\widehat{Q}_j) // credited where it landed

  20. hvbest←max⁡(hvbest,hv(T))\mathrm{hv}^{\mathrm{best}}\leftarrow\max(\mathrm{hv}^{\mathrm{best}},\mathrm{hv}(T)); recompute λ\lambda by Eq. (4)

  21. end if

  22. end while

  23. return the smallest-written suite among those of maximal hv // Definition 1

Case (order)TT against its neighborHypervolume of TTEmitted note
compress<br>(S,L,T)(S,L,T)smaller than LLhv⁡(T)≥hv⁡(L)\operatorname{hv}(T) \ge\operatorname{hv}(L)perfect improved version of prev (hypervolume grow or hold from <hv(L)>, size decline <size(L)>-><n>)
expand<br>(L,S,T)(L,S,T)larger than SShv⁡(T)>hv⁡(S)\operatorname{hv}(T) > \operatorname{hv}(S)improved version of prev (hypervolume grow from <hv(S)>, size grow <size(S)>-><n>)

Table 4. What the target TT must achieve against the parent placed next to it. SS and LL are the parents below and above the target size. The requirement is asymmetric in hypervolume because the step toward TT changes size in opposite directions.

single test function to game the size reward. The upper end is relative to the anchor, γ\gamma niches above it, and so scales with the size of the module. In software testing, the effectiveness of a suite grows with its size [23], but only logarithmically [40]. Beyond a minimal suite, one from which no test can be removed without lowering its mutation score, further tests add nothing but code smells such as Lazy Test and Test Code Duplication [52]. To keep suite size from growing without bound, and to avoid spending calls on unreasonably large suites, we set γ=4\gamma=4. The boundaries that fall inside the range, sorted and with duplicates dropped, are b1<⋯<bK−1b_1<\cdots<b_{K-1}. A suite outside the range is filed rather than dropped, into one of two open overflow niches, [0,b1)[0,b_1) and [bK−1,∞)[b_{K-1},\infty); the bandit never aims at them, and a call that lands in one is still charged to the arm it aimed at.

The search loop

Algorithm 1 states the whole method.

Parent selection and context assembly

Given the selected niche k∗k^*, TESEARCH selects two parents from all Pareto-front suites in the archive, rather than only from the target niche. Specifically, one parent is taken from each side of the target size: on each side, suites are ranked by their log-size distance to the target,

∣ln⁡s(T)−ln⁡τk∗∣\lvert\ln s(T) - \ln\tau_{k^*} \rvert

with hypervolume breaking ties, and the nearest suite is selected. Using the global archive allows generation even when the target niche is empty, while size proximity provides examples at a scale close to the requested suite.

The generation context consists of the module under test, execution feedback, the two selected parents, and the requested size. Execution feedback highlights uncovered lines and surviving mutants. The parents are ordered from weaker to stronger, placing the stronger example closest to the generation request. Finally, the LLM is instructed to generate a suite of the requested size by compressing or extending the last parent, according to whether the target lies below or above it. §D provides the full prompt.

Parent selection. Parents are selected by size proximity from the two sides of the target: the Pareto-front suite nearest τk∗\tau_{k^*} in log size among those smaller than the target, and the nearest among those larger. Because the grid is geometric, the niche index is log size up to a constant, so each side is a one-dimensional nearest-neighbor lookup. The two parents therefore always differ in size, and their relation in Table 3 follows from their hypervolumes: if the smaller parent has no lower hypervolume, it Pareto-dominates the larger one; otherwise the larger one lexicographically dominates it. When one side has no suite, the parents come from the other side alone; in that edge case the call must compress or expand the suite toward the target while raising its hypervolume. The pool is global rather than niche-local for a structural reason: the acquisition frequently selects a niche no suite has reached yet, and a draw restricted to that niche’s own front would leave exactly those targets unbreedable. The w/o nearest-parents ablation replaces the ranking with a uniform draw over the same pool and changes nothing else — the candidates are still front members, so nothing dominated is ever shown, and the ordering rule below still applies.

TypeCondition on (prev, curr)Emitted note
Pareto dominanceno lower hypervolume and smaller sizeperfect improved version of prev (hypervolume grow 0.852→0.916, size decline 24→13)
lexicographic dominancehigher hypervolume and larger sizeimproved version of prev (hypervolume grow ..., size grow ...)

Table 3. The comparison note attached to the second parent.

Ordering and annotation. The two parents and the target are arranged ascending under the order of Definition 1 — by hypervolume first, and by smaller size only when hypervolumes are equal — with the target always last, immediately before the continuation, where recency weighs the nearest example most [33, 60, 70]. With one parent on each side of the target size, the arrangement takes one of two mirror forms (from Table 4). If the larger parent LL has the higher hypervolume, the order is S,L,TS, L, T: LL lexicographically dominates SS, and the target TT must Pareto-dominate LL, compressing it to the target size at no lower hypervolume. Otherwise the order is L,S,TL, S, T: SS Pareto-dominates LL, and TT must lexicographically dominate SS, expanding it to the target size at strictly higher hypervolume. The asymmetry is deliberate: a smaller suite at equal hypervolume is already an improvement under Definition 1, and the only one left once hypervolume saturates, whereas a larger suite is worth its extra tests only if it raises hypervolume. The second parent carries a one-line note comparing it with the first, in one of the two forms of Table 3; the note states the measured change in both hypervolume and size, so it is always a measured claim rather than an inferred narrative.

Table 3: The comparison note attached to the second parent. Together with the target, which always comes last, the ordered parents form a gradient along the order on (hv, size), so the strongest example sits nearest the output position, where the model’s recency bias weighs it most [33, 60, 70]. Because the parents lie on opposite sides of the target size and are ordered first, the later of the two is never the weaker, so the relation reduces to two cases, and the note reports both changes with their numbers.

Table 4: What the target TT must achieve against the parent placed next to it. SS and LL are the parents below and above the target size. The requirement is asymmetric in hypervolume because the step toward TT changes size in opposite directions.

Prompt construction

With the two parents chosen and ordered (§C), three further decisions turn them into a prompt: which of the two breeding framings the call is given, what execution signal is written into the module source, and how much of each piece is shown.

Feedback signal. The module source shown in a breeding prompt is annotated with what the strongest parent still misses, written at the end of the exact line it describes rather than as a separate list of line numbers: # <- NOT COVERED YET on a line none of its passing tests execute, and # <- SURVIVING MUTANT: <op> on a line where that mutation survives its assertions. Failing tests inside an example suite are marked the same way, at the end of the (possibly multi-line) def header, as # <- FAILING: <exception>. Adjacency is the point: models align a mark sitting next to the code far more reliably than a position given in a distant block of text. Coverage only ever flags executable statement lines, so a trailing comment is syntactically safe wherever a mark can land.

Prompts, verbatim. Below are the three system prompts and the user prompt skeleton, exactly as the implementation emits them; a bracketed [...] marks text repeated verbatim from the prompt above it, and <...> marks a slot filled at run time. Throughout this appendix, system prompts are marked in blue and user prompts in gray.

System Prompt — SEED

Figure system-prompt-seed. System Prompt — SEED

You write ONE complete, self-contained Python test suite (pytest style) for the target module. Output ONLY the suite source - no prose, no fences. The suite must include its own fixture scaffolding at module level: import the SUT, bootstrap the runtime, stub collaborators, build inputs - then the tests. EVERY test must pass against the module as given. Compute expected values yourself by reading the module source. Prefer many small, strongly-asserting tests spread across ALL functions/classes of the module.

System Prompt — BREED, compression mode

Figure system-prompt-breed-compression-mode. System Prompt — BREED, compression mode

You write ONE complete, self-contained Python test suite (pytest style) for the target module - a GLOBAL, whole-suite generation, not targeted at any one function or region. Output ONLY the suite source - no prose, no fences. The suite must include its own fixture scaffolding at module level: import the SUT, bootstrap the runtime, stub collaborators, build inputs - then the tests. EVERY test must pass against the module as given. Compute expected values yourself by reading the module source. You will be shown EXISTING versions of this suite, ordered from weakest to strongest by hypervolume (coverage x mutation-kill), the smaller one ranking stronger when hypervolumes are equal; the LAST one is the strongest shown. Each is labeled with its own size/coverage/mutation-kill numbers, and the second carries a short, factual note pointing to the version immediately before it. Some tests in the versions you are shown FAIL against the module as given; each is marked # <- FAILING: <exception> at the end of its def line, and the numbers in that version's header were measured on its PASSING tests only. Your task is CONSOLIDATION, not writing from scratch: target the target size is BELOW that shown. Rewrite that version DOWN to the target size with a hypervolume at least as high as its own, and higher if you can; merge related assertions into fewer, denser tests; share setup; fold parametrizable cases together with pytest.mark.parametrize; drop only what is truly redundant. Do NOT drop that version's strong, exact-value assertions - they are what kills the mutants. Repair a failing test if its intent is worth keeping at the target size; otherwise drop it - it is contributing nothing to the numbers today.

System Prompt — BREED, extension mode

[...] Your task is EXTENSION, not writing from scratch: the target size is ABOVE the last version. Grow that version UP to the target size, and make the added tests raise its hypervolume: a larger suite whose hypervolume does not rise is worse than the version you started from. KEEP that version’s tests and their strong, exact-value assertions (verbatim or lightly refactored), and ADD new, strongly-asserting tests that execute the ‘# <-- NOT COVERED YET’ lines and assert exact values/branches around each ‘# <-- SURVIVING MUTANT’ so the mutation would fail. Do not pad with redundant tests - every added test should close an annotated gap. Failing tests carry real testing intent - REPAIR them by reading the module source and fixing the expected value, rather than deleting them, unless the same behaviour is already checked elsewhere.

The user prompt is the three pieces and the ask, in order: the module with the residual signal marked inline, the count, then the ordered parents, strongest last.

User Prompt — BREED (<...> are substituted at run time)

[TARGET MODULE] <dotted.module.path>

[MODULE SOURCE - annotated with what the LAST (best) suite below still misses: ‘# <-- NOT COVERED YET’ marks lines none of its tests execute; ‘# <-- SURVIVING MUTANT: <op>’ marks lines where that mutation survives its assertions. Cover those lines, and assert exact values/branches around each surviving mutant so the mutation would fail]

<module source, in full, with inline residue marks>

[TARGET SIZE] exactly 18 test functions. This is a HARD REQUIREMENT: the suite MUST contain exactly 18 functions whose name starts with ‘test_’. Count them before you finish and adjust until the count is 18

[test_suite_v0 - size=24 green=22 pass_rate=0.917 coverage=0.947 mutation=0.900 loc=476]

(2 of its 24 tests FAIL - each marked inline below; the coverage/mutation above come from the 22 that pass)

<weaker parent, in full>

[test_suite_v1 - size=13 green=13 pass_rate=1.000 coverage=0.982 mutation=0.933 loc=273]

(perfect improved version of prev (hypervolume grow 0.852->0.916, size decline 24->13))

<stronger parent, in full>

Write test_suite_v2 now: the next, improved complete suite. Complete file, no prose, no fences.

An arm whose niche the archive cannot supply parents for at all — only possible before the archive has any occupant — falls back to the seed prompt with the size instruction appended.

Revision intents and examples

The self-evolving experiment of §5.3 revises eight modules of mini-swe-agent [51], chosen to cover the harness end to end: the agent loop, the local execution environment, the two action parsers, the cache-breakpoint policy, the message flattener, the model client and the config merger (Table 2 gives the role of each). For each module, GPT-5.4 is shown the module source together with a revision intent and returns one complete revised module. Intents are drawn from the fixed list in Table 5, which covers the kinds of self-modification a harness-evolving agent proposes in practice: a behavior-preserving intent asks for the module to be improved without changing what it does, and a behavior-changing intent asks for an edit that alters observable behavior. Table 6 shows representative revisions of each kind.

Table 5: Revision intents. Class is what the intent asks for, not what the revision turns out to do; a revision enters Table 2 only if human verification confirms that it realizes its intent (§ 5.3). Intents come in pairs: each behavior-changing intent is the failure mode of the behavior-preserving intent above it, with the same goal and the same shape of edit. nn counts revisions generated under each intent, pooled over the eight modules.

FamilyIntentClassnn
Performancecache a function whose result depends only on its argumentspreserving16
Performancecache a function that reads changing state (clock, counter, file)changing16
Performancelist to set, where order and duplicates are unusedpreserving16
Performancelist to set, where order or duplicates are relied onchanging16
Performancebatch independent calls, keeping results and their orderpreserving16
Performancebatch calls, changing which error surfaces and whenchanging16
Performancereturn early where no side effect followspreserving16
Performancereturn early, skipping a side effect (log, counter, cleanup)changing16
Tokenshorten the output, keeping every field a reader usespreserving16
Tokenshorten the output, changing a key or separator a reader parseschanging16
Tokentruncate long output, keeping head and tail with a markerpreserving16
Tokentruncate long output, keeping only the headchanging16
Tokenstop emitting a field that no code readspreserving16
Tokenstop emitting a field read only on a rare path (e.g., errors)changing16
Tokenmerge repeated outputs that are byte-identicalpreserving16
Tokenmerge outputs that print alike but differ (e.g., exit code)changing16
Robustnessretry a call that is safe to repeatpreserving16
Robustnessretry a call whose repetition has an extra effectchanging16
Robustnessadd a timeout that reports expiry as a failurepreserving16
Robustnessadd a timeout that returns partial output as completechanging16
Robustnessnarrow except Exception to every type the block raisespreserving16
Robustnessnarrow except Exception, missing a type the block raiseschanging16
Robustnesshandle None where the value is legitimately optionalpreserving16
Robustnessreturn None silently where the code should raisechanging16
Structureextract a helper, keeping captured variables and defaultspreserving16
Structureextract a helper, changing a captured variable or defaultchanging16
Structuregroup parameters into a fresh object per callpreserving16
Structuregroup parameters into an object shared across callschanging16
Structuremerge two branches with identical bodiespreserving16
Structuremerge two nearly identical branches, losing the differencechanging16
Structureadd type hints and docstrings onlypreserving16
Structureadd type hints plus a small change to a conversion or defaultchanging16
Total512

Table 5. Revision intents.

ModuleIntentWhat the revision didLabel
agents/defaultnarrow except Exception, missing a type the block raisesnarrows except Exception around the model call to ValueError and TypeError; a model raising KeyError or OSError now escapes the loopdiv
environments/localreturn early, skipping a side effect (log, counter, cleanup)checks for the submission sentinel only when the command failed, so a successful submit no longer ends the episodediv
environments/localextract a helper, keeping captured variables and defaultsmoves the decoding of a failed command’s partial output into a module-level helper, called at the same point on the same exceptioneq
actions_toolcalllist to set, where order and duplicates are unusedtests for the required command argument with a one-element set’s issubset instead of ineq
actions_textcache a function that reads changing state (clock, counter, file)reads the clock once at import, so every observation carries the same stale timestampdiv
cache_controlstop emitting a field read only on a rare path (e.g., errors)deletes both places that attach the ephemeral cache_control marker, so no breakpoint is ever setdiv
cache_controlcache a function whose result depends only on its argumentscaches the content-text lookup behind a function that returns its argument, so a cache hit returns what a fresh call wouldeq
serializemerge two branches with identical bodiesfolds the merge-into-existing and fresh-copy branches into one call, passing None for a missing previous value, which the merge already skipseq

Table 6. Example divergent and equivalent revisions for six of the eight harness modules, with the revision intent and content. eq and div abbreviate equivalent and divergent.

Additional related work

Self-evolving agents in verticals. A general-purpose agent becomes useful in a vertical domain through knowledge its weights do not hold, and with frozen weights (§ 2) it evolves by how that knowledge is streamed in, managed and retrieved. Streaming turns raw domain input, arriving continuously, into a structured form an agent can consume: knowledge graphs constructed from unstructured threat reports [10], hybrid system logs parsed by a user-adaptive parser [59], and natural language translated into first-order logic that symbolic reasoners can consume [46]. Management organizes and revises what has been accumulated: cyber threat intelligence (CTI) corpora organized into agent-native scaffolds that agents consume directly [13], documentation optimized as repository-specific playbooks for coding agents [12], and behavioral specifications of program entities refined recursively from the failures of the code generated from them [11], where a local improvement must be kept from causing a regression elsewhere. Retrieval decides what of it reaches the agent at decision time, as benchmarked for retrieval-augmented LLMs over heterogeneous CTI sources [14]. Across the three stages, what lets a vertical agent evolve rather than drift is a signal, grounded in its domain, that decides which revisions of its knowledge to keep: knowledge graphs, corpora and parsers are typically judged once, by extraction or answer accuracy, and specifications and documentation by tests taken as given. This paper turns to that signal itself. In software, where it is executable, we search for the test suite that serves as it, strong enough to catch a revision that silently changes behavior and small enough to run on every revision, whether what is revised is documentation, a specification or, as in § 5.3, the agent’s own harness.

References

  1. [1]Lakshya A. Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong, Arnav Singhvi, Herumb Shandilya, Michael J. Ryan, Meng Jiang, et al. GEPA: Reflective prompt evolution can outperform reinforcement learning. In ICLR, 2026.
  2. [2]Nadia Alshahwan, Jubin Chheda, Anastasia Finogenova, Beliz Gokkaya, Mark Harman, Inna Harper, Alexandru Marginean, Shubho Sengupta, and Eddy Wang. Automated unit test improvement using large language models at Meta. In FSE Companion, 2024.
  3. [3]Anthropic. Claude Code: an agentic coding tool, 2025. https://claude.com/claude-code.
  4. [4]Anysphere. Cursor: AI coding agent for building ambitious software, 2026. https://cursor.com.
  5. [5]Peter Auer, Nicolò Cesa-Bianchi, and Paul Fischer. Finite-time analysis of the multiarmed bandit problem. Machine Learning, 2002.
  6. [6]Yuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, et al. Constitutional AI: Harmlessness from AI feedback. arXiv preprint arXiv:2212.08073, 2022.arxiv.org/abs/2212.08073
  7. [7]Bei Chen, Fengji Zhang, Anh Nguyen, Daoguang Zan, Zeqi Lin, Jian-Guang Lou, and Weizhu Chen. CodeT: Code generation with generated tests. In ICLR, 2023.arxiv.org/abs/2207.10397
  8. [8]Guoxin Chen, Minpeng Liao, Chengxi Li, and Kai Fan. AlphaMath almost zero: Process supervision without process. In NeurIPS, 2024.
  9. [9]Xinyun Chen, Maxwell Lin, Nathanael Schärli, and Denny Zhou. Teaching large language models to self-debug. In ICLR, 2024.
  10. [10]Yutong Cheng, Osama Bajaber, Saimon Amanuel Tsegai, Dawn Song, and Peng Gao. CTINexus: Automatic cyber threat intelligence knowledge graph construction using large language models. In IEEE European Symposium on Security and Privacy (EuroS&P), 2025.
  11. [11]Yutong Cheng, Haifeng Chen, Peng Gao, and Wei Cheng. SpecForge: Recursive self-improvement for coding agents via behavioral specifications. In NeurIPS, 2026.
  12. [12]Yutong Cheng, Haifeng Chen, Wenchao Yu, Xujiang Zhao, Peng Gao, and Wei Cheng. Escaping whack-a-mole: Optimizing documentation as repo-specific playbooks for coding agents. In ICML, 2026.
  13. [13]Yutong Cheng, Changze Li, Qian Cui, Wei Ding, Lingzhi Wang, Yan Chen, and Peng Gao. CTIFoundry: An agent-native corpus scaffold for cyber threat intelligence. arXiv preprint arXiv:2608.18613, 2026.
  14. [14]Yutong Cheng, Yang Liu, Changze Li, Dawn Song, and Peng Gao. CTIConnect: A benchmark for retrieval-augmented LLMs over heterogeneous cyber threat intelligence. In KDD, 2026.
  15. [15]Antoine Cully and Yiannis Demiris. Quality and diversity optimization: A unifying modular framework. IEEE Transactions on Evolutionary Computation, 2018.DOI
  16. [16]Kalyanmoy Deb, Amrit Pratap, Sameer Agarwal, and T. Meyarivan. A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Transactions on Evolutionary Computation, 2002.
  17. [17]Chrisantha Fernando, Dylan Banarse, Henryk Michalewski, Simon Osindero, and Tim Rocktäschel. Promptbreeder: Self-referential self-improvement via prompt evolution. In ICML, 2024.
  18. [18]Gordon Fraser and Andrea Arcuri. EvoSuite: automatic test suite generation for object-oriented software. In ESEC/FSE, 2011.
  19. [19]David E. Goldberg and Jon Richardson. Genetic algorithms with sharing for multimodal function optimization. In ICGA, 1987.
  20. [20]Patrick Haluptzok, Matthew Bowers, and Adam Tauman Kalai. Language models can teach themselves to program better. In ICLR, 2023.
  21. [21]Mary Jean Harrold, Rajiv Gupta, and Mary Lou Soffa. A methodology for controlling the size of a test suite. ACM Transactions on Software Engineering and Methodology, 1993.
  22. [22]Shengran Hu, Cong Lu, and Jeff Clune. Automated design of agentic systems. In ICLR, 2025.arxiv.org/abs/2408.08435
  23. [23]Laura Inozemtseva and Reid Holmes. Coverage is not strongly correlated with test suite effectiveness. In ICSE, 2014.DOI
  24. [24]Kush Jain, Gabriel Synnaeve, and Baptiste Rozière. TestGenEval: A real world unit test generation and test completion benchmark. In ICLR, 2025.arxiv.org/abs/2410.00752
  25. [25]Yue Jia and Mark Harman. An analysis and survey of the development of mutation testing. IEEE Transactions on Software Engineering, 2011.DOI
  26. [26]Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. SWE-bench: Can language models resolve real-world GitHub issues? International Conference on Learning Representations, 2024.arxiv.org/abs/2310.06770
  27. [27]Donald R. Jones, Matthias Schonlau, and William J. Welch. Efficient global optimization of expensive black-box functions. Journal of Global Optimization, 13(4):455–492, 1998.DOI
  28. [28]Robert Tjarko Lange, Yuki Imaju, and Edoardo Cetin. ShinkaEvolve: Towards open-ended and sample-efficient program evolution. In ICLR, 2026.arxiv.org/abs/2509.19349
  29. [29]Hung Le, Yue Wang, Akhilesh Deepak Gotmare, Silvio Savarese, and Steven C. H. Hoi. CodeRL: Mastering code generation through pretrained models and deep reinforcement learning. In NeurIPS, 2022.arxiv.org/abs/2207.01780
  30. [30]Joel Lehman and Kenneth O. Stanley. Abandoning objectives: Evolution through the search for novelty alone. Evolutionary Computation, 2011.DOI
  31. [31]Jiaming Li, Lei Zhang, Yunshui Li, Ziqiang Liu, Yuelin Bai, Run Luo, Longze Chen, and Min Yang. Ruler: A model-agnostic method to control generated length for large language models. In Findings of EMNLP, 2024.arxiv.org/abs/2409.18943
  32. [32]Yujia Li, David Choi, Junyoung Chung, Nate Kushman, Julian Schrittwieser, Rémi Leblond, Tom Eccles, James Keeling, Felix Gimeno, Agustin Dal Lago, et al. Competition-level code generation with AlphaCode. Science, 2022.DOI
  33. [33]Nelson F. Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang. Lost in the middle: How language models use long contexts. Transactions of the Association for Computational Linguistics, 2024.arxiv.org/abs/2307.03172
  34. [34]Xinghua Lou, Miguel Lázaro-Gredilla, Antoine Dedieu, Carter Wendelken, Wolfgang Lehrach, and Kevin P. Murphy. AutoHarness: improving LLM agents by automatically synthesizing a code harness. arXiv preprint arXiv:2603.03329, 2026.arxiv.org/abs/2603.03329
  35. [35]Stephan Lukasczyk and Gordon Fraser. Pynguin: Automated unit test generation for Python. In ICSE Companion, 2022.
  36. [36]Yecheng Jason Ma, William Liang, Guanzhi Wang, De-An Huang, Osbert Bastani, Dinesh Jayaraman, Yuke Zhu, Linxi Fan, and Anima Anandkumar. Eureka: Human-level reward design via coding large language models. In ICLR, 2024.arxiv.org/abs/2310.12931
  37. [37]Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder, Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh, and Peter Clark. Self-refine: Iterative refinement with self-feedback. In NeurIPS, 2023.arxiv.org/abs/2303.17651
  38. [38]Charles Masson, Jee E. Rim, and Homin K. Lee. DDSketch: A fast and fully-mergeable quantile sketch with relative-error guarantees. Proceedings of the VLDB Endowment, 2019.DOI
  39. [39]Jean-Baptiste Mouret and Jeff Clune. Illuminating search spaces by mapping elites. arXiv preprint arXiv:1504.04909, 2015.DOI
  40. [40]Akbar Siami Namin and James H. Andrews. The influence of size and coverage on test suite effectiveness. In ISSTA, 2009.DOI
  41. [41]Alexander Novikov, Ngân Vũ, Marvin Eisenberger, Emilien Dupont, Po-Sen Huang, Adam Zsolt Wagner, Sergey Shirobokov, Borislav Kozlovskii, Francisco J. R. Ruiz, Abbas Mehrabian, et al. AlphaEvolve: A coding agent for scientific and algorithmic discovery. arXiv preprint arXiv:2506.13131, 2025.arxiv.org/abs/2506.13131
  42. [42]OpenAI. Introducing Codex, 2025. https://openai.com/index/introducing-codex/.
  43. [43]OpenEvolve contributors. OpenEvolve: An open-source implementation of AlphaEvolve, 2025. https://github.com/algorithmicsuperintelligence/openevolve.
  44. [44]Krista Opsahl-Ong, Michael J. Ryan, Josh Purtell, David Broman, Christopher Potts, Matei Zaharia, and Omar Khattab. Optimizing instructions and demonstrations for multi-stage language model programs. In EMNLP, 2024.
  45. [45]Thomas Pierrot, Guillaume Richard, Karim Beguir, and Antoine Cully. Multi-objective quality diversity optimization. In GECCO, 2022.DOI
  46. [46]Rizky Ramadhana Putra, Raihan Sultan Pasha Basuki, Yutong Cheng, and Peng Gao. NL2Logic: AST guided translation of natural language into first-order logic with large language models. In Findings of EACL, 2026.DOI
  47. [47]Bernardino Romera-Paredes, Mohammadamin Barekatain, Alexander Novikov, Matej Balog, M. Pawan Kumar, Emilien Dupont, Francisco J. R. Ruiz, Jordan S. Ellenberg, Pengming Wang, Omar Fawzi, Pushmeet Kohli, and Alhussein Fawzi. Mathematical discoveries from program search with large language models. Nature, 2024.
  48. [48]Gregg Rothermel, Mary Jean Harrold, Jeffery von Ronne, and Christie Hong. Empirical studies of test-suite reduction. Software Testing, Verification and Reliability, 2002.DOI
  49. [49]Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. In NeurIPS, 2023.arxiv.org/abs/2303.11366
  50. [50]Sixty North. Cosmic ray: mutation testing for Python, 2015. https://github.com/sixty-north/cosmic-ray.
  51. [51]SWE-agent team. mini-SWE-agent: the 100-line AI agent that solves GitHub issues, 2025. https://github.com/SWE-agent/mini-swe-agent.
  52. [52]Arie van Deursen, Leon Moonen, Alex van den Bergh, and Gerard Kok. Refactoring test code. Technical Report SEN-R0119, CWI, 2001.
  53. [53]Tim van Erven and Wouter M. Koolen. Metagrad: Multiple learning rates in online learning. In NeurIPS, 2016.arxiv.org/abs/1604.08740
  54. [54]Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. Voyager: An open-ended embodied agent with large language models. arXiv preprint arXiv:2305.16291, 2023.arxiv.org/abs/2305.16291
  55. [55]Xiaoxuan Wang, Haixin Wang, Alexander Taylor, Jason Cong, Yizhou Sun, and Wei Wang. HarnessBridge: learnable bidirectional controller for LLM agent harness. arXiv preprint arXiv:2606.12882, 2026.arxiv.org/abs/2606.12882
  56. [56]Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi, and Hannaneh Hajishirzi. Self-instruct: Aligning language models with self-generated instructions. In ACL, 2023.arxiv.org/abs/2212.10560
  57. [57]Bernard Widrow and Marcian E. Hoff. Adaptive switching circuits. In Neurocomputing: Foundations of Research. MIT Press, 1988.
  58. [58]Meiman Xiao, Ante Wang, Qingguo Hu, Zhongjian Miao, Huangjun Shen, Longyue Wang, Weihua Luo, and Jinsong Su. Can LLMs track their output length? a dynamic feedback mechanism for precise length regulation. arXiv preprint arXiv:2601.01768, 2026.arxiv.org/abs/2601.01768
  59. [59]Junjielong Xu, Qiuai Fu, Zhouruixing Zhu, Yutong Cheng, Zhijing Li, Yuchi Ma, and Pinjia He. Hue: A user-adaptive parser for hybrid logs. In ESEC/FSE, 2023.
  60. [60]Chengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V. Le, Denny Zhou, and Xinyun Chen. Large language models as optimizers. In ICLR, 2024.
  61. [61]John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. SWE-agent: Agent-computer interfaces enable automated software engineering. In NeurIPS, 2024.arxiv.org/abs/2405.15793
  62. [62]Shin Yoo and Mark Harman. Regression testing minimization, selection and prioritization: a survey. Software Testing, Verification and Reliability, 2012.
  63. [63]Weizhe Yuan, Richard Yuanzhe Pang, Kyunghyun Cho, Xian Li, Sainbayar Sukhbaatar, Jing Xu, and Jason Weston. Self-rewarding language models. In ICML, 2024.arxiv.org/abs/2401.10020
  64. [64]Mert Yuksekgonul, Federico Bianchi, Joseph Boen, Sheng Liu, Zhi Huang, Carlos Guestrin, and James Zou. TextGrad: Automatic “differentiation” via text. arXiv preprint arXiv:2406.07496, 2024.arxiv.org/abs/2406.07496
  65. [65]Eric Zelikman, Eliana Lorch, Lester Mackey, and Adam Tauman Kalai. Self-taught optimizer (STOP): Recursively self-improving code generation. In COLM, 2024.arxiv.org/abs/2310.02304
  66. [66]Fengji Zhang, Bei Chen, Yue Zhang, Jacky Keung, Jin Liu, Daoguang Zan, Yi Mao, Jian-Guang Lou, and Weizhu Chen. RepoCoder: Repository-level code completion through iterative retrieval and generation. In EMNLP, 2023.arxiv.org/abs/2303.12570
  67. [67]Jenny Zhang, Shengran Hu, Cong Lu, Robert Lange, and Jeff Clune. Darwin Gödel machine: Open-ended evolution of self-improving agents. In ICLR, 2026.arxiv.org/abs/2505.22954
  68. [68]Qizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma, Fenglu Hong, Vamsidhar Kamath, et al. Agentic context engineering: Evolving contexts for self-improving language models. In ICLR, 2026.arxiv.org/abs/2510.04618
  69. [69]Wei Zhang, Zhenhong Zhou, Kun Wang, Junfeng Fang, Rongwu Xu, Yuanhe Zhang, Rui Wang, Ge Zhang, Xinfeng Li, Li Sun, Lingjuan Lyu, Yang Liu, and Sen Su. LIFEBench: Evaluating length instruction following in large language models. In NeurIPS Datasets and Benchmarks Track, 2025.arxiv.org/abs/2505.16234
  70. [70]Zihao Zhao, Eric Wallace, Shi Feng, Dan Klein, and Sameer Singh. Calibrate before use: Improving few-shot performance of language models. In ICML, 2021.arxiv.org/abs/2102.09690
  71. [71]Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. Instruction-following evaluation for large language models. arXiv preprint arXiv:2301.07911, 2023.
  72. [72]Eckart Zitzler and Lothar Thiele. Multiobjective evolutionary algorithms: a comparative case study and the strength Pareto approach. IEEE Transactions on Evolutionary Computation, 1999.DOI
  73. [73]Yuxin Zuo, Kaiyan Zhang, Li Sheng, Shang Qu, Ganqu Cui, Xuekai Zhu, Haozhan Li, Yuchen Zhang, Xinwei Long, Ermo Hua, Biqing Qi, Youbang Sun, Zhiyuan Ma, Lifan Yuan, Ning Ding, and Bowen Zhou. TTRL: Test-time reinforcement learning. In NeurIPS, 2025.arxiv.org/abs/2504.16084
  74. [74]Adam Zweiger, Jyothish Pari, Han Guo, Ekin Akyürek, Yoon Kim, and Pulkit Agrawal. Self-adapting language models. In NeurIPS, 2025.arxiv.org/abs/2506.10943

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type