mini-swe-agent: The Minimal AI Agent for Solving GitHub Issues
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
mini-swe-agent is a remarkably simple yet powerful AI agent, comprising just 100 lines of Python code. It's designed to solve GitHub issues and assist in command-line tasks, achieving over 74% on the SWE-bench verified benchmark. This project offers a radically simple approach to AI-driven software engineering, avoiding complex configurations and large monorepos.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
mini-swe-agent emerges from the creators of SWE-bench and SWE-agent, offering a streamlined, highly performant AI agent. This project re-evaluates the necessity of complex tools and interfaces for AI agents, demonstrating that a minimal, 100-line Python agent can achieve impressive results, scoring over 74% on the SWE-bench verified benchmark. It's built by the Princeton & Stanford team and is widely adopted by leading tech companies and universities.
Designed for simplicity and effectiveness, mini-swe-agent focuses on leveraging the language model's capabilities through a basic bash interface. It supports various deployment environments, including local, Docker, and Singularity, and is compatible with numerous models via litellm and other endpoints. Its core philosophy emphasizes a linear history and independent action execution, making it robust, scalable, and easy to debug.
Installation
Getting started with mini-swe-agent is straightforward. Choose the option that best suits your needs:
Option 1: Try out the CLI (package installed in anonymous virtual environment)
pip install uv && uvx mini-swe-agent
# or
pip install pipx && pipx ensurepath && pipx run mini-swe-agent
Option 2: Install CLI & Python bindings in current environment
pip install mini-swe-agent
mini # run the CLI
Option 3: Install from source (developer setup)
git clone https://github.com/SWE-agent/mini-swe-agent.git
cd mini-swe-agent && pip install -e .
mini # run the CLI
Examples
mini-swe-agent provides several ways to interact with its capabilities:
- CLI (
mini): Engage with the agent directly from your command line for interactive problem-solving. - Batch inference: Run the agent against multiple issues or tasks for automated evaluation and processing.
- Trajectory browser: Visualize and debug the agent's decision-making process and actions.
- Python bindings: Integrate
mini-swe-agentinto your Python projects for custom automation and development.
agent = DefaultAgent(
LitellmModel(model_name=...),
LocalEnvironment(),
)
agent.run("Write a sudoku game")
Why Use mini-swe-agent?
mini-swe-agent stands out for its radical simplicity and powerful performance, making it an excellent choice for developers and researchers alike:
- Minimalist Design: With only about 100 lines of Python for the agent class, it's easy to understand, debug, and extend. It avoids complex tools, relying solely on bash, which simplifies sandboxing and deployment.
- High Performance: Despite its simplicity, it achieves over 74% on the SWE-bench verified benchmark, demonstrating that advanced capabilities don't require bloated architectures.
- Flexible Deployment: Supports local environments, Docker/Podman, Singularity/Apptainer, and more, offering versatility for various setups.
- Model Compatibility: Works with all models via
litellm,openrouter,portkey, and other endpoints, providing broad compatibility. - Stable and Scalable: Actions are executed independently using
subprocess.run, ensuring stability and effortless scaling, unlike stateful shell sessions. - Linear History: Every step appends to the message history, making trajectories transparent and ideal for debugging and fine-tuning language models.
Consider mini-swe-agent as your default choice if you need a quick, stable command-line tool, a simple control flow agent, or a system for faster benchmark evaluations and fine-tuning without overfitting to a specific agent scaffold.
Links
- GitHub Repository: https://github.com/SWE-agent/mini-swe-agent
- Official Documentation: https://mini-swe-agent.com/latest/
- Quick Start Guide: https://mini-swe-agent.com/latest/quickstart/
- SWE-bench: https://swebench.com
- SWE-agent: https://swe-agent.com
Related repositories
Similar repositories that may be relevant next.

Open Code Review: AI-Powered Code Review Tool from Alibaba
September 18, 2026
Open Code Review is an AI-powered command-line interface tool for code review, battle-tested at Alibaba's scale. It leverages a hybrid architecture, combining deterministic engineering with an LLM agent, to provide secure, fast, and efficient code analysis. This tool generates precise, line-level comments and supports a multi-language ruleset, ensuring high-quality code reviews.
Awesome-Self-Evolving-Agents: A Curated List for AI Agent Research
September 14, 2026
Awesome-Self-Evolving-Agents is a comprehensive GitHub repository offering a curated collection of resources on self-evolving agents. It includes a systematic survey, research papers, benchmarks, and open-source projects, providing valuable insights into this rapidly advancing field of AI. This repository serves as an essential guide for researchers and developers exploring model-centric, environment-centric, and co-evolutionary approaches.

open-slide: An AI-Native Slide Framework for React Presentations
September 9, 2026
open-slide is a powerful slide framework built for AI agents, enabling users to create presentations by describing them in natural language. Coding agents then generate the React components, while open-slide handles the canvas, scaling, navigation, and presentation modes. This allows agents to focus entirely on content, streamlining the creation of polished, agent-driven decks.

best-skills: Daily-Updated Rankings for Top Agent Skills
September 8, 2026
The LinklyAI/best-skills repository offers daily-updated rankings of the top 100 agent skills. It aggregates data on installs, growth, and social buzz from various platforms like skills.sh, ClawHub, Tencent SkillHub, GitHub, and X. This open-data project provides a comprehensive, cross-ecosystem view of agent skill performance, making it an invaluable resource for developers and researchers.
Source repository
Open the original repository on GitHub.
16 counted GitHub visits