SuperAPI AI Directory

SWE-agent

SWE-agent is an open-source project built and maintained by researchers at Princeton University and Stanford University, designed to let a user-selected large language model (such as GPT-4o or Claude Sonnet 4) autonomously use tools to automatically fix issues in real GitHub repositories, discover cybersecurity vulnerabilities, or perform custom tasks. The project achieves leading performance on the SWE-bench benchmark for open-source projects, is designed to give the language model maximum autonomy, can be configured through a single yaml file, and comes with complete documentation, making it easy for research and secondary development. The project uses the MIT License. Currently, most development work has shifted to its successor project mini-SWE-agent, and the official recommendation is to prioritize mini-SWE-agent going forward.

Open website

About this tool

SWE-agent is an open-source project built and maintained by researchers at Princeton University and Stanford University. Its core purpose is to receive a GitHub issue and attempt to automatically fix the problem using a user-selected large language model. In addition, it can also be used for offensive cybersecurity (such as CTF challenges) or competitive programming tasks. The project was published at NeurIPS 2024.

In terms of main capabilities, according to the official description, SWE-agent enables language models to autonomously use tools to fix issues in real GitHub repositories, discover cybersecurity vulnerabilities, or perform any custom task. Its features include: achieving leading performance on the SWE-bench benchmark for open-source projects; adopting a free-flowing and generalizable design that gives maximum autonomy to the language model; being configurable through a single yaml file and accompanied by complete documentation; and being designed for research, with a simple structure that is easy to modify.

In terms of usage, the official documentation covers command-line getting started (Hello world from the command line), benchmarking on SWE-bench, and frequently asked questions. Users can also try SWE-agent in the browser. The project is distributed through the GitHub repository and uses the MIT License.

Applicable scenarios include: automatically fixing issues in GitHub repositories, offensive cybersecurity (EnIGMA mode is used to solve capture the flag challenges and has achieved leading results on multiple cybersecurity benchmarks), competitive programming challenges, and any custom task.

Limitations and notes: The official project clearly states that most current development work has concentrated on mini-swe-agent, which has replaced SWE-agent, has performance comparable to SWE-agent but is simpler, and the official overall recommendation is to use mini-SWE-agent rather than SWE-agent going forward. During the update of EnIGMA mode to 1.0, the official recommendation is to use SWE-agent 0.7. Information about fees, pricing, and specific platform support is not currently provided in the materials.