SWE-agent

SWE-agent/SWE-agent

Automatically fixes GitHub issues and performs cybersecurity tasks using your preferred language model.

20k
Stars
2.2k
Forks
26
Open issues
111
Watchers
Python MITLast pushed Jul 7, 2026

Overview

SWE-agent utilizes a chosen large language model to autonomously address issues in real GitHub repositories, identify cybersecurity vulnerabilities, or perform customized tasks. It is developed at Princeton University and Stanford University with configurations managed through a single YAML file.

Categories

Tags

Similar tools

Install

pip install SWE-agent

README

Docs Slack arxiv 2405.15793

[!warning] Most of our current development effort is on mini-swe-agent, which has superseded SWE-agent. It matches the performance performance of SWE-agent, while being much simpler. See the FAQ for more details about the differences. Our general recommendation is to use mini-SWE-agent instead of SWE-agent going forward.

SWE-agent enables your language model of choice (e.g. GPT-4o or Claude Sonnet 4) to autonomously use tools to fix issues in real GitHub repositories, find cybersecurity vulnerabilities, or perform any custom task.

  • State of the art on SWE-bench among open-source projects
  • Free-flowing & generalizable: Leaves maximal agency to the LM
  • Configurable & fully documented: Governed by a single yaml file
  • Made for research: Simple & hackable by design

SWE-agent is built and maintained by researchers from Princeton University and Stanford University.

📣 News

🚀 Get started!

👉 Try SWE-agent in your browser: (more information)

Read our documentation to learn more:

SWE-agent for offensive cybersecurity (EnIGMA)

SWE-agent: EnIGMA is a mode for solving offensive cybersecurity (capture the flag) challenges. EnIGMA achieves state-of-the-art results on multiple cybersecurity benchmarks (see leaderboard). Please use SWE-agent 0.7 while we update EnIGMA for 1.0.

In addition, you might be interested in our other projects: