arXiv:2610.05334cs.AIOct 2026

Manuscript Offprint

arXiv:2610.05334

AgentDiscover: Autonomous Discovery with Minimal Search Scaffolding

Mahdi Farahbakhsh, Ilan Sela, Fatemeh Doudi, Vishnu Teja Kunde, Krishna Narayanan, Jean-Francois Chamberland, Dileep Kalathil

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mahdi Farahbakhsh, Ilan Sela, Fatemeh Doudi, Vishnu Teja Kunde, Krishna Narayanan, Jean-Francois Chamberland, Dileep Kalathil

Texas A&M University

{mahdi.farahbakhsh,isela1,fatemehdoudi,vishnukunde,krn,chmbrlnd,dileep.kalathil}@tamu.edu

Figure

BEST SPEEDUP AT MATCHED SPEND ↑

AgentDiscover

154×

15 cand · 456 calls · $0.26/call

EvoX

135×

166 cand · 228 calls · $0.52/call

CORAL

129×

8 cand · 214 calls · $0.54/call

ShinkaEvolve

128×

128 cand · 151 calls · $0.79/call

OpenEvolve

126×

150 cand · 150 calls · $0.80/call

SPEND TO REACH 125× SPEEDUP ↓

AgentDiscover

$10.87

EvoX

$47.45

OpenEvolve

$51.67

CORAL

$61.65

ShinkaEvolve

$103.30

Figure 1: On the kernel builder task, AgentDiscover reaches 960 cycles, the lowest count among the frameworks we compare against, and it reaches comparable cycle counts at lower model spend (more tasks in Appendix E). All platforms run on Claude Opus 5 with the same budget.

ABSTRACT

Frameworks that use large language models for scientific discovery typically rely on a fixed, human-designed algorithm that decides what the model sees at each step, leaving the model only the role of proposer. The model knows nothing of the search beyond what it is shown. As models grow more capable, a question arises: does a search strategy chosen by a human before the run scale better than promoting the model from proposer to planner and letting it own the search? The Bitter Lesson suggests that choosing the strategy in advance is the kind of hand-designed structure that general methods eventually outscale. We introduce AgentDiscover, in which a coding agent plans the search using its context as working memory, runs experiments, and records every attempt in a database of ideas, candidates, and their relations. This database serves as the agent's long-term memory and is structured so that the selection rules of classical algorithms such as MAP-Elites and Monte Carlo tree search each reduce to a single query, which the agent is free to use, combine, or replace. A server maintains the database and steers the agent after every submission, keeping it on course over long runs. In our experiments, AgentDiscover is more cost-efficient than existing frameworks, reaching better scores at lower cost. On tasks in kernel engineering, biology, algorithm design, and mathematics, AgentDiscover outperforms prior discovery frameworks. Its programs would have placed first among human competitors in seven past AtCoder heuristic contests, and on eleven mathematical and systems optimization tasks it matches or exceeds every baseline that uses the same model. Our code is available here.

1 Introduction

Large language models (LLMs) are increasingly capable problem solvers, but their solutions must be verified. Returning each verdict to the model lets it improve its solutions, closing a loop of proposal and verification. When both the candidate solution and its evaluator are programs, this loop needs no human intervention: the model writes a program that either encodes a solution or searches for one, and an evaluator program runs it and scores the result. This recipe, typically run as an evolutionary search, has already produced genuine mathematical and scientific discoveries. For instance, FunSearch (Romera-Paredes et al., 2024) found new constructions in extremal combinatorics, and AlphaEvolve (Novikov et al., 2025) improved the best known results on roughly a fifth of more than fifty open mathematical problems. A growing family of open systems follows the same recipe (Sharma, 2025; Lange et al., 2026; Cemri et al., 2026; Liu et al., 2026a), and some go further by training the model on each problem at test time (Wang et al., 2025; Yuksekgonul et al., 2026).

These systems share a common architecture with three roles. A search algorithm selects past candidates for the model's context, a proposer, a language model, writes a new candidate from them, and an evaluator scores it; the result will then be recorded, typically in an archive of past candidates. In most implementations, the selection rule is designed by humans and fixed before the run: AlphaEvolve combines MAP-Elites (Mouret & Clune, 2015) with island models, ShinkaEvolve (Lange et al., 2026) extends a prescribed population loop with novelty filtering, and MCTS-AHD (Zheng et al., 2025) organizes candidates in a tree and selects among them with the upper confidence bound for trees (UCT) (Kocsis & Szepesvári, 2006). More recent systems adapt this rule during a run, but only within a space prescribed beforehand by their designers (Cemri et al., 2026; Liu et al., 2026a). In every case, the search is run by a human-designed algorithm and the LLM only proposes: it sees the candidates that the algorithm puts in its context, but has no say in which ones those are.

Leaving the search to a fixed human-designed algorithm becomes harder to justify as LLMs improve. In The Bitter Lesson, Sutton observes that methods built on human knowledge are eventually overtaken by general methods that exploit growing computation (Sutton, 2019). Choosing the search strategy before the run is such a use of human knowledge; it bets that the designer understands the problem better than the language model will. The LLM, meanwhile, could run the search itself: classical algorithms such as MAP-Elites and UCT are well documented in the text it is trained on, and coding agents, which let an LLM write and run code with tools, can implement them when needed. Knowing the alternatives matters because no single search strategy is best across problems (Wolpert & Macready, 1997). In automated evolutionary discovery specifically, a budget-matched comparison of 30 fixed search strategies (“harnesses”) found none reliably better than a simple baseline across models and problems, and the full OpenEvolve recipe ranked last (Gupta et al., 2026). The best strategy can also change within a run (Cemri et al., 2026; Liu et al., 2026a); fixing one for the whole search leaves the model’s knowledge of the alternatives unused. This raises a natural question: can coding agents fill both roles, one planning the search and another proposing candidate solutions with minimal human-engineered search heuristics?

Handing the search to a coding agent is not enough on its own. The agent must remember what it has tried long after those attempts have left its context, retrieve the relevant part of that history cheaply, stay on course over hours of work, and do all of this without being able to tamper with the evaluator that scores it. Without a structured memory, the agent must reconstruct the state of the search from raw logs before it can apply any strategy to it. Storing such a memory is cheap; reading it is not. Every attempt can be recorded, with its score, its lineage, and the ideas it builds on, at negligible cost next to the compute a run already spends, but an agent pays in context for every record it reads. Databases have long addressed this: a query states what is wanted, and indexes and a query planner find it, so the reader receives only the answer. This raises a second question: can the history of a search be kept so that the agent retrieves only what it needs, at the cost of a query?

We answer these questions affirmatively by developing AgentDiscover, a novel framework for scientific discovery in which a coding agent both directs the evolutionary search and proposes its candidates, with every past attempt one query away in a graph database (Figure 2b, §3). A coding agent works on the problem inside a sandbox, and its context is its working memory: it runs experiments, writes candidates, and decides what to try next. Each agent session eventually ends and a fresh one takes over, for two reasons: a fresh agent is not conditioned on its predecessor's reasoning; and beyond some length, re-reading an ever longer context at every step costs more than starting over. What a session learns outlives it in a long-term memory: a graph database of ideas and candidates.

Because the graph makes each candidate's ideas and lineage explicit, the selection rule of a classical algorithm becomes a single query: the best candidate per idea for MAP-Elites, or visit counts and values over the candidate lineage for Monte Carlo tree search. The agent can use these rules, combine them, or replace them. Because the search strategy is not fixed in advance, a stronger model improves not only the candidates but also the search that produces them, whereas under a fixed search algorithm it can improve only the candidates. A server mediates all access to this memory, evaluates submitted candidates in isolation from the agent's sandbox, and returns each score with a message that keeps

(a) Fixed vs. agentic search

Figure

(b) AgentDiscover

Figure

Figure 2: AgentDiscover lets a coding agent direct the evolutionary search. (a) A fixed algorithm decides what the LLM sees in prior systems; in AgentDiscover, the agent queries its memory itself. (b) The agent's loop: (1) query the graph database, (2) experiment, (3) submit a candidate, (4) receive its score and a steering message. New sessions start with a fresh context and the same memory.

the agent on course within and across sessions. A meta agent reads past sessions and writes skills that later sessions draw on.

We evaluate AgentDiscover on tasks in kernel engineering, biology, algorithm design, and mathematics (Yuksekgonul et al., 2026) (Table 1), on five further AtCoder heuristic contests (Imajuku et al., 2025) (Table 2), on eleven mathematical and systems optimization tasks (Qu et al., 2026), run with the same LLM as the published baselines (Table 3), and on the kernel builder task (Anthropic, 2026) (Figure 1). In the course of this evaluation we found that several evaluators used by prior work admit reward hacking; we correct them and describe the common vulnerabilities.

In summary, our contributions are:

  1. We present AgentDiscover, a framework for scientific discovery that replaces the fixed evolutionary search algorithm with a coding agent that directs the search and proposes candidates, and that manages its context efficiently through a database of past attempts in which the selection rules of classical search algorithms are single queries the agent can use, combine, or replace ( §§3.1§§3.1 and 3.2).

  2. We show that AgentDiscover outperforms prior discovery frameworks on tasks in kernel engineering, biology, algorithm design, and mathematics, would have placed first against human competitors in seven past AtCoder contests, matches or improves the best published result on all of the eleven standard tasks, and improves the best published bound on the first autocorrelation inequality, while being more cost-efficient than the frameworks we compare against ( §4§4, Appendix E).

  3. We identify reward-hacking vulnerabilities in evaluators used by prior work and correct them (Appendix C).