Metadata-Version: 2.5
Name: runpapers
Version: 0.1.0
Summary: Verified, agent-ready packs that let any AI agent reproduce a paper's figures and answer new questions with its data.
Author: RunPapers contributors
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.11
Provides-Extra: mcp
Requires-Dist: mcp>=1.6; extra == 'mcp'
Description-Content-Type: text/markdown

# RunPapers

**Ask a published paper's data your own questions, with your own AI agent.**

A RunPapers *pack* turns one published paper into a verified workspace that any AI agent (Claude Code, Codex,
Antigravity, Gemini CLI, Cursor, ...) can run on your computer or cluster: links and checksums for the original public
data, recipes that reproduce every computationally reproducible main-figure panel, the paper's own numbers locked in as
targets, and plain-language instructions (`SKILL.md`, the open Agent Skills format) that keep new biological analyses
honest (true replicate units such as donors rather than individual cells, dissection or batch confounders, label
history, and questions the dataset cannot answer).

RunPapers hosts no AI model and sees none of your prompts or analyses: everything runs locally on your machine or your
cluster.

Website: **[runpapers.com](https://runpapers.com)** · Browse papers: [runpapers.com/papers/](https://runpapers.com/papers/)
· Guide: [runpapers.com/guide/](https://runpapers.com/guide/) · Request a paper: [runpapers.com/requests/](https://runpapers.com/requests/)

## For scientists

On a paper's page, click **Copy** on the prompt and paste it into your agent in an empty folder:

```text
I want to work with the data from this paper using RunPapers:
  "Cross-species multiomic atlas of the primate basal ganglia" (Johansen et al., Cell 2026), DOI 10.1016/j.cell.2026.10.012, PMID 43020019
Setup for you, the AI agent: fetch https://runpapers.com/papers/10-1016-j-cell-2026-10-012/AGENT.md (or `curl -sL` it) and follow it exactly.
Ask me everything you need in one message first. Then reproduce Figure 1B and show it to me with a table of
the paper's numbers next to yours, and then help me explore the data with my own questions.
```

Your agent needs only [`uv`](https://docs.astral.sh/uv/). It fetches the pack first (no bulk data download up front),
downloads only the files needed for the panel being run straight from the paper's original public repositories, verifies
every checksum, reproduces the figure so you can see the numbers match, and then writes transparent Python scripts in
`analyses/` for your own questions.

Or run it directly from a terminal:

```bash
RP="uvx runpapers"   # or before PyPI release: uvx --from git+https://github.com/runpapers/runpapers runpapers
$RP get 10.1016/j.cell.2026.10.012     # or by PMID: $RP get 43020019
cd 10-1016-j-cell-2026-10-012 && $RP needs && $RP run fig1b
```

### Local MCP server & multi-paper meetings

Connect any MCP-capable agent directly to RunPapers over `stdio` (stdlib-only, instant startup):

```json
{
  "mcpServers": {
    "runpapers": {
      "command": "uvx",
      "args": ["runpapers", "mcp"]
    }
  }
}
```

`rp mcp` exposes `search_papers`, `get_paper`, `get_skill` (Skills over MCP + `skill://runpapers/...` resources),
`list_recipes`, and `request_paper`. To compare findings across several verified packs on one topic (with automatic
shared-donor and taxonomy-alignment guardrails):

```bash
uvx runpapers meeting "striatal D2 SPN subtypes across primates"
```

## How packs are checked before release

Every pack listed as available on `runpapers.com` has passed a full chain of checks bound to the SHA-256 content hash
of the pack (`verify/*.json`):

| Check | What was verified |
|---|---|
| **Format & security** | Pack format `0.2`, licenses, per-recipe resource needs, target definitions, and static security scan pass cleanly (`rp lint`). |
| **Target reproduction** | Source data checksums match and every reproducible main-figure recipe hits the paper's locked target numbers on the current content hash (`rp verify`). |
| **Independent review** | A reviewer distinct from the pack builder compared every reproduced panel side by side with the published figure and audited targets and guardrails (`rp gallery`, `rp review`). |
| **Scientist sign-off** | A named scientist signed off the reproduction after passing review (`rp signoff`). |
| **Multi-agent user testing** | Fresh AI agents from at least two model families (Claude Code, Antigravity, Codex), given only the copy-prompt in an empty folder, reproduced a panel and answered held-out test questions (`rp usertest`). |

## Data and source-specific terms

RunPapers never re-hosts raw data and never redistributes copyrighted figure images unless the paper's license allows
it. Recipes fetch data directly from the original archives (Allen Brain Cell Atlas, NCBI GEO, CELLxGENE, NeMO, Zenodo,
figshare, ...) and verify sizes and MD5/SHA-256 checksums locally. Controlled-access datasets (such as dbGaP, EGA, or
restricted NeMO files) are never downloaded automatically; packs record access instructions instead.

**Always check a pack's recorded data terms before commercial use or publication — never assume public data are CC BY.**
For example, datasets from the **Allen Brain Cell Atlas** are governed by the
[Allen Institute Terms of Use](https://alleninstitute.org/terms-of-use/) (noncommercial research use, with citation of
both the paper and the Allen Brain Cell Atlas per the Allen Institute Citation Policy).

## Paper identity

Every paper is identified by its canonical lowercase **DOI** (`10.1016/j.cell.2026.10.012`); PMID, PMCID, preprint
DOIs, and `doi.org` / PubMed URLs are accepted everywhere as aliases (`rp resolve 43020019`). Packs live at
`papers/<DOI as a name>/` (for example, `papers/10-1016-j-cell-2026-10-012/`).

## For contributors (people and agents)

See [CONTRIBUTING.md](CONTRIBUTING.md) and [spec/pack-spec.md](spec/pack-spec.md). In short:

```bash
rp new <DOI or PMID> --online   # scaffold papers/<DOI as a name>/ from Crossref and PubMed metadata
rp lint <DOI>                   # format 0.2, licenses, per-recipe needs, completeness, and security scan
rp verify <DOI>                 # run CI-fitting recipes and check every recipe against its targets
rp status <DOI>                 # check verification status and next step
```

The `skills/runpapers-builder` skill walks an AI agent step by step through building and checking a pack.

## Command reference (`rp` / `runpapers`)

Every command supports `--help` and `--json` for machine-readable output:

- **Scientists & workspaces:** `rp get <id>` · `rp needs [id]` · `rp recipes [id]` · `rp run [id] <recipe>|--all` · `rp fetch [id]` · `rp meeting "<topic>"` · `rp mcp`
- **Discovery & paper queue:** `rp search [query]` · `rp resolve <id> [--online]` · `rp list` · `rp show <id>` · `rp request <id>` · `rp vote <id>` · `rp requests`
- **Building & verification:** `rp new <id> [--online]` · `rp lint [id|--all]` · `rp verify [id|--all]` · `rp status [id|--all]` · `rp gallery <id>` · `rp review <id>` · `rp signoff <id>` · `rp endorse <id>` · `rp usertest <id>`
- **Releases, website & maintainer ops:** `rp release check|build <id>` · `rp publish github|zenodo|huggingface <id>` · `rp site build|serve` · `rp ops board|nightly|targets|prepublish|fresh-history|github-setup`

## Credits and licenses

The paper-reading and verifier-independence ideas build on [Paper2Agent](https://github.com/jmiao24/Paper2Agent)
(Miao et al., *Nature* 2026; MIT). RunPapers adds checksummed original-repository data manifests, figure-level target
verification, content-hash verification records, a DOI registry, and naive-user testing across multiple agent families.

- **RunPapers tool & recipe code:** MIT (`LICENSE`).
- **Pack instructions & metadata:** CC BY 4.0 unless a pack specifies otherwise.
- **Underlying scientific data:** remain with their original repositories under their own terms of use.

<!-- mcp-name: com.runpapers/runpapers -->
