SWE-agent is an open-source AI agent project built and maintained by researchers at Princeton University and Stanford University. Its core goal is to enable the large language model chosen by the user (for example, GPT-4o or Claude Sonnet 4) to autonomously use tools to complete tasks such as fixing issues in real GitHub repositories, discovering cybersecurity vulnerabilities, or performing any custom task.
In terms of main capabilities, SWE-agent once achieved State of the Art on the SWE-bench open-source project. It emphasizes free flow and generality, giving maximum autonomy to the language model; at the same time, it is configurable and fully documented, with its entire behavior controlled by a single YAML file; in addition, it is designed specifically for research, with a simple structure that is easy to modify.
In terms of usage, the official documentation provides introductory guidance on installing SWE-agent, using SWE-agent to solve GitHub issues, gaining an in-depth understanding of its features and goals, and learning about the project's objectives and academic research. Users can obtain detailed installation and operation steps through the official documentation.
Applicable scenarios include: fixing issues in real GitHub repositories, discovering cybersecurity vulnerabilities, performing custom tasks, and serving as an academic research platform.
Important limitations and current status: the official recommendation is explicitly to use mini-swe-agent instead of SWE-agent. mini-swe-agent has already replaced SWE-agent, being simpler while offering comparable performance. SWE-agent is currently in maintenance-only mode, and most current development work has shifted to mini-swe-agent. The official FAQ provides more details about the differences between the two.
Recent updates include: on July 24, 2025, Mini-SWE-Agent reached 65% on SWE-bench verified with 100 lines of Python; on July 9, SWE-agent added multimodal support, allowing the use of AI models with visual capabilities to process images in GitHub issues; on May 2, SWE-agent-LM-32b reached open-weight SOTA on SWE-bench; on February 28, SWE-agent 1.0 + Claude 3.7 reached SOTA on SWE-Bench full; on February 25, SWE-agent 1.0 + Claude 3.7 reached SOTA on SWE-bench verified; on February 13, SWE-agent 1.0 was released, reaching SOTA on SWE-bench light and bringing many new features; on December 7, 2024, an interview with the SWE-agent and SWE-bench teams was released; on June 26, custom tools were added; on April 8, SWE-agent was run competitively; on March 7, the SWE-agent 1.0 architecture diagram was updated.