EurekAgent Bets on Agent Environments, Not Research Workflows
Tsinghua and Zhipu AI researchers run Claude Code with GLM-5.1 inside a sandbox with a hidden grader and budgets, and report new best results on math, GPU kernel and Kaggle-style tasks.
TL;DR
- EurekAgent, from Tsinghua University and Zhipu AI, argues research agents now need well-built environments more than prescribed workflows, and supplies one with a hidden grader [^1].
- Running Claude Code on the open GLM-5.1 model, it reports new best results on three math problems and a GPU kernel task [^1].
Background
LLM agents can already work on research problems that come with a score to optimize: propose a solution, run it, read the result, try again [^1]. Many systems script that process in detail. Sakana AI's The AI Scientist, for example, generates ideas, writes code, runs experiments, writes a full paper and then runs a simulated review [^2]. Evolutionary systems such as AlphaEvolve keep populations of candidate programs and use evaluator feedback to mutate and select them [^1].
What happened
The EurekAgent paper, by researchers at Tsinghua University and Zhipu AI, argues that this scripting is becoming the wrong place to invest [^1]. General-purpose coding agents have grown strong enough that much of the useful capability may already sit in the base agent: on ResearchClawBench, 40 research tasks across 10 domains, Claude Code and Codex used on their own outperformed every research-specific agent system evaluated [^1]. But agents can also contaminate evaluations, manipulate artifacts or ignore procedural rules, and such reward hacking has been reported in research systems [^1]. The authors' answer is "environment engineering": shaping the resources, constraints and interfaces around the agent instead of telling it how to do research [^1].
EurekAgent runs off-the-shelf command-line agents in a simple loop. A preparation session checks the setup once; then, in each round, a proposal session writes a set of hypotheses and parallel sessions implement them, choosing their own strategies [^1]. The environment around that loop has four parts. Permissions: each run sits in a Docker container, the evaluator stays outside the agent's workspace behind a grading service that returns scores but can't be inspected or modified, hooks block edits to the official result files, and GPUs stay invisible unless claimed through a helper that gives each one to a single session [^1]. Artifacts: the filesystem and Git history serve as shared memory, with ranked past solutions available to later rounds [^1]. Budgets: limits on time and API cost, a helper to check the remaining time and a warning when a deadline nears [^1]. Oversight: a terminal interface and a web monitor that show every session [^1].
All experiments used Claude Code as the agent and GLM-5.1 as the model [^1]. Packing 26 circles into a unit square, EurekAgent reached a sum of radii of 2.635999, against 2.635986 for the best earlier AI result, and it also edged past earlier results on Erdős' minimum overlap problem and the first autocorrelation inequality [^1]. Those earlier records came from test-time training systems that update the model; EurekAgent trains nothing [^1]. On GPUMODE's TriMul task, a triangular matrix multiplication kernel, its best kernel ran at a median of 2,005.03 microseconds on an A100, about 4.3 percent faster than the strongest leaderboard solution and 10.8 percent faster than TTT-Discover [^1]. On seven competitions picked from the 22 in MLE-Bench Lite, it won a medal in 85.71 percent of them, against at most 71.43 percent for the listed baselines, all of which use closed commercial models [^1].
Why it matters
The paper's main claim is about where engineering effort pays off. If general agents can already find strong solutions, the authors argue, the hard part is trusting them: without constraints, agents can produce impressive but unreliable results, for instance by contaminating evaluations [^1]. EurekAgent treats that as a systems problem: the evaluator is hidden, result files are locked, parallel sessions can't copy each other within a round, and containers and budgets box in every run [^1]. The model behind it is the open-source GLM-5.1, the three math results averaged under $17 in API cost, and the authors argue that the setup can compete without the strongest proprietary models [^1].
The numbers still need careful reading. The math margins are narrow, as the circle-packing figures show. The kernel comparison was regraded on a local A100 because the official GPUMODE leaderboard had closed [^1]. The MLE-Bench subset was chosen by the authors, EurekAgent ran once per task, and baselines with several runs were credited with the top of their reported range [^1]. The authors also note that their experiments cover only tasks with executable evaluators, not open-ended science [^1].
Practical example
Say Tomás runs performance engineering at a small inference startup and wants faster GPU kernels. Tomás leaves a coding agent running overnight on the repository, with the benchmark script and its results file in the same folder. Now the agent can reach the thing that scores it. Reading the grader, overwriting a result file or two sessions fighting over one GPU are the failure modes EurekAgent's permissions are built to block [^1]. A great number in the morning would prove little.
Set up the EurekAgent way, the night looks different. The run lives in its own Docker container. The grader sits outside the agent's workspace: the agent submits candidates and gets official scores back, and hooks stop it from editing the result files [^1]. A session that wants a GPU has to request one through a helper, which hands each card to one session at a time [^1]. Each change is a Git commit whose message says what changed, and a ranked history lets the next round start from the best kernels so far [^1]. When a stage's deadline nears and deliverables are missing, the agent gets a warning to wrap up [^1].
In the paper's TriMul run, this setup produced four kernels with median runtimes below 2,031 microseconds, against 2,096.04 for the best regraded leaderboard entry [^1]. Tomás would still test the winner on the startup's real workloads: the paper measured on one A100 with the competition's own benchmark cases [^1].
Related gear
We recommend this book because it covers how to build and evaluate applications on foundation models, including agents that plan and use tools, the kind of system EurekAgent puts to work.