SWE-Agent

Research agent that lets a language model fix GitHub issues through a custom command interface.

Open SourceSelf Hosted
0.0 (0)

About

Princeton and Stanford researchers built this agent around a purpose-built agent-computer interface for language models: a windowed file viewer, a directory-wide search command, and an edit command guarded by a linter that rejects syntactically broken changes, all running in a Docker sandbox through the companion SWE-ReX runtime. Point sweagent run at a GitHub issue and repository, pick a model (hosted APIs such as Anthropic or OpenAI, or local models), set a per-instance spending cap, and it attempts a patch; run-batch evaluates whole suites such as SWE-bench. A single YAML config governs behavior, which suits agent research and ablations, and command-line and web inspectors replay saved trajectories. EnIGMA, a capture-the-flag security mode, still needs the older 0.7 branch. Installation is a git clone plus an editable pip install, with Docker recommended and cloud execution as a fallback. Code is MIT licensed. The team says its much smaller successor, mini-swe-agent, has superseded it and now gets most development effort, so new projects should start there and this listing best serves researchers reproducing published results.

Should you use SWE-Agent?

Pick it when

Pick it for research or evaluation work: measuring how models resolve real GitHub issues, studying agent-computer interface design, or running security capture-the-flag challenges through its EnIGMA mode.

Look elsewhere when

Skip it as a daily coding assistant: it is rated hard to set up and built around autonomous issue runs rather than interactive editing. For hands-on work Aider, Cline, or OpenCode fit better, and OpenHands is the broader autonomous platform.

Alternatives to SWE-Agent

  • OpenHands

    Broader autonomous platform with a Python SDK, CLI, and local GUI that scales to many cloud runs, at the cost of more moving parts than a research harness.

  • Sweep AI

    Its original issue-to-PR system opens pull requests for human review, closer to a team workflow, but the repo now sees little active development.

  • Aider

    Interactive terminal pair programmer that commits each edit to git, far easier for daily work but not designed for autonomous benchmark runs.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Intermediate (3/5)
License
MIT
Added
Apr 3, 2026

Tags