SWE-agent

Active
GitHub Python MIT

Description

SWE-agent takes a GitHub issue and automatically generates fixes using your LLM of choice, also applicable to cybersecurity auditing and competitive coding. NeurIPS 2024 paper.

Key Features

  • State-of-the-art performance on SWE-bench among open-source software engineering agents
  • Supports multiple LLM backends including GPT-4o and Claude Sonnet 4
  • Configurable via a single YAML file with full documentation
  • Includes EnIGMA mode for offensive cybersecurity (CTF) challenge solving
  • Free-flowing agent design that maximizes LM autonomy for tool use
  • Simple and hackable architecture ideal for research and experimentation

Use Cases

💡 Automatically fix issues in real GitHub repositories
💡 Find cybersecurity vulnerabilities via the EnIGMA CTF mode
💡 Solve competitive programming challenges
💡 Research and experiment with LLM-based software engineering agents
💡 Batch benchmark evaluation on SWE-bench datasets

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (20.2k stars)
  • Permissive open-source license (MIT)
  • Established track record (2 years in production)

Quick Start

1. Install: git clone https://github.com/SWE-agent/SWE-agent && cd SWE-agent && pip install -e .
2. Set API key: export OPENAI_API_KEY=your_key
3. Run: python -m sweagent run --problem_file <issue_file> --agent_config default.yaml
4. Or try in browser via GitHub Codespaces

Related Projects

AutoCodeRover

3.1k · Python
Stale C

AutoCodeRover is a project structure-aware autonomous software engineer agent that achieves automated program repair and issue resolution by understanding the overall codebase architecture.

codingpythonagent +2
  • · Fully autonomous bug fixing and feature addition on GitHub issues using LLM-powered program analysis
  • · Program Structure Aware code search via abstract syntax tree analysis for precise context retrieval
  • · Statistical fault localization using test cases to achieve higher repair rates when tests are available

DeepCode

16.5k · Python
Active A+

DeepCode is an open agentic coding platform supporting Paper2Code, Text2Web, and Text2Backend, leveraging agent technology for automated software development workflows.

codingpythonllm +2
  • · Multi-agent coding system with separate Planning, Implementation, and Review agents for structured development
  • · Paper2Code capability to convert research papers into working code implementations
  • · Text2Web and Text2Backend for generating web frontends and backend services from natural language descriptions

Mini SWE-Agent

6.9k · Python
Active A+

Mini SWE-Agent is a minimalist AI agent in just 100 lines of code that solves GitHub issues or assists developers in the command line, demonstrating core coding agent capabilities with minimal implementation.

codingpythonagent +2
  • · Minimal ~100-line Python agent class achieving >74% on SWE-bench verified
  • · Bash-only tool interface requiring no special LLM tool-calling capabilities
  • · Completely linear message history for easy debugging and fine-tuning

SWE-bench

5.8k · Python
Active A+

SWE-bench is a benchmark for evaluating language models on real-world GitHub issue resolution, featuring genuine problems from popular Python repositories, now a core standard for measuring AI coding agent capabilities.

evaluationpythoncoding +2
  • · LLM coding capability benchmark based on real GitHub issues from popular Python repositories
  • · Multiple subsets: SWE-bench Lite, Verified (human-validated), and Multimodal editions
  • · Fully containerized Docker evaluation framework ensuring reproducible results

Related Articles