Skip to main content
Back

Sakana AI's Agentic Scientist Turns Claude Code Into a Research Machine

Sakana AI releases a scaffolded pipeline that turns Claude Code, Codex, and other coding agents into end-to-end research collaborators with rubric-based evaluation.

  • Sakana AI open-sources The Agentic Scientist, a scaffold that orchestrates off-the-shelf coding agents through an end-to-end research pipeline.
  • A meta-controller runs parallel agents across task drafting, ideation, sandboxed experiments, ablations, analysis, and writing.
  • Co-discovered Error Diffusion paper accepted as an oral at ALIFE 2026 after external peer review.
  • Autonomous runs pushed Doc-to-LoRA multi-needle retrieval from 52% to 98% and beat a CMA-ES baseline.
  • Evaluated across 9 LLMs and 4 harnesses (Codex, Claude Code, OpenCode, Pi) over 70 research campaigns.
  • Ablations show the base model matters more than the agent harness for reliable autonomy.

Sakana AI has released The Agentic Scientist, the third version of its automated research system. It places existing coding agents, including Claude Code and Codex, inside a research scaffold that assigns tasks, runs controlled experiments, builds ablations, and checks claims against rubrics defined before testing begins.

The optimizer trap

A coding agent given an open-ended research problem often behaves like a hill-climbing optimizer: it makes local changes, keeps whichever change improves the score, and repeats. Sakana describes the resulting weakness as a limited “ideation radius.” The agent may tune hyperparameters successfully while exploring few hypotheses or failing to establish why a change worked.

Sakana’s earlier AI Scientist v1 and v2, including work published by Nature, showed that agents could automate substantial parts of the research pipeline. Those runs also exposed underdeveloped ideas and implementation bugs. The new release addresses those failures through orchestration instead of a bespoke researcher model.

Rubrics before experiments

A meta-controller coordinates parallel coding-agent instances across task definition, ideation, planning, experimentation, aggregation, ablation, analysis, and writing. Each project begins with a task.md brief, which the drafting phase converts into a fixed evaluator and rubric. Later stages use those criteria to assess progress without rewriting the target around favorable results.

Each run proceeds through six phases:

  1. Task drafting: Converts task.md into the evaluator and scoring rubric.
  2. Investigation: Runs repeated idea, experiment, and evaluation cycles, with shared memory across workers.
  3. Ablation: Compares the leading program with baselines and versions that remove individual components.
  4. Final evaluation: Re-scores the selected program in a sealed environment.
  5. Post-hoc analysis: Searches run artifacts for additional evidence, failure patterns, and explanatory results.
  6. Paper generation: Writes and compiles the manuscript, then audits its claims against the recorded evidence. Optional review and revision passes can follow.

Every phase runs in a separate Docker container and reads a run-local snapshot of the task. The source files under examples/ remain unchanged, while each campaign retains its own inputs and artifacts. This structure supports comparison across runs, although stochastic model output and changes to hosted models can still produce different results.

The agsci run command can invoke claude, codex, cursor, opencode, gemini, or pi through a headless command-line adapter. Developers can change agent.name and agent.model to test another supported model and harness combination without redesigning the research workflow.

One reviewed paper, two benchmark gains

The release’s externally reviewed result is a paper on Error Diffusion, a biologically motivated alternative to backpropagation, the gradient-based method commonly used to train neural networks. Human researchers defined the scientific question and the requirements for a valid implementation. The system generated hypotheses, implemented experiments, and investigated failures. External reviewers accepted the paper for an oral presentation at ALIFE 2026 after humans independently checked the implementations and narrowed claims that exceeded the evidence.

Sakana also reports two autonomous benchmark results. On Doc-to-LoRA multi-needle retrieval, which tests whether a LoRA adapter trained from a document can answer several factual queries embedded within it, accuracy rose from 52% to 98%, a gain of 46 percentage points. In a separate task, the system designed a learned evolution strategy that outperformed its CMA-ES reference on unseen problems. CMA-ES is a standard method for optimizing a function when gradients are unavailable.

Models drive more of the score

The evaluation covered nine language models, four agentic harnesses, 14 supported model-harness pairings, and 70 research campaigns across the included tasks.

Evaluation dimension Coverage
Language models 9
Agentic harnesses Codex, Claude Code, OpenCode, and Pi
Model-harness pairings 14
Research campaigns 70

An agentic harness is the software around a model that manages prompts, tools, memory, execution, and feedback. The 14 tested pairings represent a subset of the 36 possible combinations of nine models and four harnesses. Across that tested set, newer models generally produced manuscripts with higher AI-reviewer scores, while changing the harness had a smaller effect than changing the underlying model.

AI-reviewer scores measure how automated reviewers assessed the generated papers. They do not independently verify implementations, novelty, or scientific correctness. External peer review covered the Error Diffusion paper alone, so the 70-campaign evaluation primarily measures pipeline consistency and comparative performance under the project’s rubrics.

Running it without exposing the host

The Apache-2.0 repository uses a Docker-first installation. Its quickstart runs the complete six-phase pipeline on a CPU-only circle-packing task. A GRPO reinforcement-learning preset requires two GPUs, with one assigned to vLLM sampling and the other to training.

Each campaign writes a structured directory under results/, with separate locations for task drafting, investigation, ablations, final evaluation, post-hoc analysis, and the paper. The included agsci inspect web interface provides a browser for those run artifacts.

Configured coding agents receive full tool permissions and can execute arbitrary commands while inheriting available API keys. The maintainers recommend running them inside the supplied Docker image, using restricted credentials, and providing only trusted task scaffolds and reference papers. Sensitive host directories should remain outside mounted paths.

The project’s preprint contains the full methodology, ablations, and task-level campaign results needed to examine or reproduce the reported evaluation.