AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
Code Assistant/
mini-swe-agent
mini-swe-agent logo

mini-swe-agent

Active·★ 8.9k·MIT·Updated 2026-10-26
★ Trending

mini-swe-agent is a deliberately minimal AI software-engineering agent from the Princeton and Stanford team behind SWE-bench and SWE-agent. The core agent class is around 100 lines of Python, and the agent has no tools other than bash: it does not even use the model's tool-calling interface, so it works with essentially any model.

It suits researchers who need a simple, transparent baseline for coding-agent experiments and benchmarks, and developers who want a lightweight agent that solves GitHub issues or helps in the terminal. Despite its size, the project reports scores above 74% on SWE-bench Verified, and it is used by organisations including Meta, NVIDIA, IBM, Princeton and Stanford. It runs in local environments as well as Docker or Podman, Singularity/Apptainer and other sandboxes, and supports models through LiteLLM, OpenRouter, Portkey and more. Version 2 is current; a migration guide covers changes from v1.

Getting started: run it without installing via `uvx mini-swe-agent` or `pipx run mini-swe-agent`, or install with `pip install mini-swe-agent`, then configure a model key.

This write-up is based on the project's README and public repository data. We have not hand-tested the tool. Data as of 2026-10-24.

License
MIT
Latest release
v2.4.6 · 2026-07-23
Last commit
2026-10-19
Contributors
39
Forks
1,230
Open issues and PRs
114
First published
2025-06-28
PyPI package
mini-swe-agent 2.4.6 · 3,673,033 downloads last week

Source: GitHub, npm and PyPI public APIs.

#AI Agent#Python#Software Engineering#Benchmarking#Minimalist#Coding
$ Install
$ pip install mini-swe-agent
↗ Visit site★ GitHub
01

Features

01Minimal code (approx. 100 lines of Python)
02High performance (>74% on SWE-bench verified benchmark)
03Easy deployment and sandboxing (Docker, Podman, Singularity)
04Utilizes only Bash tools, avoiding complex tool-calling interfaces
05Linear history for simplified debugging and fine-tuning
02

Why choose it

+Tiny, readable codebase that makes agent behaviour easy to understand and modify.
+Bash-only design works with any model, without tool-calling support.
+Strong benchmark results and wide adoption in research and industry.
+Many sandbox options; MIT licensed.
03

Trade-offs

!An agent that runs arbitrary bash commands should be sandboxed, especially when running unattended.
!Minimal by design: no IDE integration, rich UI or plugin ecosystem.
!Version 2 changed APIs, so older scripts need the migration guide.
05

Maintenance check

ActiveChecked: 2026-10-27
Last commit
2026-09-03
Commits, last 90 days
3
Releases, last 90 days
0
Latest release
v2.4.6 (2026-07-23)
Open issues
125
Recent issues with at least one comment
5/12
Commits per week, last 12 weeks
Commits per week, last 12 weeks: 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0

Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.

Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.

Most discussed open issues

  • #797 Why use `||` between `stop` and `rm` when cleanup a docker environment?7 comments · 2026-03-26
  • #1003 [Bug] litellm 1.106.0 breaks every tool-using run on base installs: ModuleNotFoundError: No module named 'mcp'4 comments · 2026-10-18
  • #953 RFC: deterministic execution boundaries for tool calls (task text is untrusted input)4 comments · 2026-08-29
  • #829 Bash tool launches Dash on Ubuntu environments4 comments · 2026-05-18
  • #546 plans to integrate remote runtime execution using swe-rex?3 comments · 2025-09-27

Issue titles are quoted from GitHub. Open the link to check whether a problem still applies to the version you use.

04

Who it fits

Pick it if
  • You are researching autonomous software engineering agents and want a radically minimalist, 100-line Python codebase that scores >74% on SWE-bench.
  • You want to build or hack custom automated issue-resolution loops without the bloat of massive monorepos or complex tool-calling abstractions.
Look elsewhere if
  • You need a polished, interactive daily driver with full terminal UI, undo history, and syntax diff overlays (Aider or Claude Code are built for daily coding).
  • You require multi-agent orchestration or enterprise-scale semantic codebase knowledge graphs.
06

How it differs

learn-claude-code logovs learn-claude-code★ 79.4k

mini-swe-agent is a hyper-compact benchmark-tested baseline for autonomous bug fixing; learn-claude-code is a progressive step-by-step tutorial for building modern coding agents.

Full comparison →
ruflo logovs ruflo★ 79.8k

mini-swe-agent pursues extreme minimalism in ~100 lines of Python; ruflo is an enterprise-scale swarm platform with 15 agent roles and vector memory.

Full comparison →
07

Compatibility

Local Environment
Native
Verified via docs
Docker
Supported
Verified via docs
Podman
Supported
Verified via docs
Singularity
Supported
Verified via docs
Apptainer
Supported
Verified via docs
Large Language Models
Via LiteLLM
Verified via docs
08

Quick start

1
$ pip install mini-swe-agent
09

Use cases

↳Researchers for benchmarking, fine-tuning, or RL experiments without bloat
↳Developers who want to own, understand, and modify their AI tools
↳Engineers needing a trivial-to-sandbox and deployable solution anywhere
10

Alternatives

⚡Top VS:
VSlearn-claude-code★79.4k→VSruflo★79.8k→VSOpen Interpreter★68.7k→VSDeepCode★16.8k→
learn-claude-code logo
learn-claude-code★ 79.4k
Bash is all You need - Write a nano Claude Code 0 - 1
VSCompare→
ruflo logo
ruflo★ 79.8k
🌊 The leading agent orchestration platform for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous workflows, and build conversational AI systems. Features enterprise-grade architecture, distributed swarm intelligence, RAG integration, and native Claude Code / Codex Integration
VSCompare→
Open Interpreter logo
Open Interpreter★ 68.7k
A coding agent for the terminal, optimized for low-cost and open models. Forked from OpenAI's Codex, it can emulate other agent harnesses and runs commands in a native sandbox.
VSCompare→
DeepCode logo
DeepCode★ 16.8k
DeepCode is an open-source coding agent from HKUDS for real software engineering: goal-driven loops, evidence-based verification, durable sessions, and Paper2Code research reproduction.
VSCompare→
claudian logo
claudian★ 15.8k
An Obsidian plugin that embeds AI coding agents (Claude Code, Codex CLI, OpenCode and more) in your vault, with the vault as the agent's working directory.
VSCompare→
PocketFlow-Tutorial-Codebase-Knowledge logo
PocketFlow-Tutorial-Codebase-Knowledge★ 12.7k
Pocket Flow: Codebase to Tutorial
VSCompare→
zcf logo
zcf★ 6.1k
Zero-Config Code Flow for Claude code & Codex
VSCompare→
refact logo
refact★ 3.5k
AI Agent that handles engineering tasks end-to-end: integrates with developers’ tools, plans, executes, and iterates until it achieves a successful result.
VSCompare→
See all alternatives →

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs05Maintenance check04Who it fits06How it differs07Compatibility08Quick start09Use cases10Alternatives
SWE-agent /
mini-swe-agent
↗

Minimal 100-line software engineering agent

8.9k1.2kMIT
Last commit2d ago
StatusActive
CategoryCode Assistant
Contributors39
Latest releasev2.4.6
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.