2026-09-16

Stanford's Paper2Agent Turns a Research Paper Into an AI Agent You Can Query — and Then Lets That Agent Talk to Other Papers' Agents

AIScience🌍 North America

A Stanford team — Jiacheng Miao, Joe R. Davis, Yaohui Zhang, Jonathan K. Pritchard, and James Zou — published Paper2Agent in Nature today: a framework that automatically converts a research paper and its accompanying codebase into an interactive AI agent. Feed it a paper, and it locates the associated code repository, builds and tests an isolated environment, works through the paper's own tutorials end to end, extracts the tutorials' steps into standalone, reusable tools, validates each one against the paper's own reference outputs, and packages the result into a Model Context Protocol (MCP) server — the same connector standard now used across the industry to plug tools into LLM agents, which this blog has covered elsewhere this year as it's become a de facto integration layer. Connect any compatible chat agent to that server, and you can ask the paper's own method a question in plain language instead of cloning a repository and reverse-engineering its API.

Built with the tools it's writing about

The pipeline itself is implemented as a multi-agent system on Claude Code's agent SDK, with specialized sub-agents — environment setup, tutorial scanning, tutorial execution, tool extraction, test verification — coordinated by an orchestrator, and Claude Sonnet 4 running as the downstream conversational agent in every case study the paper reports. That's not incidental color: a peer-reviewed Nature paper choosing a specific commercial agent harness as its reference implementation, rather than a from-scratch framework, is itself a data point about how far MCP and Claude Code's agent tooling have already been absorbed into how working scientists build things, independent of whatever else is true about the paper's own results.

The part actually worth taking seriously: reference-locked validation

Most "turn an LLM loose on your codebase" pitches wave past the obvious risk — that a model asked to reproduce a paper's method just hallucinates plausible-looking code that quietly produces wrong numbers. Paper2Agent's design responds to that directly, not just rhetorically. Every generated tool is tested against the tutorial's own example data before it's allowed into the final MCP server: numerical outputs have to fall within a 3% tolerance of the reference result, and generated figures are checked with a perceptual hash against the reference image (Hamming distance under 20). Tools that fail repeatedly, after up to six automated repair attempts, get their MCP decorators stripped and are excluded from the shipped server rather than shipped broken. The team also ran adversarial tests — injecting dependency failures, broken file paths, typos, and deprecated API calls into a working repository to see whether the pipeline could recover a functional server, and running a permuted paper-question benchmark specifically to check whether the system would correctly refuse out-of-scope queries (100% correct rejection reported). That's a meaningfully more rigorous validation regime than the benchmark charts this blog usually encounters from product launches, and it's worth naming as the real methodological contribution here, ahead of any specific accuracy number in the case studies.

Case study one answers a gap this blog already flagged

The first and most detailed case study agentifies AlphaGenome, DeepMind's genome-scale variant-effect model — and the paper states its motivation in almost the exact words this blog used covering AlphaGenome Atlas eight days earlier: that using AlphaGenome "requires substantial technical expertise to set up and deploy," with users needing to install the environment, manage API keys, construct client objects, and understand output modality selection before ever answering a biological question. DeepMind's own fix for that gap, published September 8, was a free precomputed database covering all 9 billion possible single-letter genome variants — solve the accessibility problem by doing the computation once, centrally, and letting anyone query the results. Paper2Agent's fix, arriving a week later from an entirely different team, is the opposite approach: leave AlphaGenome's actual model in place and build a conversational interface around its own codebase instead. Two independent solutions to the identical stated problem, from two different institutions, eight days apart — worth reading together rather than as competitors, since a precomputed atlas and an on-demand reasoning agent solve different halves of "AlphaGenome is hard to use."

The resulting AlphaGenome agent generated 22 validated tools in about 45 minutes for roughly $14 in compute, with no human intervention. Benchmarked by two independent human graders (96.7% inter-rater agreement) against Claude with direct repository access and against Biomni — a separate, existing Stanford biomedical-agent system, from a different research group at the same university, which is worth flagging plainly given it's the weaker-scoring baseline in every comparison shown — the Paper2Agent-built agent scored 98.7% on tutorial-derived queries against 82.7% (Claude+Repo) and 78.7% (Biomni), and 100.0% on novel queries against 78.7% and 56.0%. On 30 open-ended, researcher-style queries requiring multi-step reasoning, the gap narrowed but held: 82.7% against 56.7% and 72.2%.

The psoriasis case study is a validation exercise, not a new discovery

The paper's most ambitious demonstration has three separately-built paper agents — one for AlphaGenome, one for a published MPRA-coupled single-cell CRISPR interference screen, one for a published Perturb-seq dataset in primary human CD4+ T cells — collaborating without a human in the loop to test a specific hypothesis: that GPR137 is the causal gene at a psoriasis-associated genetic locus AlphaGenome had already flagged. Worth being precise about what this does and doesn't demonstrate: the underlying experimental datasets already existed and were already published by other researchers; what's new is an AI system autonomously designing and running the cross-validation strategy — correlating the locus's own regulatory-perturbation signature against each candidate gene's knockdown signature — and finding real statistical support (Spearman's ρ = 0.613, P = 3.79×10⁻³ at one timepoint; ρ = 0.630, P = 4.71×10⁻³ at another) specifically for GPR137, while three other top-ranked candidate genes and a negative-control gene showed no significant correlation in the same test. That's genuinely interesting as a demonstration of agents doing real hypothesis-testing work against independent data — but it's validation of an existing prediction using existing public data, not new experimental discovery, and the paper itself is careful about that distinction even where secondary coverage might not be.

The bottleneck this answers, named two weeks before it published

This blog covered ASI-Bench two weeks ago, a benchmark testing AI agents on real research tasks as human guidance gets progressively withdrawn. Its central finding was specific: performance collapses hardest not when agents have to choose their own research method, but when they have to turn a named method into an actual working procedure — "method operationalization, rather than method selection," in the authors' own words, as the primary bottleneck to autonomous science. Paper2Agent is, functionally, a purpose-built answer to exactly that bottleneck: it doesn't ask an agent to invent a method from scratch, it takes a method a human researcher already fully specified in a published paper and does the operationalization work — environment setup, dependency resolution, parameter extraction, output validation — automatically, once, so that every subsequent user gets a working procedure rather than a paper to re-implement. Two research groups, working independently, converged on the same diagnosis of where AI-for-science actually fails, two weeks apart.

Real numbers on where it breaks

Run at scale against 100 computational biology papers, 74 were successfully converted into working agents; the rest failed on incomplete codebases, missing documentation, or environment configurations the pipeline couldn't resolve — a limitation the authors state plainly rather than bury. Across a separate 10-paper, non-biology test spanning AI, statistics, econometrics, game theory, and astrophysics, the system reported 98.1% accuracy on 42 execution-based tasks, evidence the approach isn't narrowly tuned to biomedical codebases specifically. On a Scanpy-based single-cell analysis agent tested against 300 benchmark questions, Paper2Agent paired with Sonnet 4 scored 91.2% against 80.3% for Claude Code with direct repository access on the same model, and reduced per-query cost from $0.38 to $0.20 and latency from 4.3 minutes to 1.6.

What the authors themselves flag as unresolved

The discussion section is unusually candid about what this doesn't settle. The authors frame Paper2Agent as a tool for "augmenting scientific discovery and improving access, reproducibility and reuse of papers, rather than as an autonomous or authoritative source of scientific conclusions" — hypothesis generation and mechanistic interpretation, in their own words, "remains human-in-the-loop." They also raise, without resolving, a set of real downstream problems this framework creates rather than solves: turning a paper into an executable agent introduces security, intellectual property, and attribution questions that don't exist for a static PDF, and they propose journals eventually add an "agent availability" statement alongside the now-standard data- and code-availability sections — a real, concrete policy proposal rather than a hand-wave, though one that raises exactly the enforcement and verification questions the rest of scientific publishing already struggles with for code and data availability today.