SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive co
SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive co
[!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.
yaml fileSWE-agent is built and maintained by researchers from Princeton University and Stanford University.
👉 Try SWE-agent in your browser: (more information)
Read our documentation to learn more:
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:
If you'd like to contribute to the codebase, we welcome issues and pull requests! For larger code changes, we always encourage discussion in issues first.
SWE-agent is an academic project started at Princeton University by John Yang*, Carlos E. Jimenez*, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. Contact person: John Yang, Carlos E. Jimenez, and Kilian Lieret (Email: [email protected], [email protected], [email protected]).
If you found this work helpful, please consider citing it using the following:
SWE-agent citation@inproceedings{yang2024sweagent,
title={{SWE}-agent: Agent-Computer Interfaces Enable Automated Software Engineering},
author={John Yang and Carlos E Jimenez and Alexander Wettig and Kilian Lieret and Shunyu Yao and Karthik R Narasimhan and Ofir Press},
booktitle={The Thirty-eighth Annual Conference on Neural Information Processing Systems},
year={2024},
url={https://arxiv.org/abs/2405.15793}
}If you used the summarizer, interactive commands or the offensive cybersecurity capabilities in SWE-agent, please also consider citing:
EnIGMA citation…MIT. Check LICENSE.
Use ScreenContextAgent context for user-reported visual bugs
Buggy cost control with Gemini 2.5 Pro
Add an optional Decision Gate to speed up routine agent decisions
SetStatusAgentHook never resets _cost on retry attempts, double-counting the previous attempt's spend in the batch status line
Submission integrity: outcome decided in payload space; gold test patch readable; PS1 sentinel spoof; failed instances vanish from preds; blocklist is first-token-only
Reviewer.review() averages over surviving judge samples only, so partial judge failures shrink the denominator and can let one sample stand in for n_sample (ScoreRetryLoop)
RFC: deterministic execution boundaries for tool calls (task text is untrusted input)
RFC: opt-in deterministic guard for shell commands inside the Docker sandbox (destructive + secret-exfil, <2ms)
BinaryTrajectoryComparisonConfig.comparison_temperature is silently discarded: the comparison query runs at the model's own temperature
Separating ACI failures from model failures in trajectories