Turning a Scientific Paper into an AI Agent — and Unintentionally Measuring Reproducibility

Paper2Agent: the system that turns a scientific paper into an AI agent
From the moment it is published, a scientific paper is a passive object . You read it and try to understand it; to adapt it to your own work, you must find and download the author's code, set up the environment and work out the method. A Stanford team proposes changing this: turning the paper into an AI agent you can talk to and whose method you can run on your own data . The system is called Paper2Agent and was published in Nature . But the most striking result lies not in what the system does — but in what it cannot do.
This is the backbone of the article: Of 100 computational biology papers, only 74 could be converted into agents. The remaining 26, because their code was incomplete, their data could not be found or their environment could not be set up, could not be converted . In the authors' own words: "The ease with which a paper can be converted into an agent can provide a practical measure of reproducibility in its own right."
Thus, this tool also unintentionally becomes an auditing tool.
| Title | "Reimagining research papers as interactive and reliable AI agents" |
| Authors | Jiacheng Miao, Joe R. Davis, Yaohui Zhang, Jonathan K. Pritchard, James Zou |
| Institution | Stanford University |
| Journal | Nature · DOI 10.1038/s41586-026-11044-y |
| Process | Submitted 13 October 2025 · Accepted 14 August 2026 |
| Access | Open access |
| Live demo | paper2agent.ai/live |
| Infrastructure used | Claude Code and MCP (Model Context Protocol) servers |

The problem it aims to solve
The authors explain the problem with a concrete example. AlphaGenome is a model capable of powerful genome-scale predictions. But to use it, you must find the repository, set up the environment, obtain an API key, create client objects, construct variant objects and choose the output format. This is a substantial learning curve for a molecular biologist.
The fundamental contradiction of papers is this: The value of a methods paper lies in using that method . But the paper format is optimized for explaining it rather than using it. Readers must bridge the gap through their own effort — and often cannot. In the authors' words, research outputs are "passively siloed behind technical barriers."
How does it work?
Paper2Agent converts a paper into an agent in four steps. The process is automatic and requires no human intervention.
| Step | What is done |
|---|---|
| 1. Analysis | The paper text, supplementary materials, datasets, code repository and tutorials are examined together. Multiple agents do this in parallel |
| 2. Tool extraction | Functions in the code are converted into MCP tools . Each tool is equipped with well-defined input parameters and descriptions |
| 3. Validation | This is the critical step. The system generates and runs tests for each tool using example data; it checks whether results fall within tolerances and whether generated figures match the paper's figures. Tools that fail are discarded or corrected |
| 4. Packaging | Validated tools and the runtime environment are locked and packaged as an MCP server. Each tool carries a code reference to its counterpart in the paper |
What is MCP (Model Context Protocol)? It is a standard protocol used to connect an AI model to external tools. You can think of the model as a computer and the MCP server as a device plugged into it: the model can invoke and run the server's tools through natural language. This is exactly what Paper2Agent produces — an MCP server for each paper . This server can connect to any conversational agent, such as Claude Code.
The validation step distinguishes this study from similar efforts. The idea of "generating code from a paper" is not new. Here, the difference is that every generated tool is tested by running it and comparing its results with the paper , after which the environment is locked . Locking matters: the tool will not break when a library version changes tomorrow. It means not leaving reproducibility to chance.
What can the resulting agent do?
- Talk to the paper: You can ask about its method, assumptions and limitations in natural language — as if asking the corresponding author.
- Reproduce the paper's results: You can say, "Recreate Figure 3."
- Apply the method to your own data: This is the real value. You can run the paper's analysis pipeline on your own dataset.
- Reuse datasets: You can ask questions directly of the paper's data.
- Work with other paper agents: An agent for a methods paper can talk to an agent for a data paper.
Results: how well does it work?
Example 1: the AlphaGenome agent
all passed validation
setup time
on a personal computer
| Question type | Paper2Agent | Claude Code + direct repository access | Biomni |
|---|---|---|---|
| 15 questions derived from the tutorial | %98,7 ± 1,3 | %82,7 ± 3,4 | %37,3 ± 4,0 |
| 15 new questions (not in the tutorial) | %100,0 ± 0,0 | %78,7 ± 4,4 | %56,0 ± 3,4 |
| 30 open-ended researcher-style questions | %82,7 ± 2,4 | %56,7 ± 2,3 | %72,2 ± 2,2 |
Evaluation used five independent runs; inter-rater agreement was 96,7%. No method was given the manuscript or raw repository during evaluation. Gains persisted when questions were reworded and even when the comparator was upgraded to a newer model.
Example 2: the Scanpy agent
Scanpy is a widely used package for single-cell transcriptomic analysis. For its most commonly used function (preprocessing and clustering), Paper2Agent generated 7 tools ; all passed validation, and the process again required approximately 45 minutes and 13 dollars to complete.
An additional problem is solved here: workflow order. In a multistep analysis, steps must be performed in the correct order. An AI agent must either "know" this order from the outset or be guided by a carefully written user prompt. Paper2Agent directly extracts and encodes the order from the paper as MCP prompts — so the user does not need to know it.
Large-scale evaluation: the key result is here
The authors ran the system end to end on three different sets of papers, without any manual cleanup or intervention.
| Set | Result |
|---|---|
| 100 computational biology papers | 74 were successfully converted into agents. 599 tools were proposed, 593 passed validation |
| 300 tutorial-based benchmark questions | Paper2Agent (Sonnet 4): %91,2 ± 1,6 Claude Code + direct repository access (Sonnet 4): 80,3% ± 2,3 (p<0,0001) Claude Code + direct repository access (Sonnet 4.6): 86,3% ± 1,1 (p<0,0001) |
| Cost and time per query | Paper2Agent: 0,20 $ and 1,6 minutes Direct model + repository: 0,38 $ and 4,3 minutes |
| 10 non-biology papers artificial intelligence, statistics, econometrics, game theory, astrophysics | Across 42 execution tasks, %98,1 ± 0,8 — showing generalization beyond the field |
| 26 data- and discovery-focused papers no executable code | With the resource layer alone, on 100 synthesis questions, %89,0 ± 3,1 Comparator (browser-using model): 82,0% ± 3,8 (p=0,03) Moreover, 34 times cheaper and 15 times faster |
Robustness tests
| Test | Result |
|---|---|
| Rejection of out-of-scope questions by mixing papers and questions |
Paper2Agent correctly rejected 100% of out-of-scope questions — it can say "I don't know" to a question outside its own paper |
| Repository corruption tests deliberately broken dependencies, file paths, typos, deprecated APIs |
The system was able to recover working MCP servers from these failures |
| Repository without tutorials | A working MCP could also be produced from a repository without a tutorial — tutorials are helpful but not mandatory |
| Shortcut learning | No evidence of systematic "shortcuts" (memorizing answers instead of performing the actual calculation) was found in the generated MCPs |
Agents working together: the psoriasis example
This is the paper's most ambitious section. The authors had three separate paper agents communicate: AlphaGenome (methods), MPRA-linked single-cell CRISPR intervention (data), and Perturb-seq in CD4+ T cells (data).
| Step | What happened |
|---|---|
| Question | Through which gene does the psoriasis-associated rs887314 variant act in CD4+ T cells? |
| Prediction | The AlphaGenome agent highlighted GPR137 (RNA sequencing quantitative score 0,997 — first among all genes in the region) |
| Human intervention | The AI proposed ten validation strategies ; from these, the researcher selected one — signature correlation analysis |
| Validation | The agent compared gene expression changes caused by perturbing the regulatory region containing the variant with changes caused by silencing candidate genes individually |
| Result | Only silencing GPR137 produced a match: Spearman 0,613 (p=0,0038, 8 hours of stimulation) and 0,630 (p=0,0047, 48 hours of stimulation). BAD and the other three candidate genes did not match under any condition |
| Nuance | The match was not significant at rest (Spearman 0,29; p=0,21) — meaning the effect depends on cell stimulation . This is consistent with the known role of activated CD4+ T cells in psoriasis |
What stands out here is the method itself, rather than the result. The agent's proposed validation strategy — correlating signatures from two independent perturbation datasets — was not proposed in any of the source papers . A new data integration approach therefore emerged. Still, a human made the decision: the AI proposed ten options, and the researcher selected one.
The real news: 26 of 100 papers could not be converted into agents
The figure in this study that most deserves discussion is not the best performance — but the failure rate.
biology papers attempted
| Reason | Meaning |
|---|---|
| No executable code available | The paper describes a method, but the code to run it is absent or inaccessible |
| Missing data or model files | Code exists, but the dataset or trained model needed to run it has not been shared |
| Environment and dependency errors | Code and data exist, but required library versions are unspecified or can no longer be installed |
| Scripts that do not generalize | The code was written for one specific case on the author's own computer; it does not work with other data |
| Incomplete documentation | What the code does and which inputs it expects are not documented |
The authors' own conclusion is this — perhaps the most important sentence in the paper:
"These challenges suggest that the ease with which a paper can be converted into an agent could itself be a practical measure of reproducibility."
Thus, alongside its intended purpose, Paper2Agent becomes an automatic reproducibility auditor . You give the system a paper; if it cannot produce an output, the problem lies with the paper, rather than the system. This audit requires no human effort, is scalable and is not subjective.
Why this matters
In science, the reproducibility crisis has been discussed for years: a substantial proportion of published studies do not yield the same results when others attempt to reproduce them. In computational sciences, the problem has a particular form — the result may not be "wrong," but the path to the result cannot be retraced : code is incomplete, the environment is lost, or data have not been shared.
Until now, the only way to measure this was for someone to sit down and try manually — slow, expensive and limited to a small number of papers. Paper2Agent makes this automatic and scalable.
The authors' prediction: Many journals now require "data availability" and "code availability" sections. The authors predict the addition of an "agent availability" section — stating whether the paper's contribution is also offered as an interactive agent. This would encourage authors to design their work to be "agentizable" from the outset.
Objective assessment: what does it measure, and what does it not measure?
1. "Reproducible" and "correct" are not the same
This is the article's most critical warning. Paper2Agent can reproduce a paper's results perfectly — and the paper could still be wrong . The system verifies that the code runs and its output matches the paper. It does not assess whether the method is the right one, whether the statistics were chosen appropriately, or whether the results were overinterpreted.
A flawed analysis pipeline can also be perfectly reproducible. This tool measures computational fidelity , rather than scientific validity. Confusing the two leads to the dangerous conclusion that "what is reproducible is correct."
2. Benchmarks measure "faithful execution," not scientific correctness
The authors state this themselves, honestly: open-ended analyses may have multiple defensible answers, so benchmarks based on agreement with a single reference answer should be interpreted "primarily as measures of faithful execution , rather than analytical validity."
Thus, 91,2% accuracy does not mean "the agent gave the scientifically correct answer"; it means "the agent performed the expected operation correctly." The difference grows particularly for open-ended research questions.
3. Reasons for failure have not been broken down
The inability to convert 26 papers into agents is a striking finding, but the number of papers affected by each reason was not reported . "There is no code at all" and "the library version is obsolete" are not equally serious problems: the first is the author's choice, the second a natural effect of time. Without this distinction, using the number as a reproducibility measure remains incomplete.
Moreover, the main text on which this article is based does not detail how the 100 papers were selected, or which journals and years they came from (this is left to supplementary notes). Selection directly affects how generalizable the 74% rate is.
4. The developers performed the evaluation
The team developing the system defined the benchmark questions, reference answers and scoring criteria. Inter-rater agreement of 96,7% is a good sign, but repeating the same test with an independent group would provide separate validation. This is a common, unavoidable limitation in papers introducing new tools — but it remains a limitation.
5. Model dependence and maintenance burden
- The system was run with a particular AI model family. How results change when the model changes has been partly tested, but is not fully known.
- As the authors themselves acknowledge, paper agents also require maintenance — just like code repositories. Agents must be updated as upstream codebases and dependencies change. It is not a matter of "generate once and run forever."
- The cost is low but not zero: approximately 13–14 dollars to set up each paper, and 0,20 dollars per query.
6. Interpretation remains human
The authors particularly emphasize this point, indicating that the tool is positioned honestly: "Open-ended scientific reasoning, including hypothesis generation and mechanistic interpretation, remains under human supervision. Paper2Agent can generate hypotheses, propose validation strategies and run analyses at scale, but choosing the direction and assessing the evidence are the researcher's responsibility."
They also define it clearly: this tool is " not an autonomous or authoritative source of scientific conclusions "; it is a tool that strengthens scientific discovery and improves access to papers, reproducibility and reuse.
What does it mean for readers in medicine and oncology?
A new signal for evidence assessment
Another question can be added to those we ask when assessing a study: do this paper's code and data actually work? Until now, checking this was impractical; if automated, it would provide a measurable indicator of a paper's methodological rigor.
Reanalysis becomes easier
One use highlighted by the authors is reassessing a published result with independent model-based evidence. With a single prompt, without building a new analysis pipeline. If applied at scale, this opens the way to systematically reviewing published results.
No direct relationship with clinical data
This tool is designed for computational methods papers. Patient data cannot be shared in most clinical trials; "agentizing" a phase 3 trial is therefore outside the scope of this approach. It is directly applicable in bioinformatics, genomics and image analysis.
One more warning. The idea of "talking to a paper" is appealing, but carries a risk: replacing reading . A paper's limitations, patient selection, statistical assumptions and what was not measured are understood not by chatting with it, but by reading it . The agent tells you what the paper says; noticing what the paper does not say remains the reader's task. As we have seen repeatedly in this series, a study's most important part is often what is not reported.
Frequently asked questions
- What exactly does Paper2Agent do?
- It automatically analyzes a scientific paper — its text, supplementary materials, datasets and code repository — and turns its methods into tools you can invoke through natural language. The result is an AI agent behaving like the paper's "virtual corresponding author": you can ask about its method, have it reproduce results and run the method on your own data.
- Is this different from having a language model read the paper?
- Yes, fundamentally different. When you give a language model a PDF, it talks about the text — it does not run the analysis in the code. Paper2Agent turns code functions into genuinely executable tools, then tests and validates them using example data. This is where the benchmark difference appears too: compared with a model given direct repository access, accuracy rises from 80,3% to 91,2%, while cost and time per query nearly halve.
- How is the "is this paper reproducible?" test performed?
- It is not actually a separate test — it is a natural byproduct of the system's operation. When converting a paper into an agent, Paper2Agent must run the code, find the data and set up the environment. If any is missing, the process fails. Of 100 computational biology papers, only 74 could be converted; the remaining 26 lacked code, data or a workable environment. In the authors' own words, the ease of converting a paper into an agent could itself be a measure of reproducibility.
- So is a paper that can be converted into an agent correct?
- Absolutely not, and this is the most important distinction. The system verifies that code runs and its output matches the paper — it does not assess whether the method is appropriate, statistics were chosen correctly, or results were overinterpreted. A flawed analysis can also be perfectly reproducible. "Reproducible" describes computational fidelity; "correct" describes scientific validity. They are different things.
- How long does it take, and how much does it cost?
- In the two example studies, converting a paper into an agent took approximately 45 minutes and 13–14 dollars — on a personal computer. This is a one-time cost. Afterward, each query takes approximately 0,20 dollars and 1,6 minutes. For comparison, performing the same task directly with a model and repository takes 0,38 dollars and 4,3 minutes.
- Does it work only for biology papers?
- No. The authors also tried 10 papers from artificial intelligence, statistics, econometrics, game theory and astrophysics; across 42 execution tasks, they achieved %98,1 accuracy. In addition, in 26 data and discovery papers without executable code, synthesis questions achieved 89,0% accuracy using only the "resource layer."
- Can agents talk to each other?
- Yes, and this is the paper's most ambitious demonstration. An agent from a methods paper (AlphaGenome) and agents from two data papers were run together to identify the gene through which a psoriasis-associated genetic variant acts: GPR137 . Moreover, the agent's proposed validation method — correlating signatures from two independent datasets — appears in none of the source papers. But a human made the choice: the agent proposed ten strategies, and the researcher selected one.
- Can this replace reading the paper?
- It should not. Understanding a paper's limitations, patient selection, statistical assumptions and what was not measured requires reading it, rather than chatting with it. The agent tells you what the paper says; noticing what the paper does not say remains the reader's task. A study's most important part is often what is not reported.
- What if the agent answers incorrectly? Is there a risk of fabrication?
- There are two safeguards against this risk. First, each tool carries a code reference to its counterpart in the paper — allowing the source of the answer to be traced. Second, in the out-of-scope question test, the system correctly rejected 100% of questions unrelated to its own paper . Still, accuracy falls to 82,7% on open-ended questions, meaning the margin of error is not zero.
- Can it also be used for clinical trials?
- Generally not. The tool is designed for computational methods papers. In most clinical trials, patient data cannot be shared because of privacy; agentizing a phase 3 trial is therefore outside this approach's scope. It is directly applicable in fields where code and data can be shared, such as bioinformatics, genomics, image analysis and epidemiological modeling.
- Will an agent work forever once set up?
- No. The authors explicitly state that paper agents, just like code repositories, require maintenance . Agents must be updated as upstream codebases and dependencies change. Locking the environment reduces this problem but does not eliminate it entirely.
- Will journals make it mandatory?
- The authors predict so. Many journals now require "data availability" and "code availability" sections; the authors expect an "agent availability" section to be added. If this happens, researchers will start designing their work to be agentizable from the outset — which itself creates positive pressure for reproducibility.
Glossary of terms
- Artificial intelligence agent (AI agent)
- An autonomous system that can reason about a task and act using external tools to achieve its goal. It usually combines a large language model with external tools.
- MCP (Model Context Protocol)
- A standard protocol connecting an AI model to external tools. Paper2Agent produces an MCP server for each paper; this server can be attached to any conversational agent.
- MCP server
- A software component offering specific tools and resources to an AI model. It is the paper agent's "toolbox," rather than its "brain."
- Reproducibility
- The ability to obtain the same result again using a study's data and method. It is not the same as correctness : a flawed analysis can also be perfectly reproducible.
- Dependency
- Other software libraries required for software to run. When versions are unspecified or change over time, code stops working — one of the main reasons papers cannot be converted into agents.
- Environment locking
- Recording and fixing all library versions in which code runs. Paper2Agent does this automatically to ensure the tool also works in the future.
- Benchmark
- A standard set of questions measuring a system's performance. This study used three types: tutorial-derived, new and open-ended researcher-style questions.
- Faithful execution
- A system performing the expected operation correctly. It is not the same as scientific correctness; the authors state that benchmark results should primarily be read in this sense.
- Shortcut learning
- A system memorizing and directly producing the expected answer instead of performing the actual calculation. The authors report finding no systematic evidence of this behavior.
- Repository drift
- A code repository deteriorating over time: dependencies become obsolete, file paths change, and APIs are deprecated. The authors deliberately introduced these failures to test the system.
- Tutorial
- A document demonstrating how to use software through examples. Paper2Agent relies heavily on these, but has also been shown to produce working agents from repositories without tutorials.
- GWAS (genome-wide association study)
- A method finding disease-associated genetic variants by scanning the entire genome. Identifying the gene through which a variant acts is a separate, difficult problem — exactly the psoriasis example in the paper.
- Single-cell transcriptomics
- A method measuring which genes individual cells express and to what extent. Scanpy is widely used software in this field.
DROZDOGAN Academy Commentary
This is not an oncology study; it concerns how science is conducted and audited. Yet precisely for this reason, it matters to everyone whose work involves reading evidence.
⚡ Why this study matters
For two reasons. The first is practical: a methods paper's value lies in its use, but the paper format optimizes explanation rather than use. Paper2Agent automates this gap — in 45 minutes and for 14 dollars. The second, more important reason: alongside its intended purpose, the system turns unintentionally into a reproducibility auditor . The inability to convert 26 of 100 papers is the figure in this study most deserving of discussion.
✅ The strength
The evaluation is rigorously designed: three separate paper sets, five independent runs, 96,7% inter-rater agreement, and comparator arms (a model with direct repository access, Biomni and a browser-using model). Robustness tests are substantial too: rejection of 100% of out-of-scope questions and recovery from deliberately corrupted repositories demonstrate care rarely seen in tools of this kind. In the psoriasis example, the agent proposed a validation strategy absent from the source papers , which is also truly striking. Most importantly, the authors do not exaggerate the tool — they themselves write that it is "not an autonomous or authoritative source of scientific conclusions."
⚠️ Limitations and points requiring attention
The most critical distinction is this: Being reproducible does not make something correct. The system verifies that code runs, rather than that the method is appropriate. A flawed analysis pipeline is also perfectly reproducible. The authors partly acknowledge this: they themselves write that benchmarks should be "read as measures of faithful execution, rather than analytical validity." Moreover, reasons for the 26 failed papers have not been broken down — "no code was shared" and "the library version is obsolete" are not equally serious problems, but are included in the same number. The selection of the 100 papers is not detailed in the main text either; this directly affects generalizability of the 74% rate. Finally, the team developing the system defined the benchmark questions and scoring criteria.
🩺 What to do in practice
1. Add a question to those you ask when assessing a paper: do its code and data actually work? This is now measurable.
2. Do not read "this paper is reproducible" as "this paper is correct" ; they are different things.
3. Put conversations with the agent alongside reading, rather than in its place . A study's most important part is often what is not reported, and the agent will not tell you this.
4. If publishing your own work, share code and data in a form someone else can run — including dependency versions. This is now a measured quality, rather than merely a courtesy.
5. This approach has limited scope in clinical trials; patient data cannot be shared. It is directly applicable in bioinformatics and genomics.
❓ Questions still unanswered
How many of the 26 failed papers failed because "code was never shared," and how many because it "deteriorated over time"? Without this distinction, the number cannot be an auditing measure. Would an independent group obtain the same results on repeating the benchmark? If journals require an "agent availability" section, will authors really share better code, or merely learn to tick the box? Most thought-provoking: as talking to papers becomes easier, what will happen to reading papers?
Our brief verdict: Paper2Agent's real contribution is not making methods papers usable — but making the robustness of a paper's construction something measurable . The inability to run 26 of 100 papers is a finding, rather than a failure of the tool. But this distinction must be preserved: the tool audits computational fidelity, rather than scientific validity. Not everything reproducible is correct.
Transparency note. This article is based on Miao and colleagues' open-access paper published in Nature , specifically its full text ; all numbers come from that text. The paper's Supplementary Notes, supplementary figures and full methods section were not consulted ; consequently, selection criteria for the 100 papers, the distribution of failure reasons by paper, details of ablation analyses and the additional ADHD case study are not covered here. Numbers are reported as given in the main text.
Whose criticisms are these? The finding that benchmarks "measure faithful execution, rather than analytical validity," the need for interpretation to remain under human supervision, and the need to maintain agents are the authors' own statements . By contrast, criticisms concerning the emphasis that "being reproducible does not make something correct", the lack of a breakdown of failure reasons, the absence of detailed paper selection methods in the main text, evaluation being performed by the development team and the risk of talking to agents replacing reading are our own.
This article introduces a software tool; we have not used the tool ourselves or tested it independently. The described system has no clinical application and contains no recommendation concerning patient care. The text is for information.
Sources
- Miao J, Davis JR, Zhang Y, Pritchard JK, Zou J. Reimagining research papers as interactive and reliable AI agents. Nature. 2026. DOI 10.1038/s41586-026-11044-y. (Open access)
- Paper2Agent live demo and documentation: paper2agent.ai
- Avsec Ž, et al. Advancing regulatory variant effect prediction with AlphaGenome. Nature.
- Wolf FA, Angerer P, Theis FJ. SCANPY: large-scale single-cell gene expression data analysis. Genome Biology.
- TISSUE: transcript imputation with spatial single-cell uncertainty estimation.
- MPRA-linked single-cell CRISPR intervention (scCRISPRi) study.
- Genome-scale Perturb-seq study in CD4+ T cells: context-specific regulators of T-cell programs.
- Model Context Protocol (MCP) technical documentation.
Plan your visit
Share your preferred date. Our team will contact you to arrange the appointment.
Was this article helpful?
Your feedback helps us improve our content.





Reader comments
Share your comment
Your name and comment are published only after administrator approval. Your email address is never shown to visitors.
Be the first to comment.