# mini-SWE-agent

> The minimal AI software engineering agent: about 100 lines of Python, bash as its only tool

Source: https://talira.ai/catalog/mini-swe-agent-7z6sahze
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / ai coding / agents](https://talira.ai/categories/developer-tools/ai-coding/agents)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free; you pay your own model provider.
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Backed by: [SWE-agent](https://talira.ai/orgs/swe-agent.md)

mini-SWE-agent is a deliberately small AI coding agent from the Princeton and Stanford team behind SWE-bench and [SWE-agent](https://talira.ai/catalog/swe-agent-v2vp8xnt.md), which it supersedes as their recommended default. Its agent class is about 100 lines of Python, its only tool is bash (so it needs no tool-calling support and works with any model through LiteLLM, OpenRouter or Portkey), each action runs as an independent subprocess, and its history is strictly linear, which makes it easy to sandbox, debug and use as a baseline for benchmarks, fine-tuning and reinforcement learning. It runs as a command-line agent in your shell, in batch over SWE-bench with Docker, Podman, Singularity or Bubblewrap, and has a trajectory browser. MIT licensed, it scores over 74% on SWE-bench Verified.

## Links

- Website: https://mini-swe-agent.com/
- GitHub: https://github.com/SWE-agent/mini-swe-agent
- Docs: https://mini-swe-agent.com/latest/

## Problems it solves

- a coding agent simple enough that I can read its whole control loop in a few minutes
- run an AI agent that fixes GitHub issues with any model, even ones without tool calling
- a baseline agent scaffold for SWE-bench evaluations that doesn't overfit to special tools
- run thousands of agent trajectories in Docker or Podman sandboxes for benchmarks or RL
- generate clean, linear agent trajectories for fine-tuning a model
- a lightweight coding agent in my terminal that starts faster than the big ones
- build my own coding agent on a tiny hackable core instead of a giant framework

## Features

- agent class of about 100 lines of Python
- bash is the only tool: works with any model, no tool-calling needed
- every action runs as an independent subprocess
- linear message history, identical to the trajectory
- local, Docker, Podman, Singularity/Apptainer, Bubblewrap and other environments
- models through LiteLLM, OpenRouter, Portkey and more
- interactive CLI and batch inference on SWE-bench
- trajectory browser
- scores over 74% on SWE-bench Verified

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.40 out of 1.
Signals: backing 0.50, extensibility 0.20.

- backed by SWE-agent
- used by Meta, NVIDIA, IBM, Nebius

Warnings:

- GitHub activity not fetched yet

## Related

- Successor of [SWE-agent](https://talira.ai/catalog/swe-agent-v2vp8xnt.md)

## Alternatives

- [SWE-agent](https://talira.ai/catalog/swe-agent-v2vp8xnt.md): Lets your language model of choice autonomously fix GitHub issues and other tasks with tools
- [GitHub Copilot](https://talira.ai/catalog/github-copilot-bg5bfbre.md): Move from a single task to a project spanning repositories without losing context.
- [Cursor](https://talira.ai/catalog/cursor-x8ypqq22.md): Cursor is your coding agent for building ambitious software.
- [OpenHands](https://talira.ai/catalog/openhands-ssep57hh.md): Open platform for AI software development agents that plan, write and ship code changes end to end
- [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md): An agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools
- [Gemini CLI](https://talira.ai/catalog/gemini-cli-xq86svf2.md): An open-source AI agent that brings the power of Gemini directly into your terminal.

## Sources

[^1]: https://github.com/SWE-agent/mini-swe-agent (checked 22 Nov 2026)
[^2]: https://github.com/SWE-agent/mini-swe-agent/blob/main/LICENSE.md (checked 22 Nov 2026)
