SWE-ReX banner
SWE-agent SWE-agent

SWE-ReX

AI community intermediate

Description

[](https://swe-rex.com/latest/) [](https://join.slack.com/t/swe-bench/shared_invite/zt-36pj9bu5s-o3_yXPZbaH2wVnxnss1EkQ) [](https://pypi.org/project/swe-rex/)

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

SWE-agent Remote Execution Framework

[](https://swe-rex.com/latest/) [](https://join.slack.com/t/swe-bench/shared_invite/zt-36pj9bu5s-o3_yXPZbaH2wVnxnss1EkQ) [](https://pypi.org/project/swe-rex/)

SWE-ReX is a runtime interface for interacting with sandboxed shell environments, allowing you to effortlessly let your AI agent run *any command* on *any environment*.

Whether commands are executed locally or remotely in Docker containers, AWS remote machines, Modal, or something else, your agent code remains the same. Running 100 agents in parallel? No problem either!

Specifically, SWE-ReX allows your agent to

  • βœ… Interact with running shell sessions. SWE-ReX will recognize when commands are finished, extract the output and exit code and return them to your agent.
  • βœ… Let your agent use interactive command line tools like ipython, gdb or more in the shell.
  • βœ… Interact with multiple such shell sessions in parallel, similar to how humans can have a shell, ipython, gdb, etc. all running at the same time.

We built SWE-ReX to help you focus on developing and evaluating your agent, not on infrastructure.

SWE-ReX came out of our experiences with [SWE-agent][] and [SWE-agent enigma][enigma]. Using SWE-ReX, we

  • πŸ¦– Support fast, massively parallel agent runs (which made evaluating on large benchmarks a breeze).
  • πŸ¦– Support a broad range of platforms, including non-Linux machines without Docker.
  • πŸ¦– Disentangle agent logic from infrastructure concerns, making SWE-agent more stable and easier to maintain.

This is [SWE-agent][] using SWE-ReX to run on 30 [SWE-bench][] instances in parallel:

Get started

pip install swe-rex
# With modal support
pip install 'swe-rex[modal]'
# With fargate support
pip install 'swe-rex[fargate]'
# With daytona support (WIP)
pip install 'swe-rex[daytona]'
# Development setup (all optional dependencies)
pip install 'swe-rex[dev]'

...