Skip to main content
📖 The AI Tool Bible
mini-SWE-agent preview image
mini-SWE-agent logo

mini-SWE-agent

A 100-line open-source coding agent that scores 74%+ on SWE-bench Verified.

Free· Free and open source (Apache 2.0); you pay only for the underlying LLM tokens.AgentsMulti-model (via litellm, OpenRouter, Portkey)7.2 / 10
Visit website →

In short

mini-SWE-agent is a deliberately minimal, 100-line Python coding agent that achieves high SWE-bench Verified scores. It serves as a readable, model-agnostic baseline for researchers and engineers who want to understand, extend, or benchmark agent behavior without complex frameworks.

Best for

Pick mini-SWE-agent if you want a tiny, readable, model-agnostic coding-agent baseline to benchmark, extend, or embed in a research pipeline.

Skip if

Skip it if you want a polished IDE assistant or a managed autonomous-engineer SaaS with dashboards and team features.

mini-SWE-agent is a deliberately minimal AI coding agent from the Princeton/Stanford team behind SWE-bench and SWE-agent. The entire core is roughly 100 lines of Python with a linear, append-only message history and a single tool: bash via subprocess. That brutal simplicity is the point — and it still cracks 74%+ on SWE-bench Verified, putting it in the same league as far more elaborate agent frameworks.

It's aimed at researchers, agent tinkerers, and engineers who want a hackable baseline rather than a productized assistant. Model-agnostic via litellm, OpenRouter, and Portkey, so you can plug in Claude, GPT, Gemini, or local models. Sandbox options span local, Docker, Podman, Singularity, and Bubblewrap, which makes it usable for batch inference on benchmark suites without root-level worries. Apache 2.0 and free.

There are Python bindings for embedding it in larger pipelines, but there's no hosted product, no UI, no SaaS billing, and no support contract. If you want a Cursor-style IDE or a managed autonomous engineer, look elsewhere; if you want a readable reference implementation that you can read in one sitting and extend in an afternoon, this is the one.

Editor's take

The most refreshing thing in agent-land in a while — a credible SWE-bench performer that fits on a single screen. We'd reach for this before any of the heavier autonomous-coder frameworks when the goal is to understand, modify, or benchmark agent behavior rather than ship a polished UX.

— The AI Tool Bible editorial team

Pros

  • Roughly 100 lines of Python — trivially readable and hackable
  • Scores 74%+ on SWE-bench Verified despite the minimal design
  • Model-agnostic via litellm, OpenRouter, and Portkey
  • Sandbox-friendly: Docker, Podman, Singularity, Bubblewrap, local
  • Apache 2.0; backed by the SWE-bench and SWE-agent authors

Cons

  • ⚠️ No GUI, IDE integration, or hosted product
  • ⚠️ Bash-only tool surface — no built-in browser, search, or planning tools
  • ⚠️ You build your own ops layer (logging, cost caps, retries)
  • ⚠️ Aimed at researchers more than day-to-day end users

Use cases

swe-bench-evaluationautonomous-codingagent-researchbatch-inferenceagent-baseline

Frequently asked

How complex is the mini-SWE-agent codebase?
The entire core is roughly 100 lines of Python with a linear, append-only message history and a single bash tool. This minimal design makes it trivially readable and easy to hack or extend.
Which AI models can I use with mini-SWE-agent?
It is model-agnostic via litellm, OpenRouter, and Portkey, allowing you to plug in Claude, GPT, Gemini, or local models. You only pay for the underlying LLM tokens.
Does mini-SWE-agent offer a hosted service or GUI?
No, there is no hosted product, UI, SaaS billing, or support contract. It is an open-source library intended for embedding in pipelines or local use, not a polished IDE assistant.
What sandboxing options are available for running the agent?
Sandbox options span local, Docker, Podman, Singularity, and Bubblewrap. This makes it usable for batch inference on benchmark suites without requiring root-level access.

Explore related

Compare with similar tools

All in Agents
LangGraph preview image
LangGraph logo

LangGraph

Featured
Agents · BYO (Claude / GPT / open)
8.8

Stateful, graph-based agent orchestration from LangChain.

Freemium· Developer: $0 / seat · Plus: $39 / seat · Enterprise: Custom pricingstateful agentshuman-in-loop
CrewAI preview image
CrewAI logo

CrewAI

Featured
Agents · BYO (Claude / GPT / open)
8.4

Python framework for multi-agent orchestration.

Freemium· Basic: Free · Enterprise: Custommulti-agentorchestration
Ernie Bot preview image
Ernie Bot logo

Ernie Bot

Agents · Baidu ERNIE 4.0 / ERNIE X1 / ERNIE Turbo (in-house)
8.7

Baidu's Mandarin-first ChatGPT rival, powered by the ERNIE model family

Freemium· Free tier for Ernie 3.5 access; Ernie 4.0 and premium features require a paid subscription (approximately CNY 59.9/month for individual plans); enterprise API pricing via Baidu AI Cloud Qianfan platform is metered per 1K tokens.Mandarin content writing and marketing copyChinese-language document Q&A and summarisation
Moveworks preview image
Moveworks logo

Moveworks

Agents · Orchestrates multiple enterprise-ready LLMs (undisclosed mix, historically including OpenAI GPT and in-house models via its Reasoning Engine)
8.7

The enterprise AI assistant that searches, answers, and takes action across your business systems

Enterprise· Enterprise-only pricing; no public tiers. Quoted per organization based on employee count, integrations, and agent scope. Contact sales for a quote.IT service desk ticket deflectionHR policy Q&A and self-service
AWS Bedrock preview image
AWS Bedrock logo

AWS Bedrock

Agents · Multi-model: Anthropic Claude, Meta Llama, Mistral, Cohere, AI21, Amazon Nova/Titan, DeepSeek, Stability, OpenAI GPT
8.6

Build and scale generative AI applications with foundation models

Paid· Standard: Contact sales · Flex: Contact sales · Priority: Contact sales · Reserved: Contact salesEnterprise RAG chatbot over private documentsMulti-step tool-using agents via AgentCore
Claude Agent SDK preview image
Claude Agent SDK logo

Claude Agent SDK

Agents · Claude Opus / Sonnet
8.6

Anthropic's official SDK for building autonomous Claude agents.

Free· Free SDK; API usage billed at Claude ratesClaude agentstool use