paper2code: Paper-to-Code Skill
Turn any arXiv paper into a working implementation with citation anchoring
- Source repo
- PrathamLearnsToCode/paper2code
- Stars
- ★ 1.6k
- Last updated
- 23d ago
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 46/100 · Major gaps
At a glance
- How it runs
- Works with
- Platform-specificClaude Code
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A researcher wants to quickly understand a paper's implementation details without reading a lengthy codebase.
- Not a fit if
- Teams using coding agents other than Claude Code
- Users expecting a fully trained, reproducible result
- Teams needing datasets downloaded and training run for them
- Website
- tensortonic.com/research ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-09
- Source review
- 46/100 · Major gaps 1 safety controls not found
What does this agent do, and when should you use it?
paper2code is an Agent skill for Claude Code that takes an arXiv paper URL and produces a structured code project where every line of key code references the exact paper section and equation it implements. It performs an ambiguity audit before writing any code, classifying each implementation choice as SPECIFIED, PARTIALLY_SPECIFIED, or UNSPECIFIED, and flags unspecified choices with [UNSPECIFIED] comments and alternatives. The generated output includes a src directory with model, loss, train, data, evaluate, and utils modules, a configs/base.yaml for hyperparameters, and a pedagogical walkthrough notebook. It mines appendices, footnotes, and figure captions as first-class sources, and emphasizes honest uncertainty. The skill is installed via npx and used through slash commands in Claude Code.
paper2code is triggered by the /paper2code command, accepting full arXiv URLs or bare IDs like 1706.03762. It fetches the paper, parses it, runs an ambiguity audit, then generates an output folder (e.g., attention_is_all_you_need/) containing README.md, REPRODUCTION_NOTES.md (the audit), requirements.txt, and src/ files: model.py, loss.py, train.py, data.py, evaluate.py, utils.py, plus configs/base.yaml and notebooks/walkthrough.ipynb. Every non-trivial code decision is anchored with §X.Y or §X.Y, Eq. N comments; unspecified choices are marked with [UNSPECIFIED] comments. The skill supports options like --framework jax, --mode full, and --mode educational.
- A researcher wants to quickly understand a paper's implementation details without reading a lengthy codebase.
- An ML engineer needs to verify a paper's reproducibility and see which hyperparameters are explicitly specified.
- A student wants to learn how each paper component maps to code through a runnable notebook.
- A developer needs to generate a paper implementation in a specific framework like JAX.
- A paper author wants to check for ambiguities in their own paper to improve clarity.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx skills add PrathamLearnsToCode/paper2code/skills/paper2code
How do you install or deploy this agent?
Install using npx: npx skills add PrathamLearnsToCode/paper2code/skills/paper2code. You'll be prompted to select agents (e.g., Claude Code), scope (Global or project-level), and method (Symlink or copy).
How do you use this agent?
After installation, open Claude Code and run the skill command, e.g., /paper2code https://arxiv.org/abs/1706.03762. You can also specify a framework (--framework jax), mode (--mode full or --mode educational), or use a bare arXiv ID (/paper2code 1706.03762).
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- confirmation before acting — Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
What are this agent's strengths and limitations?
- Citation anchoring: every code line references paper sections for verifiability.
- Ambiguity audit: explicitly marks unspecified and partially specified choices, preventing hallucination.
- Honest uncertainty:
[UNSPECIFIED]comments list common alternatives. - Appendix mining: treats appendices, footnotes, and figure captions as first-class sources.
- Includes a pedagogical notebook for learning and verification.
- Platform-specific: only supports Claude Code.
- No correctness guarantee: if the paper is wrong, the code is wrong.
- Does not implement baselines or standard components; requires external dependencies.
- Does not download datasets; provides a skeleton with TODOs.
- No training infrastructure like distributed training or experiment tracking.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| paper2code: Paper-to-Code Skill This agent | 46 · Major gaps | Agent plugin / skillFree + model costs | ★ 1.6k | 23d ago | Python | Claude Code |
| Weco Autoresearch | 59 · Major gaps | CLIFree + model costs | ★ 127 | 29d ago | Python | Codex · Claude Code · OpenAI API |
| Trace Generative Optimizer | 51 · Major gaps | Library / SDKFree + model costs | ★ 767 | 1y ago | Python | OpenAI API · Claude API |
| AWorld Agent Harness | 48 · Major gaps | CLIFree + model costs | ★ 1.3k | 24d ago | Python | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The skill specifies a temporary work directory, paper fetching, dependency installation, and cleanup after success; the README describes the output structure. This makes some data flows and side effects visible, but the packet shows no user confirmation, sensitive-data handling, pinned install command, or recovery mechanism, so those scores remain low. Citation anchors, ambiguity labels, and an official-code marker help attribution checks, earning 2 for source attribution, though the evidence is descriptive.
The workflow lists ordered stages, requires checking parsing outputs, and points to a fallback protocol on extraction failure. The README says dependencies are pinned, while the skill's install command uses unpinned pip installs; the packet also does not show dependency-list contents or concrete error messages. These criteria therefore receive 1.
The material describes minimal, full, and educational modes and PyTorch, JAX, and NumPy options, covering ordinary scenarios. It also states limits such as no correctness guarantee, dataset downloads, or training infrastructure. Trigger conditions are specific, but execution depends on Bash, pip, and Python and does not explain other environments, so environment fit receives 1.
The README, skill file, and license provide reasonably clear navigation, installation instructions, naming, and output descriptions. There are example commands and stated limitations, but the README says worked examples are included while their contents are not shown in this packet; no FAQ is shown. The MIT license text is complete and earns 3. No version or changelog is supplied, and maintenance responsibility is only partly indicated through contribution and PR guidance.
The proposed outputs include code, configuration, reproduction notes, and a walkthrough notebook; citation anchoring and ambiguity audits support usability and added value. The fetch, parse, generation, and notebook workflow uses multiple dependencies and stages, with no cost, time, or resource guidance, so cost-benefit receives 1.
The design asks authors to link implementation decisions to paper sections and equations and to distinguish specified, partial, unspecified, assumed, and official-code choices. This supports traceability and separation of fact from inference. The README's claims partly align with the supplied skill workflow, but no generated artifacts or additional source files are shown to corroborate them, so cross-source corroboration receives 1.
- Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
- The skill runs dependency installation and paper fetching, then asks to remove the temporary directory after success; confirm the target environment and temporary-file cleanup behavior are suitable.
- The README says dependencies are pinned, but the shown install command does not pin versions. The packet does not include dependency-list contents or generated outputs, so it cannot establish reproducibility or implementation correctness.
FAQ
Can this skill guarantee the generated code is correct and runnable?
Does it support multiple agents?
What if I need a dataset?
Does it implement everything in the paper?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.