What Is SWE-agent? Open-Source Coding Agent (2026)

SWE-agent is Princeton's open-source coding agent with an Agent-Computer Interface. We checked GitHub 2026-07-10: 19,757 stars, MIT, v1.1.0. Model-agnostic.

Fan Chuanyu's profile

Written by Fan Chuanyu

5 min read

SWE-agent is an open-source coding agent from Princeton that uses an Agent-Computer Interface to let a backing LLM autonomously read, edit, and run code to resolve software issues; we checked its GitHub repository on 2026-07-10 and it held 19,757 stars under an MIT license. That makes it one of the most-starred autonomous coding agents in the open-source ecosystem, and because it is model-agnostic you can point it at a Chinese LLM API instead of a US frontier model.

What is SWE-agent? (verified 2026-07)

SWE-agent is an autonomous coding agent that pairs a language model with a purpose-built Agent-Computer Interface (ACI) so the model can operate a repository the way a developer would: open files, search, edit, run tests, and iterate until an issue is resolved. It came out of Princeton's work on SWE-bench, the benchmark that measures whether an agent can fix real GitHub issues, and the framework is the reference harness many teams reach for when they want a repeatable coding-agent loop rather than a chat window.

The key design idea is the interface itself. According to the SWE-agent GitHub repository, the project's central contribution is the Agent-Computer Interface, a constrained set of commands (view, edit, search, run) that a language model drives, on the argument that a well-shaped interface matters as much as the underlying model for agent performance. The practical upshot is that the same harness can be swapped between models without rewriting the agent logic.

Here is where it sits against the other trending open-source agent frameworks we pulled the same day.

FrameworkGitHubStars (2026-07-10)LicenseLatest releaseFocus
SWE-agentSWE-agent/SWE-agent19,757MITv1.1.0 (2025-05-22)Autonomous code repair
CrewAIcrewAIInc/crewAI55,260MIT1.15.2 (2026-07-08)Multi-agent orchestration
LlamaIndexrun-llama/llama_index50,751MITv0.14.23 (2026-06-24)Data / RAG agents
Pydantic AIpydantic/pydantic-ai18,300MITv2.8.0 (2026-07-10)Type-safe agents

The one number that stands out in that table is the release date. SWE-agent's latest tagged release is v1.1.0 from 2025-05-22, more than a year older than the fresh 2026 tags on CrewAI and Pydantic AI. That does not mean the project is abandoned, but it is a signal worth weighing if you need a framework shipping frequent updates.

We checked the repository on 2026-07-10 (first-hand evidence)

Star counts and release tags move, so we do not trust a number we cannot date. We pulled SWE-agent's public repository data directly, and here is exactly what the GitHub API returned at fetch time.

As of 2026-07-10, per the GitHub API, SWE-agent/SWE-agent carried 19,757 stars, an MIT license, and a latest release of v1.1.0 dated 2025-05-22, with the default branch last pushed on 2026-07-07 and only 28 open issues. The gap between an old release tag and a recent push date tells its own story: development is still landing on the main branch, but the maintainers have not cut a new versioned release in over a year.

We read that push-versus-release gap as the single most useful signal in the snapshot. A repository can look stale if you glance only at the release page, yet a 2026-07-07 push date three days before we checked shows active commits. The low open-issue count (28, against 632 on CrewAI and 508 on LlamaIndex) is consistent with a narrower, more mature project scope rather than a sprawling platform.

For reference on the busier end of the field, the contrast is stark. According to the CrewAI GitHub repository, that project shipped release 1.15.2 on 2026-07-08, two days before our check, which is the release cadence SWE-agent does not currently match.

SWE-agent as an entity: the verified facts

SubjectPredicateObject
SWE-agentis created byPrinceton (SWE-bench team)
SWE-agentis licensed underMIT
SWE-agentis written inPython
SWE-agentis defined byits Agent-Computer Interface (ACI)

Definition, stated plainly: the Agent-Computer Interface is the abstraction layer that turns a general-purpose LLM into a code-editing agent by exposing a small, predictable command set instead of raw shell access. That constraint is deliberate. Fewer, cleaner commands mean fewer ways for the model to get lost, which is the whole thesis of the project.

Pairing SWE-agent with a Chinese LLM API

SWE-agent does not ship its own model, and that is the on-topic angle for anyone reading china-llm.com. Because the harness is model-agnostic, the backing LLM is a configuration choice, and any provider that exposes an OpenAI-compatible chat endpoint slots in. That opens the door to routing an autonomous coding loop through DeepSeek, Qwen, or GLM instead of a US frontier model, which changes the economics of running an agent that can burn a lot of tokens per issue.

The cost case is real because coding agents are token-hungry: each attempt reads files, proposes edits, and re-runs tests, so a single resolved issue can span many model calls. According to the DeepSeek API docs, DeepSeek publishes an OpenAI-compatible endpoint, which is the integration shape SWE-agent's model configuration expects, so the swap is a base-URL and API-key change rather than a code fork. For a rate-card comparison across the Chinese options, our DeepSeek API pricing hub breaks down input, output, and cache pricing.

One honest caveat: benchmark leaderboards for SWE-bench are usually reported against specific frontier models, so a Chinese open-weight model may resolve a different fraction of issues. Treat the model choice as a cost-versus-accuracy dial, not a free lunch, and measure on your own repository before committing.

Where SWE-agent fits

Choose SWE-agent if your problem is specifically autonomous code repair and you want the reference harness that the SWE-bench methodology is built around. Its narrow scope and small issue queue are features for that job. Look elsewhere, toward CrewAI or Pydantic AI, if you need a general multi-agent orchestration layer or a framework with a fast 2026 release cadence, since SWE-agent's newest release predates both by more than a year.

For the full field of trending open-source agent frameworks and how they compare on stars, license, and release velocity, see our open-source AI agents hub.

FAQ

Is SWE-agent free and open source? Yes. As of 2026-07-10, per the GitHub API, SWE-agent is MIT-licensed, which permits commercial use, modification, and redistribution. The framework itself is free; your cost is the tokens the backing LLM consumes while it works through an issue.

Who made SWE-agent? SWE-agent came out of Princeton, from the same research line as SWE-bench, the benchmark that measures whether an agent can resolve real GitHub issues. The project's signature contribution is the Agent-Computer Interface that shapes how the model operates a repository.

Can SWE-agent use a Chinese LLM like DeepSeek or Qwen? Yes. SWE-agent is model-agnostic, so any OpenAI-compatible endpoint works as the backing model. That includes DeepSeek, Qwen, and GLM via their compatible APIs, which is attractive for token-heavy agent loops where per-token price matters.

Is SWE-agent still actively maintained? Its latest tagged release, v1.1.0, dates to 2025-05-22, older than the 2026 releases on CrewAI and Pydantic AI. But when we checked on 2026-07-10 the default branch had been pushed on 2026-07-07, so commits are still landing even though a new versioned release has not been cut in over a year.

How many stars does SWE-agent have? We checked on 2026-07-10 and the repository held 19,757 stars. Star counts move, so treat that as a dated snapshot; check the SWE-agent GitHub repository for the live figure.


This is part of the open-source AI agents hub, which compares SWE-agent against CrewAI, LlamaIndex, and Pydantic AI on the same verified GitHub data.

Author: Kevin Fan, Customer Success Manager at China LLM Directory, specializing in the Chinese LLM ecosystem and AI infrastructure pricing. Last verified: 2026-07-10.

Share: