# SWE-agent

> Open-source agent that solves real GitHub issues by editing and testing a full repository.

- Website: https://swe-agent.com
- Category: Coding & Development
- Source page: https://opendirs.com/en/tools/swe-agent
- Pricing: Open source
- Starting price: $0
- Public API: Yes
- Open source: Yes
- Chinese language: No
- Accessible from mainland China: Unknown
- Platforms: Unknown
- Country: United States
- Last verified: Nov 28, 2026

## Overview

SWE-agent is an open-source software-engineering agent from Princeton that turns a GitHub issue into patches by reading the repo, running commands, and iterating on tests. It popularized a structured agent-computer interface for coding tasks and is widely used as a research baseline and practical starting point for autonomous issue solving. You can run it against open-source repos or your own projects when you want an agent that actually works in the tree, not just in a chat window.

**Best for:** Researchers and engineers evaluating or running autonomous coding agents on real repositories.

## Key features

- Agent-computer interface designed for repository-scale coding tasks
- Works from GitHub issues through patches and test runs
- Open-source implementation used as a standard SWE-bench baseline
- Configurable models and tools for custom agent experiments

## Use cases

- Running an agent against a failing GitHub issue end to end
- Benchmarking coding agents on SWE-bench-style tasks
- Prototyping your own autonomous repair loop on a private repo

## Pros

- Open source with a strong research pedigree
- Operates on real files, shells, and tests rather than synthetic prompts
- Well documented for replication and extension

## Cons

- Setup and compute costs can be heavy for large repositories
- Success still varies widely by model quality and issue difficulty

## Alternatives

- [Agent Skills](https://opendirs.com/en/tools/agent-skills.md)
- [Claude Squad](https://opendirs.com/en/tools/claude-squad.md)
- [BMAD Method](https://opendirs.com/en/tools/bmad-method.md)
- [Laminar](https://opendirs.com/en/tools/laminar.md)
- [Superpowers](https://opendirs.com/en/tools/superpowers.md)

## FAQ

### What is SWE-agent?

SWE-agent is an open-source software-engineering agent from Princeton that turns a GitHub issue into patches by reading the repo, running commands, and iterating on tests. It popularized a structured agent-computer interface for coding tasks and is widely used as a research baseline and practical starting point for autonomous issue solving. You can run it against open-source repos or your own projects when you want an agent that actually works in the tree, not just in a chat window.

### Is SWE-agent free?

SWE-agent uses a Open source pricing model (verified Nov 28, 2026).

### Does SWE-agent have an API?

Yes. SWE-agent offers an API for developers.

### Does SWE-agent support Chinese, and is it available in China?

SWE-agent does not support Chinese, and it has unverified availability in mainland China.

### What are the best alternatives to SWE-agent?

Popular alternatives to SWE-agent include Agent Skills, Claude Squad, BMAD Method, Laminar.

_Last verified: Nov 28, 2026_