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.

mini-swe-agent: The Minimal AI Agent for Solving GitHub Issues

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

Analyzed by OSRepos on March 18, 2026

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-agent into 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

Related repositories

Similar repositories that may be relevant next.

Hermes WebUI: A Powerful Web Interface for Your Autonomous AI Agent

Hermes WebUI: A Powerful Web Interface for Your Autonomous AI Agent

June 1, 2026

Hermes WebUI provides a lightweight, dark-themed web application for interacting with Hermes Agent, offering full parity with the CLI experience. This self-hosted interface allows users to manage sessions, browse workspaces, and control their AI agent from any web browser or phone, enhancing accessibility and user experience. It integrates seamlessly with existing Hermes Agent setups, requiring no additional configuration.

agentai-agentshermes
UFO: Microsoft's Multi-Device AI Agent Orchestration Framework

UFO: Microsoft's Multi-Device AI Agent Orchestration Framework

March 20, 2026

Microsoft's UFO project introduces a powerful framework for intelligent automation, evolving from a robust Windows Desktop AgentOS (UFO²) to a revolutionary Multi-Device Agent Galaxy (UFO³). This project enables the orchestration of AI agents across diverse platforms, streamlining complex workflows and enhancing digital interaction. It offers both standalone Windows automation and a scalable solution for cross-device collaboration.

agentautomationllm
Hexabot: Open-Source AI Chatbot and Agent Builder

Hexabot: Open-Source AI Chatbot and Agent Builder

March 19, 2026

Hexabot is an open-source AI chatbot and agent builder designed for creating and managing multi-channel and multilingual conversational agents with ease. It offers extensive customization, powerful text-to-action capabilities, and supports integration with various LLM models, making it a flexible solution for developers. This project simplifies the deployment and management of sophisticated AI-powered interactions across different platforms.

aichatbotagent
learn-claude-code: Build AI Coding Agents from Scratch with Python

learn-claude-code: Build AI Coding Agents from Scratch with Python

January 24, 2026

The learn-claude-code repository offers a progressive tutorial to demystify AI coding agents like Claude Code, Kode, and Cursor Agent. It teaches users how modern AI agents work by building them from scratch, starting with a minimal 16-line Bash agent. This project emphasizes the core concept of "Model as Agent" through five evolving versions.

agentclaude-codeteaching

Source repository

Open the original repository on GitHub.

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️