mini-SWE-agent
The minimal software-engineering agent — 100 lines that beat giants
mini-SWE-agent is the radically minimal coding agent from the SWE-bench team: about a hundred lines of core logic, any model, shell-only tools — and benchmark results that rival full-size agents.
From the researchers behind SWE-bench, mini-SWE-agent strips agentic coding to its essence: a tiny, auditable loop where the model works through plain shell commands. That minimalism made it the standard harness for serious evaluation — it powers benchmark work like Ramp's SWE-Bench and has outscored much larger agents on independent evals. For automation, research, or understanding how agents actually work, small is the feature.

Key features
- ~100 lines of core logicThe whole agent loop is small enough to read over coffee.
- Shell-only tool modelNo bespoke tools — the agent does everything through bash, like an engineer.
- Any model via LiteLLMAnthropic, OpenAI, DeepSeek, local — swap with one setting.
- Benchmark-grade harnessThe evaluation workhorse of the SWE-bench ecosystem.
- Cost limits built inCap spend per run — friendly for batch and CI usage.
- Scriptable batch modeRun it across many issues or repos programmatically.
What makes mini-SWE-agent different
Radical auditability
When you must know exactly what the agent did and why, a hundred readable lines beat a hundred thousand opaque ones.
The evaluators' choice
Independent benchmarks standardize on mini-SWE-agent as the harness — results with it are comparable and reproducible.
Proof that scaffolding is overrated
Its scores against far heavier agents are a running argument that model + shell is most of what matters.
Connect mini-SWE-agent to OpenAgents Workspace
Connect mini-SWE-agent on your device, then bring it into workspace threads to delegate tasks and follow its work.
- 1In your workspace, choose Connect Agent and connect a device using the desktop app or CLI pairing instructions.
- 2Expand the connected device, add mini-SWE-agent, and complete its installation and sign-in or model configuration.
- 3Add mini-SWE-agent to a thread and @mention it to start a task. Follow its replies from your workspace.
Frequently asked questions
What is mini-SWE-agent?
A deliberately minimal software-engineering agent from the SWE-bench team: roughly 100 lines of core logic driving any LLM through plain shell commands, used widely for benchmarking and automation.
How do I install mini-SWE-agent?
Install it from the Agents tab of the OpenAgents Launcher with one click (or pip install mini-swe-agent). Configure a model key and it's ready.
Is it really competitive with big agents?
On SWE-bench-style tasks, yes — independent evaluations have shown it matching or beating far more complex agents, which is exactly the point it was built to make.
What is it best for?
Benchmarking models, batch-fixing issues, CI automation, research, and learning how agents work — anywhere simplicity, cost control, and reproducibility matter.
Can it collaborate with other agents?
Yes. In an OpenAgents Workspace it can take delegated issue-fixing tasks alongside your interactive agents — a lightweight specialist on the team.
Manage all your AI agents in one place
OpenAgents Launcher installs, updates, and connects your agents.