← Back to Leaderboard
MSWE-agent

SWE-agent/mini-swe-agent

GitHub Trending ×5d

A compact Python model-and-command loop for fixing GitHub issues from the CLI

Engineering Health (Methodology)
A+ · 90/100
Maintenance Activity
● Updated 7d ago
Latest Release
v2.4.6
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption21/25
Release Cadence14/20
License Clarity20/20
CLIDockerSelf-Hosted1 README badge views (30d)
Total Stars
★ 10,226
24h Growth
+18
7d Growth
+174
Forks
1,387

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

SWE-agent/mini-swe-agent Star History (2025-07-06 - 2026-12-01) ALL-TIME STAR HISTORY (2025-07 – 2026-12) +10.2k in 513d · avg +20/day 10.8k 5.4k 0 2025-07-06: ★ 12025-08-09: ★ 9082025-09-13: ★ 1,5912025-10-18: ★ 1,8612025-11-22: ★ 2,0582025-12-27: ★ 2,3432026-01-31: ★ 2,6252026-03-07: ★ 3,1332026-04-11: ★ 3,7112026-05-16: ★ 4,3132026-06-20: ★ 5,2292026-07-25: ★ 5,9562026-08-29: ★ 6,8032026-10-03: ★ 8,1492026-11-04: ★ 9,0712026-12-01: ★ 10,226 ★ 10.2k 2025-07 2026-03 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

mini-swe-agent is a Python 3.10+ coding agent whose core is a compact model–command loop. The agent asks the model for the next action, runs commands through a selected environment, and feeds the results back to the model. The roughly 100-line default agent lives at src/minisweagent/agents/default.py; that line count describes the class, not the whole package.

Model access and command execution are separate integration points. The source tree includes models/litellm_model.py and environments/local.py under src/minisweagent/, alongside the run/hello_world.py example. Users can work through the mini CLI, YAML configuration, or Python bindings. The established integration path is through model and execution backends; native MCP client or server support is not established.

Key Capabilities & Differentiators

The same agent can tackle GitHub issues or work on a local coding task from the terminal. The model side supports LiteLLM, OpenRouter, and Portkey, along with /completion and /response endpoints and interleaved thinking. Check that the selected model and provider support the features you need; a shared access layer does not make every provider interchangeable.

Commands can run locally or through backends such as Docker/Podman and Singularity/Apptainer. That separation lets a team change where commands run without tying the choice to a particular model provider. The listed SWE-bench Verified result is above 74%. Use it as a starting point for evaluation, not a predicted success rate for your own repositories, model, or task budget.

Trade-offs & Limitations

Compared with adopting Claude Code as a ready-to-use coding assistant, mini is a better fit when the goal is to inspect or modify the agent loop and choose where commands run. That control comes with setup work: validate the model and endpoint pairing, configure workspace access, and check that the execution backend behaves as intended. The benchmark score alone does not settle which tool fits a team's daily workflow.

Direct local execution is easy to set up, but agent-issued commands can act with the runner's permissions. Containers can help narrow that access, but the boundary depends on mounts, credentials, and network policy. The package carries an Alpha classifier, so test upgrades before rolling them out. The MIT license permits commercial adaptation and redistribution subject to its notice requirements; model services and dependencies need a separate review.

Hardware & Deployment Guide

The setuptools-built package requires Python 3.10 or later. Try it with uvx mini-swe-agent or pipx run mini-swe-agent; for a persistent installation, run pip install mini-swe-agent and then mini. The local execution backend does not require a container runtime. If you choose a container backend, provision the corresponding runtime separately. Self-hosting the runner does not imply offline inference: a hosted model still requires network access and any credentials its provider requires.

Version 2.4.4 fixed shared configuration mutation across benchmark workers. Version 2.4.5 made configuration reads consistently UTF-8 and stopped misclassifying malformed tool calls as truncation. Version 2.4.6 counts billed calls against cost_limit even when their responses fail to parse. Pin the version for repeatable evaluations, and consult the v2 migration guide before reusing v1 configurations.

Agent core: The roughly 100-line default Python agent is separate from model and environment implementations.
Model access: LiteLLM, OpenRouter, and Portkey are documented options, with /completion and /response endpoint support.
Execution backends: Run commands directly on the host or through Docker/Podman and Singularity/Apptainer.
Integration: mini is the installed CLI; the package also provides Python bindings and supports YAML configuration.
Benchmark result: The project lists a score above 74% on SWE-bench Verified; treat it as setup-specific rather than a baseline for every model.
Cost accounting: v2.4.6 counts billed model calls against cost_limit even when their responses fail to parse.
Best For

Engineering and research teams that want a terminal coding agent they can inspect and modify, with independent choices for model access and command execution.

Skip If

Native MCP integration or turnkey offline inference is a hard requirement, or your team cannot own workspace permissions, isolation, and model configuration.

Reviewed on 2026-11-29 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

Quick Start & Installation

CLIDockerSelf-Hosted
pip install uv && uvx mini-swe-agent
# or
pip install pipx && pipx ensurepath && pipx run mini-swe-agent

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
mini-swe-agent ★10.2k+174PythonMITA compact Python model-and-command loop for fixing GitHub issues from the CLI
gemini-cli109.5k+442TypeScriptApache-2.0A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools
cline72k+187TypeScriptApache-2.0Shared coding-agent engine for IDEs and terminals, with pluggable models and MCP
qwen-code31.1k+141TypeScriptApache-2.0TypeScript coding agent with swappable models and MCP for repository-scale work

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/SWE-agent/mini-swe-agent.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

SWE-agent/mini-swe-agent Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about mini-swe-agent

How do I integrate or customize mini-swe-agent?

Use mini for terminal workflows or install the package for its Python bindings. For deeper customization, start with agents/default.py for the agent loop, models/litellm_model.py for model access, and environments/local.py for command execution, all under src/minisweagent/. MCP support is not established, so do not assume it can connect to MCP servers.

Does the runner need a GPU, and how should I size it?

A hosted model API does not require a local GPU for inference. Size the runner for repository checkouts, builds, tests, and the number of concurrent jobs. If you run inference on your own hardware, GPU and VRAM requirements depend on the chosen model and serving stack; there is no fixed VRAM requirement for the agent itself.

Can we use it commercially and self-host it?

The MIT license permits commercial use, modification, and redistribution, subject to preserving the applicable copyright and license notices. Self-hosting the agent does not automatically self-host inference: review the terms and data-handling policies of any model API you configure, and check dependency and model licenses separately.

When is mini a better choice than Claude Code?

Choose mini when you want an inspectable Python agent loop and direct control over the execution environment. If you are replacing Claude Code, test both on representative issues with a fixed budget per task. SWE-bench Verified measures issue resolution in a benchmark setup, not compatibility with your team's workflow.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining SWE-agent/mini-swe-agent? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature SWE-agent/mini-swe-agent on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare