Papers / LLMs
SWE-agent (2024)
SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
An agent that fixes GitHub issues by navigating, editing and testing a repository through commands designed for language models rather than people.
Why it matters
It showed that the interface around a model can matter as much as the model, and coined the agent-computer interface. SWE-agent and its later minimal version became standard scaffolds for evaluating models on SWE-bench and its successors, and the edit-run-check loop is the core of today's coding agents.
- Year
- 2024
- Authors
- John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, Ofir Press
- Venue
- NeurIPS 2024
- Data
- SWE-bench
The idea
Language models are a new kind of computer user, so give them their own interface. Instead of a raw Linux shell, SWE-agent offers a few commands: search a file or directory with a short summary of matches, view 100 lines of a file at a time, and edit a range of lines with a linter that rejects edits that break the syntax. The model works in a ReAct-style loop, usually reproducing the bug, finding the code, editing it and rerunning its script.
The result
With GPT-4 Turbo it resolved 12.47% of the full SWE-bench test set, against 3.8% for the best earlier non-interactive system, and 18.0% of SWE-bench Lite, against 11.0% for the same model in a plain shell. Removing the linting check or showing whole files instead of 100-line windows each cost 3 to 5 points.
The data
Builds on
Led to
- Agentless (2024): A fixed three-step pipeline, with no agent deciding what to do next, that fixed more GitHub issues than open-source agents at a fraction of the cost.
- SWE-bench Pro (2025): A harder SWE-bench built from copyleft and private codebases, with multi-file changes that take a professional hours or days.
