Open-source SWE-agent closes in on Devin for coding tasks
The Princeton NLP team has developed SWE-agent, an open-source system that turns language models like GPT-4 into software engineering agents. On the SWE-Bench test set, it solved 12.29% of issues, close to Devin’s 13.86%.
An open-source AI coding system is moving into territory recently associated with commercial software engineering agents. SWE-agent, developed by the Princeton NLP team, converts language models like GPT-4 into agents that can work inside real-world GitHub repositories.
“Open-source coding agents gaining repository-browsing, editing and execution abilities mildly increases AI autonomy, though the story is mostly a benchmark update.”Why it scores Terminator
The key point is not just that SWE-agent can write or edit code. According to the source, it can browse a repository, inspect files, make changes, run code, and use supporting tools built into a special interface. That makes it a direct comparison point for Devin, the AI software developer from Cognition AI.
What SWE-agent is built to do
SWE-agent is described as an open-source system for turning language models into software engineering agents. In practical terms, that means the model is not treated only as a chat assistant. It is given a working environment where it can interact with codebases.
The system is aimed at real-world GitHub repositories, where software issues are often messy, distributed across files, and dependent on project structure. The source says SWE-agent can fix bugs and problems in those repositories, which places it in the category of agents designed to act on code rather than merely explain it.
Its central component is the Agent Computer Interface (ACI). The ACI gives the model a way to move through the repository and perform the basic actions a developer needs during a debugging task.
Those capabilities include:
- Browsing directories
- Viewing code files
- Editing code files
- Executing code files
- Checking syntax with a linter
That interface matters because software engineering is not a single-step task. A useful agent needs to find the relevant files, understand how they relate, test changes, and respond to problems in the code. The source presents the ACI as the mechanism that gives SWE-agent those working abilities.
How it compares with Devin
The benchmark result is the clearest comparison in the source. SWE-agent solved 12.29% of issues in the SWE-Bench test set. Devin, the commercial AI programmer from Cognition AI, is listed at 13.86%.
That puts SWE-agent close to Devin on the cited SWE-Bench result, even though the two systems are positioned differently. SWE-agent is open-source. Devin is a commercial product that has not yet been made publicly available and has only been offered to select developers through a waiting list.
The source describes Devin as an AI software developer that can collaborate with human developers, carry out tasks independently, and submit work for review. It is also designed to handle new, unknown libraries, program entire applications, find bugs in code bases, and process bug reports and feature requests in open-source repositories.
SWE-agent plays a similar role, but the source frames its public availability as a major difference. For developers and researchers, an open-source project can be inspected, tested, and adapted in ways a restricted commercial system cannot be, at least based on the availability described in the source.
Why the interface is the important part
The source says the Princeton NLP team developed SWE-agent by creating an Agent Computer Interface. That detail is central because the model itself is only part of the system. The interface shapes what the model can see and what actions it can take.
A normal language model can generate code suggestions, but an agent needs a controlled way to operate inside a software project. In SWE-agent, the ACI provides repository browsing, file viewing, editing, code execution, and syntax checking through a linter.
Those functions map closely to the ordinary workflow of debugging. A developer usually starts by locating the relevant files, reading the surrounding code, making a change, and then running checks or tests to see whether the change holds. SWE-agent’s design gives a language model access to that kind of loop.
The source also mentions a special file viewer and directory browsing as part of the ACI development. Those may sound like basic tools, but they are important for agent behavior because code tasks often require context. A model that cannot navigate a repository effectively will struggle to identify where a bug lives or how a fix should fit into the existing project.
What the numbers show
The SWE-Bench figures in the source give a limited but useful comparison. SWE-agent solved 12.29% of issues in the SWE-Bench test set, while Devin is listed at 13.86%. Those numbers do not mean either system solves most issues, but they do show that SWE-agent is close to Devin on that specific measure.
The comparison is notable because Devin is associated with Cognition AI, which recently closed a $21 million Series A funding round. SWE-agent, by contrast, is presented as an open-source project from the Princeton NLP team.
That contrast is the main story: an open-source agent built around language models like GPT-4 is approaching the benchmark performance of a heavily watched commercial AI software developer. The source does not say SWE-agent matches Devin overall, and it does not claim both tools are identical. It says SWE-agent nearly matches Devin on the cited SWE-Bench result.
For now, the practical distinction is availability. SWE-agent is open-source, while Devin is not yet publicly available and has been limited to select developers through a waiting list. That means the open-source project may become the more accessible path for people who want to examine how AI coding agents work in real repositories.
The larger signal for AI coding agents
SWE-agent shows how much of an AI software engineer depends on the environment around the model. The project uses language models like GPT-4, but its Agent Computer Interface is what allows the model to act inside a repository instead of only producing text.
The result is an agent that can work with code files, repository structure, syntax checking, and execution. That combination is what moves the system from code generation toward software engineering assistance.
Devin remains a prominent comparison because it is designed for collaboration with human developers, independent work, bug finding, application programming, and handling open-source bug reports and feature requests. SWE-agent’s close SWE-Bench result suggests that open-source approaches can compete meaningfully on at least some coding-agent tasks.
The source does not provide enough information to judge which system is better in everyday development work. But it does establish a clear fact: SWE-agent has reached 12.29% on the SWE-Bench test set, close to Devin’s 13.86%, while offering an open-source route into the same emerging category of AI software engineering agents.
Read next