rlm harness: install from arbitrary branch#1153
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5513e13. Configure here.
rasdani
reviewed
Apr 16, 2026
| f"RAW_BASE={shlex.quote(raw_base)}" | ||
| f" && RLM_INSTALL_BRANCH={shlex.quote(rlm_branch)}" | ||
| ' && URL="https://${GH_TOKEN:+${GH_TOKEN}@}${RAW_BASE}/${RLM_INSTALL_BRANCH}/install.sh"' | ||
| ' && (curl -fsSL "$URL" || wget -qO- "$URL") > /tmp/rlm-install.sh' |
Contributor
There was a problem hiding this comment.
as we ensure curl is installed now in install.sh, you can delete any mentions of wget here
Multi-SWE-RL sandbox images lack curl, causing the install.sh download to fail before it ever runs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
rasdani
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
In the rlm harness, allow environments to determine which branch of the rlm repo to install from. This will make testing easier.
Type of Change
Testing
uv run pytestlocally.Checklist
Note
Medium Risk
Changes the runtime installation shell command and remote script URL construction, which could break environment provisioning if branch/URL/token handling differs across runners.
Overview
Adds
DEFAULT_RLM_BRANCHand threads a newrlm_branchparameter throughrlm_harness/build_install_script, allowing environments to install RLM from a non-mainbranch.Reworks the RLM install script command to ensure
curlis available, build a branch-awareraw.githubusercontent.comURL (optionally usingGH_TOKEN), and passRLM_REPO_URL/RLM_REPO_BRANCHinto the installer; exportsDEFAULT_RLM_BRANCHfrom the harnesses package.Reviewed by Cursor Bugbot for commit f612b36. Bugbot is set up for automated code reviews on this repo. Configure here.