SWE-agent/SWE-ReX
Sandboxed code execution for AI agents, locally or on the cloud. Massively parallel, easy to extend. Powering SWE-agent and more.
What it solves
It removes the infrastructure burden from AI agent developers by providing a standardized way to execute commands in sandboxed environments. It prevents agent logic from being tightly coupled with the specific hardware or cloud provider used for execution, allowing developers to focus on agent behavior rather than server management.
How it works
SWE-ReX acts as a runtime interface that connects an AI agent to various shell environments. It can manage execution across different platforms—such as local Docker containers, AWS remote machines, or Modal—while keeping the agent's code consistent. It handles the complexities of of recognizing when commands finish, extracting output and exit codes, and managing multiple parallel shell sessions (including interactive tools like ipython or gdb).
Who it’s for
Developers building AI agents that need to interact with a shell, run code, or perform software engineering tasks in isolated environments.
Highlights
- Platform Agnostic: Supports a wide range of platforms, including non-Linux machines without Docker.
- Massive Parallelism: Enables running hundreds of agents in parallel, which is particularly useful for large-scale benchmark evaluations.
- Interactive Tool Support: Allows agents to use interactive command-line tools like
gdbandipython. - Infrastructure Decoupling: Separates agent logic from the underlying execution environment for better stability and maintenance.