Sandboxed code execution for AI agents, locally or on the cloud.
Project description
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,gdbor 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. 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]'
# Development setup (all optional dependencies)
pip install 'swe-rex[dev]'
Then head over to our documentation to learn more!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swe_rex-1.1.1.tar.gz.
File metadata
- Download URL: swe_rex-1.1.1.tar.gz
- Upload date:
- Size: 38.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdb13ebce8f6e1fdb21df0fe305d5f9efbcde04c4107a0e44a357a279c409e66
|
|
| MD5 |
1a180c6f444783c4fdef2b71a8254129
|
|
| BLAKE2b-256 |
42b474e9fbe59b2f04b551646ff1e44441f01ba4082568a6a1b7b539ac624e86
|
File details
Details for the file swe_rex-1.1.1-py3-none-any.whl.
File metadata
- Download URL: swe_rex-1.1.1-py3-none-any.whl
- Upload date:
- Size: 43.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04bc5d14b4517696700bb21db6187d6aacb9cc626addfa3e2bed94dd428c5ca7
|
|
| MD5 |
64c3c844b06aa35dd03f48f57ecf84f4
|
|
| BLAKE2b-256 |
0e76a21a840b775c4ab2ab40e90c7edcfa2e4995e607b21016492de4bff3fca8
|