Coding assistants · Research feature

The Agentic Scientist: Orchestrating Coding Agents for Automated Scientific (Co-)Discovery

A new AI framework allows researchers to co-develop and automate computational science projects using distributed coding agents.

Adapted from research by Robert Tjarko Lange, Luca Grillotti, Yutaro Yamada and colleagues.

arXiv preprint revision · 2026-10-13 · Attribution & reuse
In this article
Editorial illustration of a branching diagram.

Editor’s introduction

The study evaluates The Agentic Scientist, a system that enables human researchers to collaborate with AI agents in the full lifecycle of computational research. It decomposes scientific work into stages like idea generation, experimentation, and report writing, each managed by coding agents under a meta-controller that ensures consistency and verification. The system demonstrates capability across domains, with one paper accepted at ALIFE 2026 after human review. Researchers verified generated code, results, and claims to ensure scientific accuracy, adjusting statements such as performance comparisons when evidence showed equivalence. A reviewer model, trained on past conference decisions, assesses manuscripts using fixed guidelines. Results show the Claude-based autoillustrate pipeline outperforms others in figure faithfulness, though all automated outputs remain below human-level performance in overall quality and concision. The evidence highlights that effective scientific autonomy depends on both agent capabilities and the orchestration layer that coordinates them.

Introduction

Large Language Model (LLM)-based tool-calling agents can now complete increasingly long coding tasks with minimal human intervention. Computational research, however, is arguably more than a single long coding task: a practical system supporting human scientists must generate hypotheses, execute controlled experiments, validate claims, iterate on ideas, and communicate the results. Existing AI scientist systems demonstrate parts of this loop, but myopic hill-climbing can make agents behave merely as flexible hyperparameter optimization engines.

End-to-end automated scientific discovery

Research on LLM-driven science increasingly targets complete workflows rather than isolated steps. The AI Scientist-v1 introduced a closed loop for proposing hypotheses, running experiments, analyzing results, and drafting manuscripts, while The AI Scientist-v2 removed human-provided code templates and introduced progressive agentic tree search. Ultimately, these developments combined with base LLM capabilities have led to end-to-end autonomous systems capable of producing workshop-level research content. Agent Laboratory and AI-Researcher similarly connect literature analysis, experimentation, and report writing, with different opportunities for human feedback. CodeScientist combines literature and code search with code review, replication, and external assessment, while CycleResearcher inserts automated review into the loop and the AI co-scientist emphasizes scientist-guided hypothesis development. These systems vary in autonomy, search, and validation; here our focus is the reusable plus scalable orchestration and evidence layer that supports heterogeneous coding agents.

Benchmarking Research Agent Capabilities

Research-agent benchmarks separate several capabilities that a single final score can obscure. SWE-agent established that the agent–computer interface strongly affects real-world coding performance. MLAgentBench evaluates iterative machine-learning experimentation, whereas MLE-Bench covers longer-horizon engineering workflows involving data preparation, debugging, training, and optimization; subsequent work studies how search strategy affects exploration and generalization in this setting. At the research level, PaperBench measures replication of published AI work, MLR-Bench targets open-ended machine-learning research, and EXP-Bench isolates whether agents can conduct valid AI experiments. A cited study introduced an LLM-driven pipeline for paper reviewing, which was later validated on research papers published after the training data cutoff date. Here, we make use of such automated proxy AI reviews and additionally report external reviews of the co-produced ALIFE submission as complementary evidence.

Task drafting

The experimental design defines the method, candidate interface, compute budget, and protocols for search and final evaluations. Before drafting begins, an independent review agent assesses the design and repairs any issues. The drafting agent then implements the initial program, the search and final evaluation programs, and the task contract, while pinning dependencies and staging the required data. The harness checks the contract and runs smoke tests of the evaluation programs before the alignment judge assesses scientific fidelity and verifies that the search and final evaluators are independent and use disjoint data. In containerized runs, the production check additionally requires the initial program to complete the full search workload to ensure operational feasibility. Failed scaffolds are repaired, and only versions that pass all checks proceed to parallel investigation.

Controlled baselines and ablations

The selected program is first instrumented with additional metrics, such as extra scores and time series data, so that every generated baseline and ablation can be compared in detail on common ground. Given the code diff between the selected and initial programs, an agent then proposes baselines and ablations with explicit hypotheses and implementation plans, where each ablation must isolate an innovation introduced by the selected program. A separate agent filters these proposals for relevance, feasibility, and single-change scope. Each validated plan receives an isolated workspace and follows an agent-guided edit–evaluate–verify loop that modifies the selected program to implement the intended change and score it against the evaluator, alongside the unchanged selected and initial programs. The evaluator can be run for multiple seeds to make comparisons statistically meaningful, and their summaries and metrics are aggregated across seeds, ablations, and baselines by task.

Summary of Discovery and Dynamics

At this stage, human researchers transferred the best-performing ED implementation from the MNIST and CIFAR-10 experiments to the RL setting, and prepared the Brax and Craftax environments. For RL experiments, an additional methodological constraint was added to the rubrics: the method was required to retain the PPO objective, while using the gradient of the PPO loss with respect to the logits as the output-level error signal for Error Diffusion. Within this constraint, The Agentic Scientist adapted the dual-stream ED mechanism to PPO and explored the resulting ED-PPO variants. ED-PPO achieved performance comparable to standard baselines on several Brax tasks, although its performance was less consistent on Humanoid and Craftax (see figures in ALIFE paper manuscript; Section C.3).

Human Result Verification & Manuscript Edits

Before submission to ALIFE, researchers verified the generated research artifacts. This included checking that the generated implementations matched the scientific hypotheses being tested, confirming that the reported tables and figures accurately reflected results produced by the corresponding code, and revising the manuscript where the generated text overstated or inaccurately characterized the evidence. For example, human researchers added appropriate statistical analyses and, when the results showed comparable performance, revised claims such as “ED-PPO significantly exceeds BP-PPO” to “ED-PPO performs on par with BP-PPO”. Additionally, all references in the BibTeX bibliography were manually verified to ensure that the cited works existed and supported the statements for which they were cited. During this process, human researchers removed several citations that did not support the corresponding claims, and added important references omitted from the generated manuscript. These included the reference to the original ED work, which is available only through an archived webpage. The generated manuscript was treated as an intermediate research artifact, which was modified by human researchers, improving the writing of several sections (e.g., future work, etc.). We then submitted this single paper to the ALIFE 2026 conference.

Peer Review, Camera-Ready Paper Revisions

This submission process illustrates the AI co-scientist approach enabled by our system: outputs were not just optimized code or isolated experimental reports, but a coherent working paper making a scientific claim, positioning it relative to prior work, and presenting evidence across multiple domains. We emphasize that only a single paper was submitted after our careful manual verification.

Open-Ended Architecture Research with The Agentic Scientist: Discovering Query-Conditioned Composition for Hypernetwork-Based LLM Adaptation

In this experiment, we explore how The Agentic Scientist can autonomously write an insightful scientific paper after successfully investigating a specific topic. As a case study, we choose the recently published hypernetwork-based LLM adaptation work from, Doc-to-LoRA. Unlike the other settings, The Agentic Scientist is given the Doc-to-LoRA paper’s LaTeX source and its public code repository as the starting point.

Problem formulation

Doc-to-LoRA introduces a hypernetwork that outputs low-rank adaptation (LoRA) matrices for a target LLM given a textual document. The generated LoRA serves as a weight-distilled knowledge bank and can be used to update the target LLM for document-based question answering without the need to place the documents in the LLM’s context window. To handle documents beyond the context length of its encoder model, Doc-to-LoRA splits long documents into chunks and generates one LoRA independently for each chunk. The standard approach concatenates the per-chunk low-rank factors into a higher-rank LoRA. However, naively combining multiple LoRAs can cause interference between several facts induced by different chunks. Here, we focus on multi-needle-in-a-haystack (multi-NIAH) retrieval as a proxy task: each context contains one to four named facts, but the prompt asks for only one target needle’s four-digit number. To be successful at this task, a trained hypernetwork must avoid multi-LoRA interference via compositional LoRA designs.

The Agentic Scientist search dynamics

Discovered Inductive Biases. The Agentic Scientist demonstrates that naively composing every generated adapter makes the target LLM conflate multiple facts. The main failure mode is responding with a distractor number rather than the queried one. The successful idea is to make the adapter merging query-conditioned: The Agentic Scientist proposes an interaction score between the query and each chunk that selects the right adapter at composition time, without adding trainable parameters or changing the training objective. The Agentic Scientist then adds two smaller but complementary structural changes: relevance-based text processing and delimiter-aligned text chunking. Relevance-based text processing removes the noise tokens around the token span most relevant to the query, so the adapter is generated from the queried fact, instead of the neighboring haystack. Delimiter-aligned text chunking keeps each needle sentence intact before the query-conditioned address is computed. We note that the The Agentic Scientist demonstrated that this inductive bias works well with the multi-needle-in-a haystack task. Future work should investigate the generalization of the discovered mechanisms beyond this synthetic long-context retrieval task.

Algorithmic changes in the best programs

We find that the improvements discovered by The Agentic Scientist combine real algorithmic changes with hyperparameter tuning: The Agentic Scientist re-implements and combines several known techniques from the recent literature on RL fine-tuning. These are not independent rediscoveries: The Agentic Scientist had in principle access to these techniques through web search, and they likely appeared in the underlying model’s training data. The most common ones are the DAPO “clip-higher” rule, an asymmetric PPO clip with a larger upper bound, so that promising low-probability tokens are updated more strongly; Dr. GRPO loss aggregation, which divides the loss by a fixed constant instead of the response length and thus removes the bias against long responses; and GSPO-style importance ratios, that is, a single length-normalized ratio per response instead of one per token. Smaller changes include removing or simplifying the KL penalty, keeping only the prompt groups with mixed correct and incorrect answers, and penalizing overly long responses. Overall, these changes show that hill-climbing over an RL fine-tuning program can not only tune hyperparameters but also select, re-implement, and combine relevant algorithmic ideas from the recent literature. The Agentic Scientist uses empirical feedback to decide which of these ideas to keep and how to combine them into training programs with higher accuracy.

Summary

Across multiple research case studies, The Agentic Scientist demonstrates that coding agents can contribute to scientific research when embedded in an orchestrated workflow that preserves evidence and tests claims. Our results span several levels of scientific autonomy, including a co-created Error Diffusion paper accepted at a conference, the fully autonomous discovery of structural inductive biases for Doc-to-LoRA, and a concrete CMA-anchored learned optimizer. Complementing these detailed case studies, our cross-harness and model evaluation comprises 70 research campaigns across five manually prepared tasks and 14 harness-model configurations. The manuscript AI reviews show differences across model generations, and a positive trend toward newer models. With the same LLM base model, we observe no consistent differences across harnesses. Stronger task search performance predicts higher AI reviewer scores on 4 of 5 considered tasks. This positions The Agentic Scientist as a human-steerable scaffold for end-to-end computational research.

Discussion

Autonomy spectrum. The AI Scientist-v2 produced a fully AI-generated paper that passed peer review at a workshop before its pre-agreed withdrawal. The Error Diffusion paper, on the other hand, resulted from using The Agentic Scientist as a tool within a co-scientist setting. The two modes are complementary: fully autonomous campaigns cheaply screen many directions, while human steering turns the most promising ones into verified contributions. In the Error Diffusion project, this human effort was supplied throughout: defining the direction, baseline, and initial rubrics; verifying results, references, and claims; adding reinforcement-learning experiments; and clarifying notation and mechanisms after peer review (Section 4).

Future work

Scientific progress often comes from exploring diverse “lottery tickets” across seemingly unrelated domains. Applying The Agentic Scientist broadly could accelerate this process by screening a larger hypothesis space through greater compute within individual research directions and exploration of more directions within a topic. To support human validation, the claim-to-source map should be exposed through an interface that lets researchers navigate from each claim to the experiments and results behind it. The interface should also allow researchers to provide domain expertise and use the system as an interactive research tool. Another improvement would be to automate the design of post-search transfer evaluations. Where possible, rubric criteria should be implemented as automated tests, checked for reward hacking, and complemented by independent scientific review. With traceable evidence and enhanced rubrics, The Agentic Scientist could broaden and accelerate experimental search while leaving scientific judgment and responsibility with researchers.

From fixed search spaces to long-running research agents

Computational discovery has traditionally been posed as search through a hypothesis space chosen in advance by the system’s designers. Expressing the search space as code relaxes this constraint. Programs written by language models have specified the learning problem, as training objectives, rewards, and environments, as well as the learner, as network architectures, robot designs, and agent designs. At the scale of a research project, AIDE runs tree search over machine-learning engineering code, and AgentRxiv lets separate research agents build on one another’s results through a shared preprint server. Several concurrent systems push further, sustaining research over long horizons or running many agents on a single problem. DeepScientist and InternAgent-1.5 run a long-horizon research loop over a cumulative memory, with DeepScientist promoting only findings that survive verification; InternAgent-1.5 and EvoScientist further distill what worked and what failed into reusable memories. AutoScientists, CORAL, and Agora instead run many agents at once and coordinate them through shared state rather than a central planner: self-organizing teams around a shared experimental record, asynchronous agents in isolated workspaces with a separate evaluator, and workers appending results and verifications to a Git graph. Our workers likewise explore in separate workspaces and exchange distilled conclusions at cycle boundaries; in addition, each cycle is bound to a typed contract, and the selected program is then studied through controlled baselines and ablations.

Judging ideas, rubrics, and evidence auditing

Deciding which ideas and results to trust is a recurring difficulty. Language models can propose ideas grounded in the literature, and lightweight graph-based evaluators or LLM judges that track human preferences can score them. Other work anchors results to something checkable: RE-Bench compares agents with human experts on research engineering, and data-to-paper traces every result in a manuscript back through the code to the data. Final scores and papers can still conceal how they were obtained. An independent evaluation of The AI Scientist found weak novelty checks, failed experiments, and poorly substantiated manuscripts behind its claims, and controlled audits of two open-source systems found biased benchmark selection, post-hoc selection on test results, and undisclosed subsampled or synthetic data, flaws that an LLM auditor detected far more reliably from logs and code than from the paper alone. Closest to our contracted research cycles, Xcientist specifies at each stage the implementation, comparisons, and artifacts a claim requires and retains the source evidence behind it; a retrospective audit then measures claim drift, that is, unresolved mismatches between accepted claims and their sources, code, or experiments. Verification can also be delegated to models: Gemini has been used to hunt for flaws in proofs and to write and run code that checks derivations, and auto-generated rubrics have served as the reward for post-training an AI scientist agent on paper replication. In The Agentic Scientist, the ideation agent fixes the target rubrics before execution, and retrospective ablations isolate each change introduced by the selected program.

Grounded paper writing

Language models already take on parts of the writing and reviewing process: AutoSurvey drafts literature surveys, and GPT-4 feedback on manuscripts overlaps with human reviews about as much as two human reviewers overlap with each other. Full-paper writers differ in how tightly they bind text to evidence. PaperOrchestra writes a manuscript from whatever materials it is given, without being tied to a particular experiment pipeline, whereas Spark-to-Paper, a set of skills inside a coding assistant, decides which evidence an experiment must produce before running it and checks the draft both deterministically and by self-critique. Checks on the finished paper are needed too. ReAgent compares an agent-written paper with its repository, reading the code for the described method and rerunning experiments for the reported numbers, and MLReplicate shows why: when experts reviewed the ten agent-generated manuscripts an automated review pipeline had accepted, 59% of their reviews flagged fabricated or unsupported claims. Our writing phase similarly maps each claim to its source artifacts, and runs an independent audit agent in every round of revision.

Scientific figure generation

Beyond raster pipelines such as PaperBanana, a line of work treats a figure as a program that can be revised after generation. DeTikZify synthesizes TikZ from sketches with a fine-tuned vision-language model; recent agentic systems instead start from a paper’s text. AutoFigure iterates an SVG layout under a critic but renders the final figure with an image model from a text prompt derived from that layout, and AutoFigure-Edit and CraftEditor recover editability by tracing the rendered raster into SVG. LiveFigure has a VLM write python-pptx code with explicit coordinates and counts the manual edits needed to reach publication quality, while FigTree recursively decomposes a figure into SVG fragments refined by render-critic loops. SciFig splits generation into planning, layout synthesis, component rendering, and VLM-guided refinement, and outputs XML diagrams that remain editable in standard diagramming tools. In all of these, geometry is delegated to the image model or emitted directly by the language model, and checked only after the fact, visually or with lightweight overlap heuristics, rather than enforced by construction. autoillustrate instead has agents write coordinate-free draw.io templates and Python layout programs that must pass deterministic collision and routing checks, and confines the image model to a final restyle audited against the deterministic render.