Skip to Content
Repo2RLEnv

Installation

Install the release or current source, then add only the extras your workflow needs.

Edit on GitHub

Use Python 3.12 or later. pip and uv tool install the published package. These docs follow main; use a checkout for changes listed as unreleased.

Requirements

RequirementNeeded for
Git and GitHub CLI (gh)GitHub repository access, including when using GITHUB_TOKEN
DockerNative pipelines that execute target code; local Harbor trials
Modal or Daytona credentialsRemote recipes, Tasksmith and quality-loop execution
Node.js 22.19+ and npmTasksmith's Pi/OpenCode author runtime
Model credentialsBootstrap, authoring, review and solver stages that call a model

PR-diff generation needs neither Docker nor a model key. Its grading does need a correctness judge. Review-only quality runs call a model but do not need a worker.

Install

pip install repo2rlenv

For Harbor in the same environment:

pip install 'repo2rlenv[harbor]'

This exposes both repo2rlenv and harbor. The extra selects the Harbor version supported by that Repo2RLEnv release; avoid upgrading the in-process runner independently.

From a checkout

Use a checkout for Tasksmith and remote recipes so the controller and uploaded runtime wheel come from the same source:

git clone https://github.com/huggingface/Repo2RLEnv
cd Repo2RLEnv
uv sync --frozen --extra tasksmith --extra daytona --extra harbor
uv build --wheel
uv run repo2rlenv --version

Choose the extras below; replace daytona with modal when needed. Run checkout commands as uv run repo2rlenv …. The wheel is written under dist/; pass its actual path to --runtime-wheel or execution.runtime_wheel.

Rebuild after changing or updating the source. Remote workflows compare the wheel's package contents with the installed controller and reject a stale wheel. Remote execution walks through a complete run.

Tasksmith runtime

After installing the tasksmith extra, install the pinned coding-agent runtime:

uv run repo2rlenv tasksmith install-runtime

Repeat this after an update changes the runtime lockfile.

Extras

ExtraEnables
harborHarbor models and trial execution for recipes, review and release workflows
modalModal workers and supported native GPU trials
daytonaDaytona workers
tasksmithLangGraph orchestration and checkpoint storage
mutationSWE-smith's Python source-mutation support
mutantsGo, Rust and JavaScript/TypeScript assertion controls through tree-sitter; Python controls use the standard library

The base package includes model calls through LiteLLM and Hub transfers through huggingface-hub. See pyproject.toml for dependency bounds and uv.lock for the exact checkout environment.

Tested source compatibility

Version 0.9.7 pins Harbor 0.26.0, Daytona 0.231.0 and Modal 1.6.4. Its repository lock selects LiteLLM 1.110.2, OpenAI 3.51.0 and Hub 2.4.0. Ordinary package installations resolve dependencies within the declared bounds; use the checkout lock to reproduce this exact combination. See the 0.9.7 release notes.

Use the repository lock for remote adapters. A provider SDK's next major version is not automatically compatible with the controller or Harbor integration.

Filelock security override

Version 0.9.6 and later require patched filelock>=4.2.1,<5 with a compatible stable LiteLLM release. No filelock override is needed. The workaround for older 0.9.5 installations is historical; see the 0.9.5 release notes. Prefer a fresh, supported installation when upgrading.

Credentials

ServiceSet upUsed by
GitHubgh auth login or GITHUB_TOKENPR mining and Tasksmith intake
GitLabGITLAB_TOKENSupported native GitLab sources
Model providerANTHROPIC_API_KEY, OPENAI_API_KEY or the configured provider's variableAuthoring, review and model-backed bootstrap
Hugging Facehf auth login or HF_TOKENHub downloads and publication; writes need permission
Modaluv run modal setup, or MODAL_TOKEN_ID and MODAL_TOKEN_SECRETModal workers and trials
DaytonaDAYTONA_API_KEYDaytona workers and trials
Container registryGHCR or Docker Hub credentialsDistribution of native bootstrap images

Model selection is explicit through --llm provider/model or workflow options. --llm-key-env selects a credential variable and --llm-endpoint supports a compatible endpoint where that command accepts it. Tasksmith authoring currently uses Anthropic models; its quality stages can use OpenAI or Anthropic.

Harbor's agent and verifier receive credentials separately through --ae and --ve. See run with Harbor, authentication and registry setup.

Using a .env file

Repo2RLEnv searches the current directory and its parents for .env, without overriding existing shell variables. See environment configuration and .env.example. Harbor is a separate CLI: pass its needed variables explicitly.

Platform support

Use Linux or macOS; WSL is the Windows route for full controller workflows. Native Windows CI covers CLI startup, discovery, emission and static checks. It does not establish full remote-controller portability. Choosing a cloud worker does not remove the controller's host requirements.

Verify your install

repo2rlenv --version
repo2rlenv pipelines list
repo2rlenv pipelines describe repo_mutate --recipe swe_smith

These commands do not launch workers or model calls. Continue with the quickstart, Tasksmith or remote recipe setup.

On this page