mini-SWE-agent

mini-SWE-agent

By Princeton NLP

The minimal successor to SWE-agent — a ~100-line core that autonomously resolves GitHub issues, as performant but far simpler

v2.4.62026-07-23PythonMIT
6.0k Completely free Open source

Doc version 1.0 · Updated

Related tools

Overview

mini-SWE-agent is the streamlined successor to SWE-agent.
It keeps the same idea — let a model read, edit, and run code to fix a GitHub issue — but strips the agent loop down to roughly 100 lines: no special tools, just shell commands.
It’s simpler to read, hack on, and deploy while staying competitive on SWE-bench.

flowchart LR
  task[task] --> agent[mini-SWE-agent]
  agent -->|bash command| shell[(shell)]
  shell -->|output| agent
  agent --> done([submit])

The Code samples tab shows two ways to use it — the CLI and the Python binding; pick from the selector to compare.

When to use it

Prefer mini-SWE-agent over SWE-agent for new work: it’s the actively developed path, and its tiny core makes it easy to understand and customize.