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

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

Related Articles