SWE-agent is an open source coding agent built by researchers at Princeton and Stanford. Give it a GitHub issue and it tries to fix the problem automatically, driving shell, editor, and search tools inside a sandboxed copy of the repository with a language model of your choice. It was presented at NeurIPS 2024 and holds state-of-the-art results on SWE-bench among open source projects.[1][2]
Quick verdict
Developers and researchers who want an autonomous first attempt at real GitHub issues should shortlist SWE-agent: it is free MIT software, works with many models, and records every sandboxed run. Avoid it if you need offline use, one-click setup, or a hosted service, and note the maintainers now recommend mini-swe-agent for new work. If your workflow is interactive terminal pair programming rather than autonomous issue fixing, compare Aider first.[1][2][3]
Key features
Point the command line tool at a GitHub issue and the agent attempts a fix on its own, working through the repository until it produces a change.[1]
Model access goes through LiteLLM, so operators can use GPT-4o, Claude, or other supported providers with their own API keys rather than being locked to one vendor.[1][2]
The agent works through an agent-computer interface of purpose-built commands for viewing, editing, searching, and executing code, leaving the problem-solving strategy to the language model.[1]
Every run executes inside a Docker sandbox, and trajectories are recorded so runs can be inspected and replayed afterward.[1]
Behavior is governed by a single YAML configuration file with documented templates for models, tools, environments, and demonstrations.[1]
A batch mode runs the agent across SWE-bench task sets for benchmarking, with tooling for competitive runs and output comparison.[1]
Who will love it
Developers who triage real GitHub issues and want an autonomous first attempt at a fix will get the most from the issue-to-patch workflow.[1][2]
Agent researchers benefit from the hackable design, recorded trajectories, and batch evaluation support built for SWE-bench experiments.[1][2]
Python shops comfortable with pip installs, Docker, and bringing their own model keys can self-host the whole setup without paying for software.[1][2]
Who should avoid it
Setup is moderately involved: Python 3.11 or newer, an editable pip install, Docker for the sandbox, and a configured model API key are all required before the first run.[1][2]
The agent cannot work offline. Documented runs depend on a hosted language-model API and container images, so network access and provider billing apply.[1][2]
Maintainers now steer new users toward mini-swe-agent as the simpler successor, so teams adopting SWE-agent itself should expect the ecosystem's momentum to sit elsewhere.[1]
Alternatives and compatibility
Aider is the closest documented alternative for LLM-driven code changes from the terminal: where SWE-agent autonomously pursues a GitHub issue, Aider pair-programs interactively with git-native commits. This comparison is editorial, not vendor-endorsed.[1][2]
Mini-SWE-agent from the same team is the recommended path for new work, matching SWE-agent's performance in about a hundred lines of Python.[1]
SWE-agent runs on the operator's own Linux, macOS, or Windows machine via Python and Docker, with a Codespaces option, and there is no hosted cloud edition to switch to.[1][2]
Questions worth asking
How much does SWE-agent cost to run?
How do I install and start SWE-agent?
Which language models does SWE-agent support?
Is SWE-agent still maintained, or should I use mini-swe-agent?
SWE-agent is still maintained, with 1.x releases through May 2025, but the maintainers now recommend mini-swe-agent for new work, saying it matches SWE-agent's performance in a simpler package. Choose SWE-agent if you want the full documented configuration system; choose mini-swe-agent if you prefer the smaller successor.[1][2]
Sources and editorial review
Source research. Reviewed on October 13, 2026. Written by Sanjib Sah. AI assisted; reviewed by a human editor.
We have not run or tested this product.
- SWE-agent documentation - Getting Started
official · Observed October 13, 2026
Official docs index: product identity, Princeton and Stanford authorship, model-agnostic tool use for fixing issues, and the mini-swe-agent recommendation.
- SWE-agent/SWE-agent GitHub repository
official · Observed October 13, 2026
Repository identity, one-line description, NeurIPS 2024 note, and links to docs and install paths.
- SWE-agent LICENSE
official · Observed October 13, 2026
Full MIT license text used for the license and pricing-model facts.
- SWE-agent pyproject.toml
official · Observed October 13, 2026
Python >=3.11 requirement, OS Independent classifier, LiteLLM and Docker-adjacent dependencies, console script entry point.
- SWE-agent installation from source
official · Observed October 13, 2026
Clone plus editable pip install, Codespaces browser option, and model-key setup pages.
- SWE-agent hello world tutorial
official · Observed October 13, 2026
Fix-a-GitHub-issue CLI tutorial with Docker sandbox execution.
- SWE-agent changelog
official · Observed October 13, 2026
Release history from 0.2.0 through 1.1.0 (2025-05-22) grounding the maintenance status.
- SWE-agent architecture
official · Observed October 13, 2026
Agent-computer interface architecture and configuration reference.
- Aider homepage
official · Observed October 13, 2026
Terminal pair-programming workflow, model choice, and git integration used only for the Aider competitor comparison.
Compared with these products
No explicit proprietary baseline is recorded.