paper2code: Paper-to-Code Skill

Turn any arXiv paper into a working implementation with citation anchoring

Stars
★ 1.6k
Last updated
23d ago
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
Python

At a glance

How it runs
Agent plugin / skillCLI
Works with
Platform-specificClaude Code
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
npxNode.jsShell / CLINetwork accessLocal filesystem
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

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.

  1. A researcher wants to quickly understand a paper's implementation details without reading a lengthy codebase.
  2. An ML engineer needs to verify a paper's reproducibility and see which hyperparameters are explicitly specified.
  3. A student wants to learn how each paper component maps to code through a runnable notebook.
  4. A developer needs to generate a paper implementation in a specific framework like JAX.
  5. 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Not found in source — apply before daily use
  • 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?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
46/ 100 5-point scale 2.3 / 5
Trust 10/29
Reliability 5/14
Adaptability 10/18
Convention 10/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust10 / 29 · 1.7/5

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.

Reliability5 / 14 · 1.8/5

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.

Adaptability10 / 18 · 2.8/5

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.

Convention10 / 18 · 2.8/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability4 / 8 · 2.5/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision fcffce7a1250 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/paper2code.svg)](https://followagents.com/en/agents/paper2code)
<a href="https://followagents.com/en/agents/paper2code"><img src="https://followagents.com/badge/paper2code.svg" alt="FARS review"></a>

FAQ

Can this skill guarantee the generated code is correct and runnable?
No. It matches what the paper describes; if the paper is vague or wrong, the code will be too. But it flags unspecified parts so you know where to make your own decisions.
Does it support multiple agents?
It mainly targets Claude Code. During installation you can pick agents, but the documentation focuses on Claude Code.
What if I need a dataset?
The skill doesn't download datasets, but it generates a data.py skeleton with preprocessing TODOs and instructions.
Does it implement everything in the paper?
It only implements the core contribution, not baselines or standard components (e.g., standard transformer encoder).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts