arXiv:2609.37968cs.AISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.37968

SelfSearch: Reward-Free Search for Self-Improving Agents

Jungwoo Yang, In Jin Kong, Yohan Jo

ABSTRACT

Advances in the coding capabilities of LLM agents allow them to inspect and modify their own instructions, tools, and execution procedures. Existing approaches use this ability to search for improved agents through repeated downstream evaluation, which incurs substantial costs and ties the search to the evaluated tasks. We introduce SelfSearch, a reward-free search procedure in which agents modify themselves using records of previous self-improvement episodes. These records capture the reasoning, tool actions, and outcomes of earlier modification attempts, providing concrete experience for improving both task solving and self-modification. Without downstream reward signals during search, SelfSearch improves population-mean success over the initial agent in all six model-benchmark settings, with individual agents gaining up to 11.2 percentage points on Terminal-Bench 2.1. On SWE-bench Multilingual, an agent improves success by 5.0 percentage points while reducing execution cost by 38.5% on tasks solved by both the initial and evolved agents. SelfSearch achieves competitive task success with evaluation-guided search baselines at lower search cost. With only $4.03 in search cost, it produces a harness that solves 82.0% of Terminal-Bench 2.1 tasks with DeepSeek V4 Flash under the settings of a public nine-harness comparison, matching the top-scoring harness, Codex. These results suggest that experience gained through self-modification can improve agents' downstream capabilities and efficiency.

1 INTRODUCTION

Self-improvement involves recognizing limitations in our capabilities and developing ways to overcome them. In doing so, we gain experience not only with the problem at hand, but with how we identify weaknesses, test possible solutions, and respond to failure. Reflecting on this process can help us improve how we learn, a central concern of metacognition (Flavell, 1979). Can agents likewise use the experience of self-improvement to become better at improving themselves?

The coding capabilities of LLM agents make it possible to investigate this question: agents can inspect and modify the implementations that govern their own behavior. Agents can learn from their own task-solving experiences and improve their capabilities over time (Zhang et al., 2026a; Wang et al., 2026; Zhang et al., 2026b). These approaches use downstream evaluation to guide the search process, tying the improvement signal to a task distribution and requiring repeated execution of candidate agents. Evaluating each candidate on a development set incurs a recurring cost that grows with the number of tasks evaluated.

Task-solving experience provides evidence about how an agent performs, guiding the search for improvements. However, a modification produces not only a candidate agent, but also a record of the process that produced it. This record contains information about how the agent identified limitations, constructed revisions, and examined their effects. The experience of self-modification can therefore provide valuable evidence for future self-improvement.

We introduce SelfSearch, a reward-free search procedure in which an agent modifies its own implementation using records of previous self-improvement episodes. The agent's entire repository is

∗^{*}Corresponding author.

Figure

Figure 1: SelfSearch. An agent modifies an editable copy of itself using previous episode records, which contain interaction trajectories, code changes, and check results. The successor becomes the next actor, while its episode record informs subsequent revisions. Stacked boxes represent parallel lineages. Lineage superscripts are omitted.

editable, allowing it to revise its instructions, tools, execution logic, and code organization. A single agent performs both self-modification and downstream tasks, so changes to its implementation can affect both capabilities. Each episode produces a successor agent and a record of the modification process. These records capture how the agent gathers information, makes changes, and responds to failures. The successor uses them to guide the next episode, allowing experience and capabilities developed during self-modification to support further improvement. For example, difficulty inspecting long records may motivate a reusable inspection tool, while a failed edit may motivate a procedure that checks the relevant source before attempting a repair. Later generations can use and refine both the operations and the procedures developed in earlier episodes.

SelfSearch uses no downstream tasks or evaluation results to guide revisions. Agents can still use tool outcomes and local checks to inspect and verify their changes. Downstream evaluation and any candidate selection occur separately from search. Our hypothesis is that self-modification exercises capabilities that are also useful for downstream tasks: inspecting unfamiliar code, diagnosing failures, implementing changes, and checking their effects. Records of these activities can therefore provide evidence for improving an agent even before it encounters downstream tasks.

We evaluate SelfSearch in two model settings on SWE-bench Verified, SWE-bench Multilingual, and Terminal-Bench 2.1. Each search produces a population of two agents after ten generations, and we report their mean performance. The population mean exceeds the base in all six model-benchmark settings. Individual agents improve success by up to 11.2 percentage points on Terminal-Bench 2.1, 6.7 on SWE-bench Multilingual, and 5.0 on SWE-bench Verified. On SWE-bench Multilingual, a SelfSearch agent improves success by 5.0 percentage points while reducing execution cost by 38.5% on tasks solved by both the initial and evolved agents. The discovered harnesses transfer across model families without further search.

With only $4.03 in search cost, SelfSearch produces a harness achieving 82.0% on Terminal-Bench 2.1 using DeepSeek V4 Flash. This matches Codex, the top-scoring harness in a public nine-harness comparison evaluated under the same settings (Apache Maka, 2026).

Our contributions are threefold:

• Self-improvement as experience. We introduce SelfSearch, which uses episode records to guide agent revisions without downstream task evaluations. Each successor becomes the next improver.

• Capability, efficiency, and transfer. Across two model settings and three benchmarks, SelfSearch improves population-mean task success, with execution-cost reductions and harness transfer across model families.

• Understanding how SelfSearch improves agents. Ablations suggest that both previous episode records and an evolving improver contribute to population-mean success. Code changes and execution traces show how agents use self-improvement experience to develop reusable tools and repair failures in tool interactions.

We also provide an execution framework that enables agent modification within a controlled boundary, protecting runtime-managed inference settings, resource limits, and execution records (Appendix A).

Algorithm 1 SelfSearch with shared episode records

Require: Base agent B0B_0, initial episode records E0\mathcal{E}_0, search directions d1:Wd_{1:W}, generations KK

1: B0w←B0B_0^w \leftarrow B_0 for each w∈{1,…,W}w \in \{1, \ldots, W\}

2: C←{B0}\mathcal{C} \leftarrow \{B_0\}

3: for k=0,…,K−1k = 0, \ldots, K - 1 do

4: for all w∈{1,…,W}w \in \{1, \ldots, W\} in parallel do

5: (Bk+1w,ekw)←SelfImprove(Bkw;Ek,dw)(B_{k+1}^w, e_k^w) \leftarrow \text{SelfImprove}(B_k^w; \mathcal{E}_k, d_w)

6: end for

7: Ek+1←{ek1,…,ekW}\mathcal{E}_{k+1} \leftarrow \{e_k^1, \ldots, e_k^W\}

8: C←C∪{Bk+11,…,Bk+1W}\mathcal{C} \leftarrow \mathcal{C} \cup \{B_{k+1}^1, \ldots, B_{k+1}^W\}

9: end for

10: return candidate archive C\mathcal{C}

References (43)