Effective Harness Engineering for Algorithm Discovery with Coding Agents

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Ishibashi, Yoichi, Yano, Taro, Oyamada, Masafumi
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916013570785280
author Ishibashi, Yoichi
Yano, Taro
Oyamada, Masafumi
author_facet Ishibashi, Yoichi
Yano, Taro
Oyamada, Masafumi
contents AlphaEvolve and FunSearch have demonstrated the potential of combining large language models (LLMs) with evolutionary search for automated algorithm discovery. However, discovery success is shaped not only by model capability but also significantly by the design of the execution infrastructure, i.e., the harness. This paper investigates effective harness design through three questions: under a fixed token budget, is it better to produce many algorithms with brief thought or fewer algorithms with deeper thought? How should the harness handle evaluation hacks, where generated programs exploit the scoring function? And how can agents that require full filesystem access execute safely in parallel? Using Vesper, an algorithm discovery framework that incorporates harness improvements addressing these questions, we evaluate on Circle Packing under the same token budget. Interestingly, generating fewer algorithms while thinking more deeply about each one achieved higher scores. That is, scaling the quality of each individual is more budget-efficient than scaling the number of evolutionary generations. Surprisingly, more capable models produced evaluation hacks at higher rates, making hack detection increasingly necessary as models scale.
format Preprint
id arxiv_https___arxiv_org_abs_2605_15221
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Effective Harness Engineering for Algorithm Discovery with Coding Agents
Ishibashi, Yoichi
Yano, Taro
Oyamada, Masafumi
Software Engineering
Artificial Intelligence
Computation and Language
AlphaEvolve and FunSearch have demonstrated the potential of combining large language models (LLMs) with evolutionary search for automated algorithm discovery. However, discovery success is shaped not only by model capability but also significantly by the design of the execution infrastructure, i.e., the harness. This paper investigates effective harness design through three questions: under a fixed token budget, is it better to produce many algorithms with brief thought or fewer algorithms with deeper thought? How should the harness handle evaluation hacks, where generated programs exploit the scoring function? And how can agents that require full filesystem access execute safely in parallel? Using Vesper, an algorithm discovery framework that incorporates harness improvements addressing these questions, we evaluate on Circle Packing under the same token budget. Interestingly, generating fewer algorithms while thinking more deeply about each one achieved higher scores. That is, scaling the quality of each individual is more budget-efficient than scaling the number of evolutionary generations. Surprisingly, more capable models produced evaluation hacks at higher rates, making hack detection increasingly necessary as models scale.
title Effective Harness Engineering for Algorithm Discovery with Coding Agents
topic Software Engineering
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2605.15221