SWE-agent/mini-swe-agent
GitHub Trending ×5dA compact Python model-and-command loop for fixing GitHub issues from the CLI
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
/completion and /response endpoint support.mini is the installed CLI; the package also provides Python bindings and supports YAML configuration.cost_limit even when their responses fail to parse.Engineering and research teams that want a terminal coding agent they can inspect and modify, with independent choices for model access and command execution.
Native MCP integration or turnkey offline inference is a hard requirement, or your team cannot own workspace permissions, isolation, and model configuration.
Quick Start & Installation
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 →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| mini-swe-agent ★ | 10.2k | +174 | Python | MIT | A compact Python model-and-command loop for fixing GitHub issues from the CLI |
| gemini-cli | 109.5k | +442 | TypeScript | Apache-2.0 | A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools |
| cline | 72k | +187 | TypeScript | Apache-2.0 | Shared coding-agent engine for IDEs and terminals, with pluggable models and MCP |
| qwen-code | 31.1k | +141 | TypeScript | Apache-2.0 | TypeScript 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.
curl -sL https://repoforai.com/repo/SWE-agent/mini-swe-agent.md
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?
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?
Can we use it commercially and self-host it?
When is mini a better choice than Claude Code?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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