Reproduce “SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, Ofir Press

The authors introduce SWE-agent, an agent-computer interface (ACI) designed to help language models search, inspect, edit, and test code in repositories through compact actions and concise feedback. On SWE-bench Lite, GPT-4 Turbo resolves 18.00% of tasks with the ACI, versus 11.00% with a Shell-only interface. This comparison supports the tested interface package for software fixes, not transfer beyond them.

Key insights

  • Carefully designed Agent-Computer Interfaces (ACIs) are crucial for language model (LM) agents to perform complex software engineering tasks effectively, drawing parallels to how graphical user interfaces enhance human productivity.
  • Specific ACI design choices, such as specialized search commands, an integrated code linter in the editor, optimal file viewer window sizes, and concise context management, significantly improve LM agent performance and efficiency.
  • LMs exhibit iterative edit-execute loops, but successful recovery from editing errors decreases with consecutive failures, highlighting areas for future robustness improvements.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.