Skip to main content

One command from research paper to running code

Project description

replicant

One command from paper to running code.

Give replicant an arXiv ID, a PDF, or a GitHub URL and it clones the repo, resolves the dependencies with AI, and drops you into a working Docker environment — without touching your local Python.

pip install replicant
replicant setup 2103.00020   # CLIP — OpenAI's vision-language model
replicant shell              # enter the environment

Works on any ML paper. GPU papers spin up an EC2 instance automatically.

Prerequisites

  • Docker — must be installed and running
  • AWS account — for Bedrock (the AI backbone) and optionally EC2 (cloud/GPU builds)

On first run, replicant setup will walk you through AWS credentials and model selection. You can also run it explicitly:

replicant init

The wizard checks Docker, installs Terraform if needed, verifies AWS credentials, and tests Bedrock access. Takes about 2 minutes.

Install

pip install replicant

Requires Python 3.9+.

Quick Start

# From an arXiv ID
replicant setup 2301.07041

# From a PDF
replicant setup ./attention-is-all-you-need.pdf

# From a GitHub URL directly
replicant setup https://github.com/karpathy/nanoGPT

# Paper doesn't include a GitHub link? Specify it manually
replicant setup 2301.07041 --github https://github.com/author/repo

# Enter the environment
replicant shell

# Enter a specific environment by ID
replicant shell a3f2c1b0

Commands

Command Description
replicant init Run the first-time setup wizard
replicant init --reset Wipe config and re-run wizard
replicant setup <source> Set up from arXiv ID, PDF path, or GitHub URL
replicant setup <source> --cloud Build on AWS EC2 (GPU / large data)
replicant shell [env_id] Enter environment (latest if no ID given)
replicant list List all environments
replicant info [env_id] Show environment details
replicant delete <env_id> Remove environment and Docker image
replicant delete --all Remove all environments
replicant validate [env_id] Run post-build validation checks
replicant llm-config Show current Bedrock config and test connection
replicant cloud status List running cloud environments
replicant cloud teardown <env_id> Shut down EC2 instance
replicant benchmark <corpus> Batch-run across a CSV corpus of papers

Global flag: --verbose — stream build logs and debug output.

Cloud Execution

When a paper requires a GPU or downloads large datasets, replicant will prompt automatically:

GPU required. Run in the cloud? [y/N]:

Or pass --cloud to skip the prompt:

replicant setup 2103.00020 --cloud

This provisions a g4dn.xlarge EC2 instance (NVIDIA T4), builds the Docker image on it, pushes to ECR, and streams the shell over SSH. The instance runs until you explicitly tear it down:

replicant cloud teardown <env_id>

Cloud builds require Terraform — the replicant init wizard installs it automatically on macOS and Linux.

How It Works

replicant analyzes the repo and paper to build an environment spec, then generates a Dockerfile:

  1. Detect — searches the repo for Dockerfile, environment.yml, requirements.txt, setup.py, pyproject.toml, Pipfile (3 levels deep, monorepo-aware)
  2. Resolve — Claude reads the paper and repo together to fill in missing dependencies, fix version conflicts, and pin everything correctly
  3. Validate — checks every package name against PyPI before building; phantoms are re-resolved automatically
  4. Build — Docker image is built locally or on EC2; one-shot retry on failure re-resolves with the build error as context
  5. Shell — drops you into /workspace with the cloned code mounted

All data lives under ~/.replicant/. Set REPLICANT_HOME to override.

Docs

License

GNU Affero General Public License v3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

replicant_ai-0.1.1.tar.gz (82.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

replicant_ai-0.1.1-py3-none-any.whl (76.6 kB view details)

Uploaded Python 3

File details

Details for the file replicant_ai-0.1.1.tar.gz.

File metadata

  • Download URL: replicant_ai-0.1.1.tar.gz
  • Upload date:
  • Size: 82.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for replicant_ai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2338e0dd82218e18ba89a92a17dd135550a9c92afeaef2d50beded8845857aeb
MD5 5aa0c3c492918bc1d1233ece134a3587
BLAKE2b-256 2a7ccbe2688614e85b7b77dd6b891cd47f532ff507dfa04858275250ff5907bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for replicant_ai-0.1.1.tar.gz:

Publisher: publish.yml on oorjitchowdhary/replicant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file replicant_ai-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: replicant_ai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 76.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for replicant_ai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a1459aaffd76a561a9f2279c71dc8f2462c18106e28442c68a24d7fe8bf2493
MD5 0d6000de79adf76f3df575aa8e181a16
BLAKE2b-256 6e2e6f09703f97f466d4fe228f45667287b68880c071b8063c87d6b144c0b069

See more details on using hashes here.

Provenance

The following attestation bundles were made for replicant_ai-0.1.1-py3-none-any.whl:

Publisher: publish.yml on oorjitchowdhary/replicant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page