Back to directory

Developer Tools · AI Assisted Coding

SWE-agent

An MIT licensed research agent for automated software engineering

SWE-agent is an academic software engineering agent that gives a language model tools for inspecting repositories, running commands, editing files, and addressing GitHub issues. It is MIT licensed for commercial use. No first party hosted SaaS or subscription price is published, so users supply their own model access and execution environment.

Maintenance mode. The documentation says SWE-agent was superseded by mini-swe-agent and entered maintenance-only mode. The latest listed release is v1.1.0 from May 22, 2025.

Key facts

License
MIT
Main language
Python, Shell
Maintainer
Princeton University and Stanford University researchers
First released
2024
Latest release
v1.1.0, May 22, 2025
GitHub stars
20,609, October 2026
Hosted option
None published; users run local Docker or documented remote execution

What SWE-agent is

SWE-agent is an academic software engineering agent started at Princeton University and built and maintained by researchers from Princeton University and Stanford University. The project repository was created on April 2, 2024, and its research appeared at NeurIPS 2024. The repository lists 20,609 stars, 2,259 forks, and 164 open issues. Its citation names John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press as the academic project founders. The repository lists the MIT License. It does not identify a commercial company backing the project or publish funding details. The maintainers direct new users toward mini-swe-agent, while SWE-agent remains relevant for existing experiments and configurations.

How it works

A typical run starts with a GitHub issue, a local repository, or a custom problem statement. The operator selects a language model, supplies configuration through YAML or command line overrides, and chooses a repository and execution image. The agent sends prompts and action history to the model, interprets its response, and executes shell operations inside the configured environment. Tool bundles expose capabilities for viewing and editing files, running commands, and submitting changes. Users can run one issue with the sweagent command or process batches for benchmarks. History processors compress prior interaction for the model context. The trajectory inspector then lets researchers review recorded prompts, actions, observations, and outcomes. This workflow suits repeatable evaluations more than unattended production ticket handling.

Architecture and recent releases

The central command line executable initializes SWEEnv and an Agent. SWEEnv wraps SWE-ReX, which starts a Docker container locally or on remote infrastructure such as Modal or AWS, then provides a shell session and installed tools. The Agent uses YAML configuration, a parser, and history processors to turn model output into actions. Python is the main implementation language, with Shell and Dockerfile files supporting execution. Version 1.0 introduced SWE-ReX, tool bundles, batch subcommands, retries, and LiteLLM model access. Version 1.1.0, released May 22, 2025, added multilingual and multimodal dataset support, SWE-smith support, configuration improvements, and fixes. The repository and documentation list no later release.

License and pricing

SWE-agent is released under the MIT License. That license permits commercial use, modification, redistribution, and operation as a service, subject to its copyright notice and warranty terms. The project does not describe an open core split, paid self hosted edition, enterprise license, or first party SaaS plan. No subscription price is published for SWE-agent. Operators instead arrange model provider access and pay applicable model, container, Modal, AWS, or other infrastructure charges. The command line documentation includes a per instance cost limit setting, but that setting is an operator control rather than a project price. GitHub Codespaces is mentioned as a way to try the software, not as a SWE-agent hosted product. No separate commercial tier is documented.

Limitations and how it compares

SWE-agent is in maintenance mode, and its documentation recommends mini-swe-agent for new users because it is simpler while retaining comparable performance. OpenHands offers a broader interactive coding agent, whereas Aider focuses on terminal-based pair programming within a repository. GitHub Copilot is a proprietary hosted coding assistant, so its operating model and product scope differ from those of self-managed tools. SWE-agent remains a reasonable choice for researchers who need configurable tools, benchmark batches, recorded trajectories, or the SWE-ReX execution design. Its MIT license permits commercial use, but users must arrange model access and an execution environment because no first-party hosted service or subscription price is published. New production users should begin with mini-swe-agent, choosing SWE-agent when research-oriented controls outweigh its limited ongoing development.

Main features

  • Issue Resolution. Accepts GitHub issues, local repositories, or custom problem statements and lets a model inspect, edit, test, and submit changes.
  • Configurable Tools. Tool bundles provide selectable interfaces for shell commands, file viewing, editing, submission review, and specialized research tasks.
  • Batch Execution. The command line supports individual runs and batches of benchmark instances with configurable models, environments, limits, and settings.
  • Remote Execution. SWE-ReX can run containers locally or on remote infrastructure such as Modal and AWS while the agent remains separately configured.
  • Model Integration. LiteLLM exposes language models from multiple providers, with command line overrides for model names, token limits, and cost controls.
  • Trajectory Inspection. The command line trajectory inspector helps researchers review recorded interaction histories across hundreds of agent trajectories.

Self-hosting SWE-agent

Install the Python package and use the sweagent command line executable. The documented 1.0 setup starts from a Docker image containing repository dependencies, while SWE-ReX launches and manages the execution container. Local deployment requires Docker and credentials for the selected model provider. Modal and AWS are documented remote execution choices, with Modal requiring extra dependencies. The project does not require PostgreSQL, Redis, or object storage, and it publishes no general CPU, RAM, or GPU minimum because needs vary by repository, model, and image. Operators should retain trajectories and credentials carefully, pin package and image versions, and review breaking changes before upgrades.

Strengths

  • MIT licensing permits commercial deployment, modification, and redistribution.
  • Tool bundles and YAML configuration support controlled research experiments.
  • SWE-ReX supports local containers and documented remote execution.
  • Trajectory inspection exposes prompts, actions, observations, and results for review.

Drawbacks

  • The maintainers classify SWE-agent as maintenance only and recommend mini-swe-agent for new users.
  • Operators manage model credentials, container isolation, execution infrastructure, and resulting costs.
  • Results depend on the selected model, configuration, tests, repository, and problem complexity.

What teams replace with it

Teams usually evaluate SWE-agent when they want to move off GitHub Copilot, Sourcegraph Cody, Amazon Q Developer.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to SWE-agent

Frequently asked questions

Is SWE-agent free?

SWE-agent is MIT licensed and has no published subscription price. Running it still may incur charges for model API calls, Docker hosts, Modal, AWS, GitHub Codespaces, or other infrastructure. The command line includes a configurable per instance cost limit, but that is an operator setting rather than a fee charged by the project.

Can companies use SWE-agent commercially?

Yes. The MIT License permits commercial use, modification, redistribution, and service operation, subject to the license copyright notice and warranty terms. A company remains responsible for model provider contracts, repository permissions, credentials, isolation, generated changes, and infrastructure costs. The project does not publish a separate commercial or enterprise license.

How do I self host SWE-agent?

Install the package, configure a model provider, select a repository and problem statement, then run the sweagent command. The documented architecture uses Docker for execution, with SWE-ReX managing the container. Local Docker, Modal, and AWS deployment paths are described. No fixed CPU, memory, or GPU minimum is published.

Should I use SWE-agent or mini-swe-agent?

The maintainers recommend mini-swe-agent for new users because it is simpler and remains actively developed. SWE-agent is a better fit for existing experiments that depend on configurable tool bundles, history processors, trajectory inspection, batch commands, or SWE-ReX. Both projects target automated software engineering, but their configuration and maintenance expectations differ.

Does SWE-agent keep source code private?

SWE-agent has no default hosted service, so execution occurs in the environment selected by the operator. Prompts, repository content, commands, and outputs can still be sent to the model provider configured for the run. Review provider retention terms, restrict credentials, isolate containers, and avoid placing secrets in repositories or agent context.

Similar projects to compare

Sources

Last updated 2026-10-22.