# How to use RunPapers

RunPapers lets you reproduce a published paper's figures and then ask the paper's data your own questions, with the AI
agent you already use. You don't need to know Python: your agent sets everything up, downloads the data from the
paper's original repository and runs it on your own computer.

## What you need

- **An AI agent that can run terminal commands**: Claude Code, Codex, Antigravity, Gemini CLI, Cursor or similar. A
  chat-only assistant in a web browser can't run the recipes.
- **A computer** (macOS, Linux or Windows) with an internet connection and some free disk space. Each paper's page
  says how much it downloads.
- **A few minutes.** In our tests a fresh agent needed about 2 to 5 minutes from pasting the prompt to showing the
  reproduced figure, plus the download time on your connection. Nothing has to be installed beforehand: if `uv` (a small, widely used Python
  tool manager) is missing, your agent installs it with the official installer after asking you.

## Use a paper in five steps

1. **Find the paper.** On the [Papers](index.html) page, type in the search box: words from the title, an author, a
   gene, a cell type, a brain region, a DOI or a PMID. Click the paper.
2. **Read the badges** at the top of its page. They say how thoroughly the pack was checked ([what they mean](#badges)).
   The page also lists the panels that can be reproduced and example questions.
3. **Copy the prompt.** Choose your agent's tab, then press **Copy** on the dark box. Replace
   `<write your question here>` with your question, or leave it and ask later.
4. **Start your agent in an empty folder and paste the prompt.** For Claude Code: open a terminal, run
   `mkdir my-paper`, then `cd my-paper`, then `claude`, and paste. For Codex, the same with `codex`. For Antigravity,
   open an empty folder and paste into the agent panel. Approve the commands your agent asks to run.
5. **Look at the result.** Your agent shows you the reproduced figure and a table with the paper's numbers next to its
   own, then answers your question.

Behind the scenes, your agent runs `uvx --from git+https://github.com/runpapers/runpapers runpapers get <DOI>`. This makes a folder named after the paper (for example
`johansen2026/`), downloads the data from the original repository and checks every file against its checksum. Then it
reads the pack's instructions (`SKILL.md`) and runs a recipe.

What you'll find in the folder:

- `SKILL.md`: what the data are, how the files join, and the guardrails for this paper. Your agent reads it first,
  and it's worth a skim for you too.
- `data/`: the original files. It links to a shared download folder, so the same data are never downloaded twice.
- `recipes/`: the scripts that reproduce the paper's panels.
- `out/<recipe>/`: the reproduced figure, its tables, and `result.json` (the paper's numbers next to ours).
- `analyses/`: where your agent saves the scripts it writes for your questions, so you can re-run or share them.
- `AGENTS.md`, `CLAUDE.md` and `GEMINI.md`: so that any agent you open in this folder later knows where things are.

## Check the reproduction

- Compare the reproduced figure with the published panel. The numbers should match; colours and layout may differ.
- `out/<recipe>/result.json` lists every number taken from the paper, ours, the tolerance allowed, and where the
  paper states it (main text, figure or supplementary table).
- When a paper disagrees with itself (for example, a number in the text that differs from its own table), the pack
  says so openly instead of hiding it, and your agent should tell you.

## Ask good questions

Each paper's page lists example questions its data can answer. Some tips:

- Ask for values per donor (or per animal), not only pooled numbers. Donors, not cells, are the replicates.
- Ask your agent to show the code it ran and to save it in `analyses/`.
- Ask "What can't this dataset tell me?" Each pack lists the questions its data can't support, for example gene
  expression when the pack only covers cell metadata.
- If an answer surprises you, ask your agent to check it another way.
- To continue on another day, open your agent in the same folder. It reads `AGENTS.md` and carries on.

## What the badges mean

- **Runs**: the recipes re-ran from the original data under laptop limits and matched the paper's numbers. This is
  checked automatically on every change and every website update.
- **Checked**: an independent reviewer, never the pack's builder, compared every reproduced panel with the published
  figure and checked the numbers and instructions.
- **Reproduces**: a named scientist signed off the reproduction after the independent review.
- **Agent-tested**: fresh AI agents from at least two companies, given only the copy-prompt in an empty folder,
  reproduced the figure and correctly answered questions they had never seen.
- **Author-endorsed**: an author of the paper approved the pack.

Badges belong to one exact version of a pack. If anything in the pack changes, its badges show "re-checking" until
the checks pass again. More detail: [How it works](about.html#badges).

## Data terms and citing

- RunPapers never re-hosts data. Your agent downloads every file from the original repository, under that
  repository's terms, which each paper's page shows. For example, data from the Allen Brain Cell Atlas are for
  noncommercial research, and you cite them as the Allen Institute Citation Policy describes.
- If you publish something made with a pack, cite three things: the paper, the data source as its terms require, and
  the pack version. Once a pack is released, its paper page shows a permanent archive DOI to cite.
- Privacy: RunPapers has no server that runs analyses and never sees your questions. Your prompts go only to your
  agent's provider, under your agreement with them.

## Request a paper or vote

- Requests and votes are public issues on [GitHub](https://github.com/runpapers/runpapers/issues?q=label%3Arequest), so anyone can
  see what comes next. You need a free GitHub account.
- **Request:** on the [Requests](requests.html) page, press **Request a paper**, enter the DOI or PMID, and say what
  you'd like to do with the data. One request per paper.
- **Vote:** open the paper's request and add a thumbs-up. The papers with the most votes are packed first. Planned
  papers have a "request or vote" link too.
- **From your agent:** ask it to "request DOI ... on RunPapers". It runs `uvx --from git+https://github.com/runpapers/runpapers runpapers request <DOI or PMID>`, which
  prints the right link.

## Report a problem

If a recipe fails, a number disagrees with the paper, or a pack misled your agent, open an issue with the
[Report a problem with a pack](https://github.com/runpapers/runpapers/issues/new?template=pack-problem.yml) form. Include the DOI,
which agent you used, and what it said (its last few messages are enough).

## For power users and agents

- **Terminal:** `uvx --from git+https://github.com/runpapers/runpapers runpapers get <DOI>`, then `cd` into the folder and run `uvx --from git+https://github.com/runpapers/runpapers runpapers run <recipe>`.
  `uvx --from git+https://github.com/runpapers/runpapers runpapers --help` lists every command.
- **MCP:** connect RunPapers as an MCP server so any MCP-capable agent can search packs and read their instructions:
  `uvx --from git+https://github.com/runpapers/runpapers runpapers mcp`. For Claude Code: `claude mcp add runpapers -- uvx --from git+https://github.com/runpapers/runpapers runpapers mcp`. Other agents take the same command
  in their MCP settings.
- **Several papers at once:** `uvx --from git+https://github.com/runpapers/runpapers runpapers meeting "<topic>"` builds one workspace with every matching pack.
- **Machine-readable site:** [llms.txt](llms.txt), and [index.json](index.json), which lists every paper with its
  `agent` URL. Every page also has a plain-text `.md` twin.

## Troubleshooting

- **"uv: command not found" right after installing it:** open a new terminal (the installer updates your PATH), or
  ask your agent to use the full path that the installer printed.
- **Windows:** use PowerShell. If Windows refuses to create the `data` link, the pack still works, because the data
  location is written in `AGENTS.md`.
- **The download stopped:** paste the same prompt again in the same folder. Downloads resume, and files that already
  passed their checksum are not downloaded again.
- **Your agent wants to install Python packages:** each recipe declares its own packages, and `uv` installs them in
  a separate environment. Your system Python is not touched.
- **Your agent ignored the pack's instructions:** tell it "Read SKILL.md and follow its guardrails", or start again
  in a new empty folder.
