(This post follows my previous one about new AI policies for my lab.)
I'm trying to come to terms with the challenges and opportunities of AI for science. Coding agents in particular offer the possibility of "checking" – reproducing and critiquing – scientific data analysis. This possibility is very exciting: AI can help us identify and correct errors in our own work. It can also help us find issues in the published literature, provided that code and data are publicly available. This all felt a little unrealistic even a year ago, but now if you ask a frontier model about the scientific literature on "high effort mode" it may dig into data as a matter of course! With cheaper tokens and computation, I suspect that computational reproducibility and error checking will soon be ubiquitous.
AI aside, open code and data for scientific papers is an ethical imperative. Transparency can help us deal with the fact that irreproducibility and error are unfortunately extremely common in the published literature. For example, around half of all psychology papers have at least one statistical test that – because of typos, rounding error, or other issues – is prima facie impossible (see statcheck). In addition, computational reproducibility – getting the same numbers from the same raw data – is not achievable for much of the published literature (one of our papers, new bigger study). That's why I have made it a lab policy to post code and data.
So did that policy work? And – did open code and data help us avoid errors?
I have been using AI agents (Claude Code, especially with Opus 5.5, which is quite good at this) to do pre-submission checks on manuscripts. I've also had some occasions to use it to reproduce published work and provide critique (outside of the peer review process where it is not always allowed by review agreements). Also, increasingly, AI-driven audits are being used adversarially – including a recent high-profile audit in economics. So, I decided, with some trepidation to turn the lens on my own work.
This is a challenging test, in part because I collaborate broadly and many of the papers I've been involved in are collaborations with folks outside my own lab, often outside of Stanford. Some collaborations are with large consortia.
I turned Claude loose on all the journal papers I have an authorship role on from the last five years. That covers 79 papers. 59 of these were empirical papers – the rest were commentaries, reviews, methods papers, or stage 1 registered reports without data. Here's the Claude skill I used. I have examined some of these reports in detail, but have not checked most of them. Thus, this is a preliminary report at best, since it relies on complex and stochastic AI analyses. Here is what I found out about transparency, reproducibility, error, and privacy.