SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering

John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan and 1 more

Published
Lab
Princeton
Citations
2,679

Summary

TL;DR

SWE-agent shows that a custom agent-computer interface for editing files, navigating repos and running tests strongly improves coding-agent performance.

Why builders care

Editor's note

The interface between agent and computer matters as much as the model.

How to apply it

Editor's note
  1. 1Design tools for the agent, not for humans: concise outputs, guardrails on edits and clear error messages.

Key results

From the abstract
  1. 1

    We evaluate SWE-agent on SWE-bench and HumanEvalFix, achieving state-of-the-art performance on both with a pass@1 rate of 12.5% and 87.7%, respectively, far exceeding the previous state-of-the-art achieved with non-interactive LMs.

  • Language model (LM) agents are increasingly being used to automate complicated tasks in digital environments.
  • Just as humans benefit from powerful software applications, such as integrated development environments, for complex tasks like software engineering, we posit that LM agents represent a new category of end users with their own needs and abilities, and would benefit from specially-built interfaces to the software they use.

  • We investigate how interface design affects the performance of language model agents.
  • As a result of this exploration, we introduce SWE-agent: a system that facilitates LM agents to autonomously use computers to solve software engineering tasks.
  • SWE-agent's custom agent-computer interface (ACI) significantly enhances an agent's ability to create and edit code files, navigate entire repositories, and execute tests and other programs.

Language model (LM) agents are increasingly being used to automate complicated tasks in digital environments. Just as humans benefit from powerful software applications, such as integrated development environments, for complex tasks like software engineering, we posit that LM agents represent a new category of end users with their own needs and abilities, and would benefit from specially-built interfaces to the software they use. We investigate how interface design affects the performance of language model agents. As a result of this exploration, we introduce SWE-agent: a system that facilitates LM agents to autonomously use computers to solve software engineering tasks. SWE-agent's custom agent-computer interface (ACI) significantly enhances an agent's ability to create and edit code files, navigate entire repositories, and execute tests and other programs. We evaluate SWE-agent on SWE-bench and HumanEvalFix, achieving state-of-the-art performance on both with a pass@1 rate of 12.5% and 87.7%, respectively, far exceeding the previous state-of-the-art achieved with non-interactive LMs. Finally, we provide insight on how the design of the ACI can impact agents' behavior and performance.

Everything on this page is written from this abstract. For methods and full results, read the paper PDF.

Ask the paper

Not live yet
Answers will quote the passages of the paper they come from.

Try one of these about “SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering”: