The SWE-bench authors' harness, held fixed across all models in DeepSWE. The creator notes that models like Opus might do better in their own harness such as Claude Code.
Minimal open-source AI software engineering agent in about 100 lines of Python that uses only bash.
Updated EU status checked Last shown
mini-SWE-agent at a glance
- What is mini-SWE-agent?
- mini-SWE-agent is a library. Minimal open-source AI software engineering agent in about 100 lines of Python that uses only bash.
- Does mini-SWE-agent work in the EU?
- Available in the EU. MIT-licensed code installable from PyPI and GitHub and run locally, with no regional restrictions in the license. Availability of the models it calls depends on the provider you choose. Last verified 14 Nov 2026.
- How much does mini-SWE-agent cost?
- Open source, open source. Free MIT-licensed software; you pay your chosen model provider for API usage. Licence: MIT.
- Where was mini-SWE-agent shown?
- In 1 creator video by Matthew Berman. Most recently by Matthew Berman on 27 May 2026, at 10:05 in “DeepSWE just changed the benchmark game...”.
Sources: the vendor's own pages (linked above) and creator videos at the linked timestamps. EU status is information, not legal advice; see how we check.
mini-SWE-agent (mini) is a minimal coding agent from the Princeton and Stanford team behind SWE-bench and SWE-agent. The agent class is roughly 100 lines of Python. It has no tools other than bash, keeps a completely linear message history, and runs each action as an independent subprocess.run call rather than in a stateful shell session.
Because it does not depend on the tool-calling interface of language models, it can be used with a wide range of models via litellm, OpenRouter, Portkey and others. It supports local execution as well as Docker/Podman, Singularity/Apptainer, bubblewrap and other sandboxes. The README reports a score above 74% on SWE-bench Verified. It is used as the fixed harness for the SWE-bench "bash only" leaderboard, and the README says it is also used for Ramp SWE-Bench and the DeepSWE evaluation.
It is meant both as a research baseline that keeps attention on the language model rather than the scaffold, and as a hackable command-line tool for everyday use. It is installed from PyPI and run locally. The current major version is v2, which has a migration guide from v1. As a deliberately simple harness, models may perform better in their vendor's own agents, as one YouTube reviewer noted about Claude Code.
- Agent class of about 100 lines of Python with minimal dependencies
- Bash is the only tool; no tool-calling interface required
- Linear message history that matches the trajectory sent to the model
- Independent subprocess.run actions, easy to swap for docker exec
- Sandboxes: local, Docker/Podman, Singularity/Apptainer, bubblewrap
- Model-agnostic via litellm, OpenRouter, Portkey
As seen on YouTube
Watch the moment: the exact second top creators show it. Videos load only when you press play, via youtube-nocookie.com.
Similar AI tools
Closest neighbours by meaning, not just by category.
MiniMax Code CLI
Agent · MiniMax
Open-source terminal coding agent from MiniMax that works with MiniMax models or your own model API.
SWE-bench Pro
Research
Benchmark from Scale AI testing AI agents on long-horizon software engineering tasks drawn from real codebases.
RealSWE
Research
Benchmark of frontier AI models on private, real-world enterprise codebases, published by Specific.
Codex
App · OpenAI
OpenAI's coding agent, available in the ChatGPT app, cloud, IDE extension and CLI under one ChatGPT account.
Codex CLI (refreshed)
App · OpenAI
OpenAI's open-source coding agent that runs in the terminal, with voice control and a new code review experience.
GPT-5.3 Codex
Model · OpenAI
OpenAI's agentic coding model powering Codex in the CLI, IDE extension, desktop app and ChatGPT cloud.
