atlas

Research map / Multi-agent systems and games / LLM agents

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

NeurIPS 2024 · Multi-agent systems and games › LLM agents · approach: LLM multi-agent collaboration and safety · 30 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces the agent-computer interface (ACI) and SWE-agent, an LM agent with a custom file viewer, editor, search, and linting-guarded edit commands that resolves 12.47% of SWE-bench test tasks with GPT-4 Turbo and reaches 87.7% pass@1 on HumanEvalFix.

Problem

LM agents struggle to reliably perform software engineering tasks when given raw Linux shell access, as the shell's commands are designed for humans and are inefficient, verbose, and error-prone for language models.

Approach

Design a purpose-built interface layer (ACI) for LM agents with simple, compact commands (file viewer, search, edit with line numbers), concise environment feedback, and guardrails such as linting that rejects syntax-breaking edits, without changing the LM's weights.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the SWE-agent ACI instead of a Shell-only interfaceGPT-4 Turbo agent · SWE-bench Lite test% Resolved: 11.00 -> 18.00Helped
Use the SWE-agent ACI instead of RAGClaude 3 Opus · SWE-bench test% Resolved: 3.79 -> 10.46Helped
Add linting guardrails to the edit action (ablation)SWE-agent · SWE-bench Lite test% Resolved: 15.0 -> 18.0Helped
Add the edit action (ablation)SWE-agent · SWE-bench Lite test% Resolved: 10.3 -> 18.0Helped
Use summarized search instead of iterative search (ablation)SWE-agent · SWE-bench Lite test% Resolved: 12.0 -> 18.0Helped
Add search tools (ablation)SWE-agent · SWE-bench Lite test% Resolved: 15.7 -> 18.0Helped
Use a 100-line viewer window instead of a 30-line window (ablation)SWE-agent · SWE-bench Lite test% Resolved: 14.3 -> 18.0Helped
Use a 100-line viewer window instead of showing the full file (ablation)SWE-agent · SWE-bench Lite test% Resolved: 12.7 -> 18.0Helped
Collapse older observations and retain the last 5 observations (ablation)SWE-agent · SWE-bench Lite test% Resolved: 15.0 -> 18.0Helped
Add a demonstration (ablation)SWE-agent · SWE-bench Lite test% Resolved: 16.3 -> 18.0Helped

Surprising findings

Limitations

Experimental setup

Datasets: SWE-bench SWE-bench Lite HumanEvalFix

Benchmarks: SWE-bench SWE-bench Lite HumanEvalFix

Metrics: % Resolved (pass@1) $ Avg. Cost pass@k

Baselines: RAG (BM25 retrieval, non-interactive) Shell-only agent CodeLLaMa-instruct-13B GPT-4 DeepseekCoder-CodeAlpaca-6.7B WaveCoder-DS-6.7B

Builds on: ReAct InterCode SWE-bench

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy